Class Configuration

java.lang.Object
io.hypersistence.utils.hibernate.type.util.Configuration
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JsonConfiguration

public class Configuration extends Object implements Serializable
Configuration - It allows you to configure various Hibernate Types.
Since:
2.1.0
Author:
Vlad Mihalcea
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getProperties

      public Properties getProperties()
      Get all properties.
      Returns:
      properties.
    • integerProperty

      public Integer integerProperty(Configuration.PropertyKey propertyKey)
      Get Integer property value
      Parameters:
      propertyKey - property key
      Returns:
      Integer property value
    • longProperty

      public Long longProperty(Configuration.PropertyKey propertyKey)
      Get Long property value
      Parameters:
      propertyKey - property key
      Returns:
      Long property value
    • booleanProperty

      public Boolean booleanProperty(Configuration.PropertyKey propertyKey)
      Get Boolean property value
      Parameters:
      propertyKey - property key
      Returns:
      Boolean property value
    • classProperty

      public <T> Class<T> classProperty(Configuration.PropertyKey propertyKey)
      Get Class property value
      Type Parameters:
      T - class generic type
      Parameters:
      propertyKey - property key
      Returns:
      Class property value
    • instantiateClass

      protected <T> T instantiateClass(Configuration.PropertyKey propertyKey)
      Instantiate class associated to the given property key
      Type Parameters:
      T - class parameter type
      Parameters:
      propertyKey - property key
      Returns:
      class instance