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
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
telemetry
-
create
-
upgrade
-
file
-
readOnly
-