Package dev.relism.flash.ext.data.core
Record Class TxDefinition
java.lang.Object
java.lang.Record
dev.relism.flash.ext.data.core.TxDefinition
public record TxDefinition(TransactionPropagation propagation, TransactionIsolation isolation, boolean readOnly, String label)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTxDefinition(TransactionPropagation propagation, TransactionIsolation isolation, boolean readOnly, String label) Creates an instance of aTxDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theisolationrecord component.label()Returns the value of thelabelrecord component.Returns the value of thepropagationrecord component.booleanreadOnly()Returns the value of thereadOnlyrecord component.final StringtoString()Returns a string representation of this record class.withReadOnly(boolean ro)
-
Field Details
-
DEFAULTS
-
-
Constructor Details
-
TxDefinition
public TxDefinition(TransactionPropagation propagation, TransactionIsolation isolation, boolean readOnly, String label) Creates an instance of aTxDefinitionrecord class.- Parameters:
propagation- the value for thepropagationrecord componentisolation- the value for theisolationrecord componentreadOnly- the value for thereadOnlyrecord componentlabel- the value for thelabelrecord component
-
-
Method Details
-
withPropagation
-
withIsolation
-
withReadOnly
-
asReadOnly
-
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 '=='. -
propagation
Returns the value of thepropagationrecord component.- Returns:
- the value of the
propagationrecord component
-
isolation
Returns the value of theisolationrecord component.- Returns:
- the value of the
isolationrecord component
-
readOnly
public boolean readOnly()Returns the value of thereadOnlyrecord component.- Returns:
- the value of the
readOnlyrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-