Package com.io7m.idstore.database.api
Record Class IdDatabaseConfiguration
java.lang.Object
java.lang.Record
com.io7m.idstore.database.api.IdDatabaseConfiguration
- Record Components:
user- The username with which to connectpassword- The password with which to connectport- The database TCP/IP portupgrade- The upgrade specificationcreate- The creation specificationaddress- The database addressdatabaseName- The database nameclock- A clock for time retrievals
public record IdDatabaseConfiguration(String user, String password, String address, int port, String databaseName, IdDatabaseCreate create, IdDatabaseUpgrade upgrade, Clock clock)
extends Record
The server database configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionIdDatabaseConfiguration(String user, String password, String address, int port, String databaseName, IdDatabaseCreate create, IdDatabaseUpgrade upgrade, Clock clock) The server database configuration. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.clock()Returns the value of theclockrecord component.create()Returns the value of thecreaterecord component.Returns the value of thedatabaseNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.password()Returns the value of thepasswordrecord component.intport()Returns the value of theportrecord component.final StringtoString()Returns a string representation of this record class.upgrade()Returns the value of theupgraderecord component.user()Returns the value of theuserrecord component.
-
Constructor Details
-
IdDatabaseConfiguration
public IdDatabaseConfiguration(String user, String password, String address, int port, String databaseName, IdDatabaseCreate create, IdDatabaseUpgrade upgrade, Clock clock) The server database configuration.- Parameters:
user- The username with which to connectpassword- The password with which to connectport- The database TCP/IP portupgrade- The upgrade specificationcreate- The creation specificationaddress- The database addressdatabaseName- The database nameclock- A clock for time retrievals
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
port
public int port()Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
databaseName
Returns the value of thedatabaseNamerecord component.- Returns:
- the value of the
databaseNamerecord component
-
create
Returns the value of thecreaterecord component.- Returns:
- the value of the
createrecord component
-
upgrade
Returns the value of theupgraderecord component.- Returns:
- the value of the
upgraderecord component
-
clock
Returns the value of theclockrecord component.- Returns:
- the value of the
clockrecord component
-