Package com.daml.ledger.javaapi.data
Class Transaction
- java.lang.Object
-
- com.daml.ledger.javaapi.data.Transaction
-
- All Implemented Interfaces:
WorkflowEvent
public final class Transaction extends java.lang.Object implements WorkflowEvent
-
-
Constructor Summary
Constructors Constructor Description Transaction(@NonNull java.lang.String transactionId, @NonNull java.lang.String commandId, @NonNull java.lang.String workflowId, @NonNull java.time.Instant effectiveAt, @NonNull java.util.List<@NonNull Event> events, @NonNull java.lang.String offset)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static Transaction
fromProto(TransactionOuterClass.Transaction transaction)
@NonNull java.lang.String
getCommandId()
@NonNull java.time.Instant
getEffectiveAt()
@NonNull java.util.List<Event>
getEvents()
@NonNull java.lang.String
getOffset()
@NonNull java.lang.String
getTransactionId()
@NonNull java.lang.String
getWorkflowId()
int
hashCode()
TransactionOuterClass.Transaction
toProto()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Transaction
public Transaction(@NonNull java.lang.String transactionId, @NonNull java.lang.String commandId, @NonNull java.lang.String workflowId, @NonNull java.time.Instant effectiveAt, @NonNull java.util.List<@NonNull Event> events, @NonNull java.lang.String offset)
-
-
Method Detail
-
fromProto
public static Transaction fromProto(TransactionOuterClass.Transaction transaction)
-
toProto
public TransactionOuterClass.Transaction toProto()
-
getTransactionId
public @NonNull java.lang.String getTransactionId()
-
getCommandId
public @NonNull java.lang.String getCommandId()
-
getEffectiveAt
public @NonNull java.time.Instant getEffectiveAt()
-
getEvents
public @NonNull java.util.List<Event> getEvents()
-
getOffset
public @NonNull java.lang.String getOffset()
-
getWorkflowId
public @NonNull java.lang.String getWorkflowId()
- Specified by:
getWorkflowId
in interfaceWorkflowEvent
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-