mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-06-08 21:38:21 +00:00
Javadoc
This commit is contained in:
parent
09c63bae4f
commit
0807d5fa45
@ -61,6 +61,11 @@ public class DbAdminAutoConfiguration {
|
||||
@Autowired
|
||||
private DbAdminProperties props;
|
||||
|
||||
/**
|
||||
* Builds and returns the internal data source.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Bean
|
||||
public DataSource internalDataSource() {
|
||||
DataSourceBuilder<?> dataSourceBuilder = DataSourceBuilder.create();
|
||||
|
@ -50,6 +50,10 @@ public class DbAdminProperties {
|
||||
*/
|
||||
private boolean testMode = false;
|
||||
|
||||
/**
|
||||
* Whether Spring Boot Database Admin is enabled
|
||||
* @return
|
||||
*/
|
||||
public boolean isEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
@ -58,6 +62,10 @@ public class DbAdminProperties {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the prefix that is prepended to all routes registered by Spring Boot Database Admin.
|
||||
* @return
|
||||
*/
|
||||
public String getBaseUrl() {
|
||||
return baseUrl;
|
||||
}
|
||||
@ -66,6 +74,10 @@ public class DbAdminProperties {
|
||||
this.baseUrl = baseUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the path of the package that contains your JPA `@Entity` classes to be scanned.
|
||||
* @return
|
||||
*/
|
||||
public String getModelsPackage() {
|
||||
return modelsPackage;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Disables delete actions on the Entity class.
|
||||
* Disables the export functionality on a specific class.
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.TYPE)
|
||||
|
@ -602,6 +602,11 @@ public enum DbFieldType {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the corresponding {@linkplain DbFieldType} from a Class object.
|
||||
* @param klass
|
||||
* @return
|
||||
*/
|
||||
public static DbFieldType fromClass(Class<?> klass) {
|
||||
if (klass == Boolean.class || klass == boolean.class) {
|
||||
return BOOLEAN;
|
||||
|
@ -17,6 +17,9 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Root package of Spring Boot Database Admin
|
||||
* Root package of Spring Boot Database Admin.
|
||||
*
|
||||
* It contains the configuration class which handles the initialization
|
||||
* and the main {@link tech.ailef.dbadmin.external.DbAdmin} class.
|
||||
*/
|
||||
package tech.ailef.dbadmin.external;
|
Loading…
x
Reference in New Issue
Block a user