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/dialect
-
Constructor Summary
ConstructorsConstructorDescriptionDataSourceInfo(String name, String jdbcUrl, String username, String password, DatabaseType type) 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.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) Creates an instance of aDataSourceInforecord class.
-
-
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
-