Record Class HibernateSessionFactoryInfo

java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.hibernate.model.HibernateSessionFactoryInfo
Record Components:
beanName - Micronaut bean name
sessionFactoryName - Hibernate session factory name
closed - whether the session factory is closed
statisticsEnabled - whether statistics collection is enabled
secondLevelCacheEnabled - whether the second-level cache is enabled
queryCacheEnabled - whether the query cache is enabled
defaultCatalog - default catalog
defaultSchema - default schema
cacheRegionPrefix - cache region prefix
properties - selected safe Hibernate properties

public record HibernateSessionFactoryInfo(String beanName, String sessionFactoryName, boolean closed, boolean statisticsEnabled, boolean secondLevelCacheEnabled, boolean queryCacheEnabled, String defaultCatalog, String defaultSchema, String cacheRegionPrefix, Map<String,String> properties) extends Record
Hibernate session factory metadata.
  • Constructor Details

    • HibernateSessionFactoryInfo

      public HibernateSessionFactoryInfo(String beanName, String sessionFactoryName, boolean closed, boolean statisticsEnabled, boolean secondLevelCacheEnabled, boolean queryCacheEnabled, String defaultCatalog, String defaultSchema, String cacheRegionPrefix, Map<String,String> properties)
      Creates an instance of a HibernateSessionFactoryInfo record class.
      Parameters:
      beanName - the value for the beanName record component
      sessionFactoryName - the value for the sessionFactoryName record component
      closed - the value for the closed record component
      statisticsEnabled - the value for the statisticsEnabled record component
      secondLevelCacheEnabled - the value for the secondLevelCacheEnabled record component
      queryCacheEnabled - the value for the queryCacheEnabled record component
      defaultCatalog - the value for the defaultCatalog record component
      defaultSchema - the value for the defaultSchema record component
      cacheRegionPrefix - the value for the cacheRegionPrefix record component
      properties - the value for the properties record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • beanName

      public String beanName()
      Returns the value of the beanName record component.
      Returns:
      the value of the beanName record component
    • sessionFactoryName

      public String sessionFactoryName()
      Returns the value of the sessionFactoryName record component.
      Returns:
      the value of the sessionFactoryName record component
    • closed

      public boolean closed()
      Returns the value of the closed record component.
      Returns:
      the value of the closed record component
    • statisticsEnabled

      public boolean statisticsEnabled()
      Returns the value of the statisticsEnabled record component.
      Returns:
      the value of the statisticsEnabled record component
    • secondLevelCacheEnabled

      public boolean secondLevelCacheEnabled()
      Returns the value of the secondLevelCacheEnabled record component.
      Returns:
      the value of the secondLevelCacheEnabled record component
    • queryCacheEnabled

      public boolean queryCacheEnabled()
      Returns the value of the queryCacheEnabled record component.
      Returns:
      the value of the queryCacheEnabled record component
    • defaultCatalog

      public String defaultCatalog()
      Returns the value of the defaultCatalog record component.
      Returns:
      the value of the defaultCatalog record component
    • defaultSchema

      public String defaultSchema()
      Returns the value of the defaultSchema record component.
      Returns:
      the value of the defaultSchema record component
    • cacheRegionPrefix

      public String cacheRegionPrefix()
      Returns the value of the cacheRegionPrefix record component.
      Returns:
      the value of the cacheRegionPrefix record component
    • properties

      public Map<String,String> properties()
      Returns the value of the properties record component.
      Returns:
      the value of the properties record component