|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vladmihalcea.hibernate.type.util.Configuration
public class Configuration
Configuration - It allows declarative configuration through the hibernate.properties file
or the hibernate-types.properties file.
The properties from hibernate-types.properties can override the ones from the hibernate.properties file.
It loads the Properties configuration file and makes them available to other components.
| Nested Class Summary | |
|---|---|
static class |
Configuration.PropertyKey
Each Property has a well-defined key. |
| Field Summary | |
|---|---|
static String |
APPLICATION_PROPERTIES_FILE_NAME
|
static Configuration |
INSTANCE
|
static String |
PROPERTIES_FILE_NAME
|
static String |
PROPERTIES_FILE_PATH
|
| Method Summary | ||
|---|---|---|
Boolean |
booleanProperty(Configuration.PropertyKey propertyKey)
Get Boolean property value |
|
|
classProperty(Configuration.PropertyKey propertyKey)
Get Class property value |
|
ObjectMapperWrapper |
getObjectMapperWrapper()
Get ObjectMapperWrapper reference |
|
Properties |
getProperties()
Get all properties. |
|
Integer |
integerProperty(Configuration.PropertyKey propertyKey)
Get Integer property value |
|
Long |
longProperty(Configuration.PropertyKey propertyKey)
Get Long property value |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Configuration INSTANCE
public static final String PROPERTIES_FILE_PATH
public static final String PROPERTIES_FILE_NAME
public static final String APPLICATION_PROPERTIES_FILE_NAME
| Method Detail |
|---|
public Properties getProperties()
public ObjectMapperWrapper getObjectMapperWrapper()
ObjectMapperWrapper reference
ObjectMapperWrapper referencepublic Integer integerProperty(Configuration.PropertyKey propertyKey)
propertyKey - property key
public Long longProperty(Configuration.PropertyKey propertyKey)
propertyKey - property key
public Boolean booleanProperty(Configuration.PropertyKey propertyKey)
propertyKey - property key
public <T> Class<T> classProperty(Configuration.PropertyKey propertyKey)
T - class generic typepropertyKey - property key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||