public class Configuration extends Object implements Serializable
Configuration - It allows you to configure various Hibernate Types.| Modifier and Type | Class and Description |
|---|---|
static class |
Configuration.PropertyKey
Each Property has a well-defined key.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_PROPERTIES_FILE_NAME |
static String |
DEPRECATED_PROPERTIES_FILE_NAME
Deprecated.
|
static String |
DEPRECATED_PROPERTIES_FILE_PATH
Deprecated.
|
static Configuration |
INSTANCE |
static String |
PROPERTIES_FILE_NAME |
static String |
PROPERTIES_FILE_PATH |
| Modifier | Constructor and Description |
|---|---|
protected |
Configuration() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
booleanProperty(Configuration.PropertyKey propertyKey)
Get Boolean property value
|
<T> Class<T> |
classProperty(Configuration.PropertyKey propertyKey)
Get Class property value
|
Properties |
getProperties()
Get all properties.
|
protected <T> T |
instantiateClass(Configuration.PropertyKey propertyKey)
Instantiate class associated to the given property key
|
Integer |
integerProperty(Configuration.PropertyKey propertyKey)
Get Integer property value
|
Long |
longProperty(Configuration.PropertyKey propertyKey)
Get Long property value
|
public static final Configuration INSTANCE
@Deprecated public static final String DEPRECATED_PROPERTIES_FILE_PATH
@Deprecated public static final String DEPRECATED_PROPERTIES_FILE_NAME
public static final String PROPERTIES_FILE_PATH
public static final String PROPERTIES_FILE_NAME
public static final String APPLICATION_PROPERTIES_FILE_NAME
public Properties getProperties()
public Integer integerProperty(Configuration.PropertyKey propertyKey)
propertyKey - property keypublic Long longProperty(Configuration.PropertyKey propertyKey)
propertyKey - property keypublic Boolean booleanProperty(Configuration.PropertyKey propertyKey)
propertyKey - property keypublic <T> Class<T> classProperty(Configuration.PropertyKey propertyKey)
T - class generic typepropertyKey - property keyprotected <T> T instantiateClass(Configuration.PropertyKey propertyKey)
T - class parameter typepropertyKey - property keyCopyright © 2024. All rights reserved.