Record Class DataSourceInfo
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.datasource.model.DataSourceInfo
- Record Components:
name- The DataSource namejdbcUrl- The JDBC URLusername- The database usernamepassword- The database passwordtype- The database type/dialectjdbcInfo- Additional JDBC metadata
-
Constructor Summary
ConstructorsConstructorDescriptionDataSourceInfo(String name, String jdbcUrl, String username, String password, DatabaseType type) DataSourceInfo(String name, String jdbcUrl, String username, String password, DatabaseType type, JdbcInfo jdbcInfo) Creates an instance of aDataSourceInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.jdbcInfo()Returns the value of thejdbcInforecord component.jdbcUrl()Returns the value of thejdbcUrlrecord component.name()Returns the value of thenamerecord component.password()Returns the value of thepasswordrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
DataSourceInfo
public DataSourceInfo(String name, String jdbcUrl, String username, String password, DatabaseType type) -
DataSourceInfo
public DataSourceInfo(String name, String jdbcUrl, String username, String password, DatabaseType type, JdbcInfo jdbcInfo) Creates an instance of aDataSourceInforecord class.- Parameters:
name- the value for thenamerecord componentjdbcUrl- the value for thejdbcUrlrecord componentusername- the value for theusernamerecord componentpassword- the value for thepasswordrecord componenttype- the value for thetyperecord componentjdbcInfo- the value for thejdbcInforecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
name
-
jdbcUrl
-
username
-
password
-
type
-
jdbcInfo
-