Class Configuration
java.lang.Object
io.hypersistence.utils.hibernate.type.util.Configuration
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JsonConfiguration
Configuration - It allows you to configure various Hibernate Types.- Since:
- 2.1.0
- Author:
- Vlad Mihalcea
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEach Property has a well-defined key. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanProperty(Configuration.PropertyKey propertyKey) Get Boolean property value<T> Class<T>classProperty(Configuration.PropertyKey propertyKey) Get Class property valueGet all properties.protected <T> TinstantiateClass(Configuration.PropertyKey propertyKey) Instantiate class associated to the given property keyintegerProperty(Configuration.PropertyKey propertyKey) Get Integer property valuelongProperty(Configuration.PropertyKey propertyKey) Get Long property value
-
Field Details
-
INSTANCE
-
DEPRECATED_PROPERTIES_FILE_PATH
Deprecated.- See Also:
-
DEPRECATED_PROPERTIES_FILE_NAME
Deprecated.- See Also:
-
PROPERTIES_FILE_PATH
- See Also:
-
PROPERTIES_FILE_NAME
- See Also:
-
APPLICATION_PROPERTIES_FILE_NAME
- See Also:
-
-
Constructor Details
-
Configuration
-
-
Method Details
-
getProperties
Get all properties.- Returns:
- properties.
-
integerProperty
Get Integer property value- Parameters:
propertyKey- property key- Returns:
- Integer property value
-
longProperty
Get Long property value- Parameters:
propertyKey- property key- Returns:
- Long property value
-
booleanProperty
Get Boolean property value- Parameters:
propertyKey- property key- Returns:
- Boolean property value
-
classProperty
Get Class property value- Type Parameters:
T- class generic type- Parameters:
propertyKey- property key- Returns:
- Class property value
-
instantiateClass
Instantiate class associated to the given property key- Type Parameters:
T- class parameter type- Parameters:
propertyKey- property key- Returns:
- class instance
-