Record Class JdbcInfo
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.datasource.model.JdbcInfo
- Record Components:
database- The database product nameversion- The database product versiondriverName- The JDBC driver namedriverVersion- The JDBC driver versioncatalog- The current catalogschema- The current schema
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncatalog()Returns the value of thecatalogrecord component.database()Returns the value of thedatabaserecord component.Returns the value of thedriverNamerecord component.Returns the value of thedriverVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanpresent()schema()Returns the value of theschemarecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
JdbcInfo
public JdbcInfo(String database, String version, String driverName, String driverVersion, String catalog, String schema) Creates an instance of aJdbcInforecord class.- Parameters:
database- the value for thedatabaserecord componentversion- the value for theversionrecord componentdriverName- the value for thedriverNamerecord componentdriverVersion- the value for thedriverVersionrecord componentcatalog- the value for thecatalogrecord componentschema- the value for theschemarecord component
-
-
Method Details
-
present
public boolean present()- Returns:
- true if at least one metadata field is available
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
database
-
version
-
driverName
Returns the value of thedriverNamerecord component.- Returns:
- the value of the
driverNamerecord component
-
driverVersion
Returns the value of thedriverVersionrecord component.- Returns:
- the value of the
driverVersionrecord component
-
catalog
-
schema
-