Record Class HibernateSessionFactoryInfo
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.hibernate.model.HibernateSessionFactoryInfo
- Record Components:
beanName- Micronaut bean namesessionFactoryName- Hibernate session factory nameclosed- whether the session factory is closedstatisticsEnabled- whether statistics collection is enabledsecondLevelCacheEnabled- whether the second-level cache is enabledqueryCacheEnabled- whether the query cache is enableddefaultCatalog- default catalogdefaultSchema- default schemacacheRegionPrefix- cache region prefixproperties- 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 Summary
ConstructorsConstructorDescriptionHibernateSessionFactoryInfo(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 aHibernateSessionFactoryInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionbeanName()Returns the value of thebeanNamerecord component.Returns the value of thecacheRegionPrefixrecord component.booleanclosed()Returns the value of theclosedrecord component.Returns the value of thedefaultCatalogrecord component.Returns the value of thedefaultSchemarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepropertiesrecord component.booleanReturns the value of thequeryCacheEnabledrecord component.booleanReturns the value of thesecondLevelCacheEnabledrecord component.Returns the value of thesessionFactoryNamerecord component.booleanReturns the value of thestatisticsEnabledrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aHibernateSessionFactoryInforecord class.- Parameters:
beanName- the value for thebeanNamerecord componentsessionFactoryName- the value for thesessionFactoryNamerecord componentclosed- the value for theclosedrecord componentstatisticsEnabled- the value for thestatisticsEnabledrecord componentsecondLevelCacheEnabled- the value for thesecondLevelCacheEnabledrecord componentqueryCacheEnabled- the value for thequeryCacheEnabledrecord componentdefaultCatalog- the value for thedefaultCatalogrecord componentdefaultSchema- the value for thedefaultSchemarecord componentcacheRegionPrefix- the value for thecacheRegionPrefixrecord componentproperties- the value for thepropertiesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
beanName
-
sessionFactoryName
Returns the value of thesessionFactoryNamerecord component.- Returns:
- the value of the
sessionFactoryNamerecord component
-
closed
-
statisticsEnabled
public boolean statisticsEnabled()Returns the value of thestatisticsEnabledrecord component.- Returns:
- the value of the
statisticsEnabledrecord component
-
secondLevelCacheEnabled
public boolean secondLevelCacheEnabled()Returns the value of thesecondLevelCacheEnabledrecord component.- Returns:
- the value of the
secondLevelCacheEnabledrecord component
-
queryCacheEnabled
public boolean queryCacheEnabled()Returns the value of thequeryCacheEnabledrecord component.- Returns:
- the value of the
queryCacheEnabledrecord component
-
defaultCatalog
Returns the value of thedefaultCatalogrecord component.- Returns:
- the value of the
defaultCatalogrecord component
-
defaultSchema
Returns the value of thedefaultSchemarecord component.- Returns:
- the value of the
defaultSchemarecord component
-
cacheRegionPrefix
Returns the value of thecacheRegionPrefixrecord component.- Returns:
- the value of the
cacheRegionPrefixrecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-