Package io.camunda.zeebe.db
Record Class ConsistencyChecksSettings
java.lang.Object
java.lang.Record
io.camunda.zeebe.db.ConsistencyChecksSettings
public record ConsistencyChecksSettings(boolean enablePreconditions, boolean enableForeignKeyChecks)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionIntended for tests, uses the default settings for all consistency checks.ConsistencyChecksSettings(boolean enablePreconditions, boolean enableForeignKeyChecks) Creates an instance of aConsistencyChecksSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theenableForeignKeyChecksrecord component.booleanReturns the value of theenablePreconditionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConsistencyChecksSettings
public ConsistencyChecksSettings()Intended for tests, uses the default settings for all consistency checks. -
ConsistencyChecksSettings
public ConsistencyChecksSettings(boolean enablePreconditions, boolean enableForeignKeyChecks) Creates an instance of aConsistencyChecksSettingsrecord class.- Parameters:
enablePreconditions- the value for theenablePreconditionsrecord componentenableForeignKeyChecks- the value for theenableForeignKeyChecksrecord 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 with '=='. -
enablePreconditions
public boolean enablePreconditions()Returns the value of theenablePreconditionsrecord component.- Returns:
- the value of the
enablePreconditionsrecord component
-
enableForeignKeyChecks
public boolean enableForeignKeyChecks()Returns the value of theenableForeignKeyChecksrecord component.- Returns:
- the value of the
enableForeignKeyChecksrecord component
-