Record Class LDatabaseConfiguration
java.lang.Object
java.lang.Record
com.io7m.laurel.filemodel.internal.LDatabaseConfiguration
- Record Components:
telemetry- The telemetry interfacecreate- The database creation optionupgrade- The database upgrade optionfile- The database filereadOnly- If the database should be read-only
- All Implemented Interfaces:
com.io7m.darco.api.DDatabaseConfigurationType,com.io7m.darco.sqlite.DSDatabaseConfigurationType
public record LDatabaseConfiguration(com.io7m.darco.api.DDatabaseTelemetryType telemetry, com.io7m.darco.api.DDatabaseCreate create, com.io7m.darco.api.DDatabaseUpgrade upgrade, Path file, boolean readOnly)
extends Record
implements com.io7m.darco.sqlite.DSDatabaseConfigurationType
The configuration information for the laurel SQLite database.
-
Constructor Summary
ConstructorsConstructorDescriptionLDatabaseConfiguration(com.io7m.darco.api.DDatabaseTelemetryType telemetry, com.io7m.darco.api.DDatabaseCreate create, com.io7m.darco.api.DDatabaseUpgrade upgrade, Path file, boolean readOnly) The configuration information for the laurel SQLite database. -
Method Summary
Modifier and TypeMethodDescriptioncom.io7m.darco.api.DDatabaseCreatecreate()Returns the value of thecreaterecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.booleanreadOnly()Returns the value of thereadOnlyrecord component.com.io7m.darco.api.DDatabaseTelemetryTypeReturns the value of thetelemetryrecord component.final StringtoString()Returns a string representation of this record class.com.io7m.darco.api.DDatabaseUpgradeupgrade()Returns the value of theupgraderecord component.
-
Constructor Details
-
LDatabaseConfiguration
public LDatabaseConfiguration(com.io7m.darco.api.DDatabaseTelemetryType telemetry, com.io7m.darco.api.DDatabaseCreate create, com.io7m.darco.api.DDatabaseUpgrade upgrade, Path file, boolean readOnly) The configuration information for the laurel SQLite database.- Parameters:
telemetry- The telemetry interfacecreate- The database creation optionupgrade- The database upgrade optionfile- The database filereadOnly- If the database should be read-only
-
-
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 '=='. -
telemetry
public com.io7m.darco.api.DDatabaseTelemetryType telemetry()Returns the value of thetelemetryrecord component.- Specified by:
telemetryin interfacecom.io7m.darco.api.DDatabaseConfigurationType- Returns:
- the value of the
telemetryrecord component
-
create
public com.io7m.darco.api.DDatabaseCreate create()Returns the value of thecreaterecord component.- Specified by:
createin interfacecom.io7m.darco.api.DDatabaseConfigurationType- Returns:
- the value of the
createrecord component
-
upgrade
public com.io7m.darco.api.DDatabaseUpgrade upgrade()Returns the value of theupgraderecord component.- Specified by:
upgradein interfacecom.io7m.darco.api.DDatabaseConfigurationType- Returns:
- the value of the
upgraderecord component
-
file
Returns the value of thefilerecord component.- Specified by:
filein interfacecom.io7m.darco.sqlite.DSDatabaseConfigurationType- Returns:
- the value of the
filerecord component
-
readOnly
public boolean readOnly()Returns the value of thereadOnlyrecord component.- Returns:
- the value of the
readOnlyrecord component
-