Package app.ductape.sdk.database.types
Record Class TransactionTypes.TransactionContext
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.TransactionTypes.TransactionContext
- Enclosing class:
- TransactionTypes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclient()Returns the value of theclientrecord component.Returns the value of thedatabaseTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theisolationLevelrecord component.booleanreadOnly()Returns the value of thereadOnlyrecord component.Returns the value of thesavepointsrecord component.Returns the value of thestartedAtrecord component.status()Returns the value of thestatusrecord component.timeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TransactionContext
public TransactionContext(String id, String databaseType, String isolationLevel, boolean readOnly, Long timeout, Instant startedAt, Object client, Map<String, TransactionTypes.Savepoint> savepoints, String status) Creates an instance of aTransactionContextrecord class.- Parameters:
id- the value for theidrecord componentdatabaseType- the value for thedatabaseTyperecord componentisolationLevel- the value for theisolationLevelrecord componentreadOnly- the value for thereadOnlyrecord componenttimeout- the value for thetimeoutrecord componentstartedAt- the value for thestartedAtrecord componentclient- the value for theclientrecord componentsavepoints- the value for thesavepointsrecord componentstatus- the value for thestatusrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
databaseType
Returns the value of thedatabaseTyperecord component.- Returns:
- the value of the
databaseTyperecord component
-
isolationLevel
Returns the value of theisolationLevelrecord component.- Returns:
- the value of the
isolationLevelrecord component
-
readOnly
public boolean 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
-
startedAt
Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord component
-
client
Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-
savepoints
Returns the value of thesavepointsrecord component.- Returns:
- the value of the
savepointsrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-