|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.saga.repository.jpa.SagaEntry
@Entity public class SagaEntry
Java Persistence Entity allowing sagas to be stored in a relational database.
Constructor Summary | |
---|---|
protected |
SagaEntry()
Constructor required by JPA. |
|
SagaEntry(Saga saga,
Serializer serializer)
Constructs a new SagaEntry for the given saga . |
Method Summary | |
---|---|
String |
getRevision()
Returns the revision of the serialized saga |
Saga |
getSaga(Serializer serializer)
Returns the Saga instance stored in this entry. |
String |
getSagaId()
Returns the identifier of the saga contained in this entry |
String |
getSagaType()
Returns the type identifier of the serialized saga |
byte[] |
getSerializedSaga()
Returns the serialized form of the Saga. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SagaEntry(Saga saga, Serializer serializer)
saga
. The given saga must be serializable. The provided
saga is not modified by this operation.
saga
- The saga to storeserializer
- The serialization mechanism to convert the Saga to a byte streamprotected SagaEntry()
SagaEntry(org.axonframework.saga.Saga, org.axonframework.serializer.Serializer)
Method Detail |
---|
public Saga getSaga(Serializer serializer)
serializer
- The serializer to decode the Saga
public byte[] getSerializedSaga()
public String getSagaId()
public String getRevision()
public String getSagaType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |