Package app.ductape.sdk.database.types
Record Class TransactionTypes.TransactionOptions
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.TransactionTypes.TransactionOptions
- Enclosing class:
- TransactionTypes
public static record TransactionTypes.TransactionOptions(String env, String product, String database, String isolationLevel, Boolean readOnly, Long timeout, Boolean deferrable)
extends Record
isolationLevel is an DatabaseTypes.IsolationLevel name (e.g. READ_COMMITTED) or other driver-specific label.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondatabase()Returns the value of thedatabaserecord component.Returns the value of thedeferrablerecord component.env()Returns the value of theenvrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theisolationLevelrecord component.product()Returns the value of theproductrecord component.readOnly()Returns the value of thereadOnlyrecord component.timeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TransactionOptions
public TransactionOptions(String env, String product, String database, String isolationLevel, Boolean readOnly, Long timeout, Boolean deferrable) Creates an instance of aTransactionOptionsrecord class.- Parameters:
env- the value for theenvrecord componentproduct- the value for theproductrecord componentdatabase- the value for thedatabaserecord componentisolationLevel- the value for theisolationLevelrecord componentreadOnly- the value for thereadOnlyrecord componenttimeout- the value for thetimeoutrecord componentdeferrable- the value for thedeferrablerecord 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 withObjects::equals(Object,Object). -
env
Returns the value of theenvrecord component.- Returns:
- the value of the
envrecord component
-
product
Returns the value of theproductrecord component.- Returns:
- the value of the
productrecord component
-
database
Returns the value of thedatabaserecord component.- Returns:
- the value of the
databaserecord component
-
isolationLevel
Returns the value of theisolationLevelrecord component.- Returns:
- the value of the
isolationLevelrecord component
-
readOnly
Returns the value of thereadOnlyrecord component.- Returns:
- the value of the
readOnlyrecord component
-
timeout
Returns the value of thetimeoutrecord component.- Returns:
- the value of the
timeoutrecord component
-
deferrable
Returns the value of thedeferrablerecord component.- Returns:
- the value of the
deferrablerecord component
-