Record Class DataSourceConfig
java.lang.Object
java.lang.Record
org.ethelred.kiwiproc.processorconfig.DataSourceConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondatabase()Returns the value of thedatabaserecord component.@Nullable StringReturns the value of thedriverClassNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.named()Returns the value of thenamedrecord component.@Nullable Stringpassword()Returns the value of thepasswordrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
DataSourceConfig
public DataSourceConfig(String named, String url, String database, String username, @Nullable String password, @Nullable String driverClassName) Creates an instance of aDataSourceConfigrecord class.- Parameters:
named- the value for thenamedrecord componenturl- the value for theurlrecord componentdatabase- the value for thedatabaserecord componentusername- the value for theusernamerecord componentpassword- the value for thepasswordrecord componentdriverClassName- the value for thedriverClassNamerecord component
-
-
Method Details
-
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. -
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. -
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). -
named
Returns the value of thenamedrecord component.- Returns:
- the value of the
namedrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
database
Returns the value of thedatabaserecord component.- Returns:
- the value of the
databaserecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
driverClassName
Returns the value of thedriverClassNamerecord component.- Returns:
- the value of the
driverClassNamerecord component
-