Record Class HibernateDataSourceInfo

java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.hibernate.model.HibernateDataSourceInfo
Record Components:
name - datasource name
jdbcUrl - JDBC URL
jdbcDriver - JDBC driver
dialect - Hibernate dialect
dialectVersion - dialect database version
catalog - connection catalog
schema - connection schema
autoCommitMode - autocommit mode
isolationLevel - transaction isolation level
poolMinSize - connection pool minimum size
poolMaxSize - connection pool maximum size
jdbcFetchSize - JDBC fetch size
supportsSchemas - whether the database supports schemas
supportsCatalogs - whether the database supports catalogs
supportsNamedParameters - whether JDBC named parameters are supported
supportsScrollableResults - whether scrollable results are supported
supportsBatchUpdates - whether JDBC batch updates are supported
supportsGetGeneratedKeys - whether generated keys are supported
properties - selected datasource properties

public record HibernateDataSourceInfo(String name, String jdbcUrl, String jdbcDriver, String dialect, String dialectVersion, String catalog, String schema, String autoCommitMode, String isolationLevel, String poolMinSize, String poolMaxSize, String jdbcFetchSize, boolean supportsSchemas, boolean supportsCatalogs, boolean supportsNamedParameters, boolean supportsScrollableResults, boolean supportsBatchUpdates, boolean supportsGetGeneratedKeys, Map<String,String> properties) extends Record
Hibernate datasource and JDBC metadata.
  • Constructor Details

    • HibernateDataSourceInfo

      public HibernateDataSourceInfo(String name, String jdbcUrl, String jdbcDriver, String dialect, String dialectVersion, String catalog, String schema, String autoCommitMode, String isolationLevel, String poolMinSize, String poolMaxSize, String jdbcFetchSize, boolean supportsSchemas, boolean supportsCatalogs, boolean supportsNamedParameters, boolean supportsScrollableResults, boolean supportsBatchUpdates, boolean supportsGetGeneratedKeys, Map<String,String> properties)
      Creates an instance of a HibernateDataSourceInfo record class.
      Parameters:
      name - the value for the name record component
      jdbcUrl - the value for the jdbcUrl record component
      jdbcDriver - the value for the jdbcDriver record component
      dialect - the value for the dialect record component
      dialectVersion - the value for the dialectVersion record component
      catalog - the value for the catalog record component
      schema - the value for the schema record component
      autoCommitMode - the value for the autoCommitMode record component
      isolationLevel - the value for the isolationLevel record component
      poolMinSize - the value for the poolMinSize record component
      poolMaxSize - the value for the poolMaxSize record component
      jdbcFetchSize - the value for the jdbcFetchSize record component
      supportsSchemas - the value for the supportsSchemas record component
      supportsCatalogs - the value for the supportsCatalogs record component
      supportsNamedParameters - the value for the supportsNamedParameters record component
      supportsScrollableResults - the value for the supportsScrollableResults record component
      supportsBatchUpdates - the value for the supportsBatchUpdates record component
      supportsGetGeneratedKeys - the value for the supportsGetGeneratedKeys 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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • jdbcUrl

      public String jdbcUrl()
      Returns the value of the jdbcUrl record component.
      Returns:
      the value of the jdbcUrl record component
    • jdbcDriver

      public String jdbcDriver()
      Returns the value of the jdbcDriver record component.
      Returns:
      the value of the jdbcDriver record component
    • dialect

      public String dialect()
      Returns the value of the dialect record component.
      Returns:
      the value of the dialect record component
    • dialectVersion

      public String dialectVersion()
      Returns the value of the dialectVersion record component.
      Returns:
      the value of the dialectVersion record component
    • catalog

      public String catalog()
      Returns the value of the catalog record component.
      Returns:
      the value of the catalog record component
    • schema

      public String schema()
      Returns the value of the schema record component.
      Returns:
      the value of the schema record component
    • autoCommitMode

      public String autoCommitMode()
      Returns the value of the autoCommitMode record component.
      Returns:
      the value of the autoCommitMode record component
    • isolationLevel

      public String isolationLevel()
      Returns the value of the isolationLevel record component.
      Returns:
      the value of the isolationLevel record component
    • poolMinSize

      public String poolMinSize()
      Returns the value of the poolMinSize record component.
      Returns:
      the value of the poolMinSize record component
    • poolMaxSize

      public String poolMaxSize()
      Returns the value of the poolMaxSize record component.
      Returns:
      the value of the poolMaxSize record component
    • jdbcFetchSize

      public String jdbcFetchSize()
      Returns the value of the jdbcFetchSize record component.
      Returns:
      the value of the jdbcFetchSize record component
    • supportsSchemas

      public boolean supportsSchemas()
      Returns the value of the supportsSchemas record component.
      Returns:
      the value of the supportsSchemas record component
    • supportsCatalogs

      public boolean supportsCatalogs()
      Returns the value of the supportsCatalogs record component.
      Returns:
      the value of the supportsCatalogs record component
    • supportsNamedParameters

      public boolean supportsNamedParameters()
      Returns the value of the supportsNamedParameters record component.
      Returns:
      the value of the supportsNamedParameters record component
    • supportsScrollableResults

      public boolean supportsScrollableResults()
      Returns the value of the supportsScrollableResults record component.
      Returns:
      the value of the supportsScrollableResults record component
    • supportsBatchUpdates

      public boolean supportsBatchUpdates()
      Returns the value of the supportsBatchUpdates record component.
      Returns:
      the value of the supportsBatchUpdates record component
    • supportsGetGeneratedKeys

      public boolean supportsGetGeneratedKeys()
      Returns the value of the supportsGetGeneratedKeys record component.
      Returns:
      the value of the supportsGetGeneratedKeys record component
    • properties

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