org.axonframework.saga.repository.jpa
Class AssociationValueEntry

java.lang.Object
  extended by org.axonframework.saga.repository.jpa.AssociationValueEntry

public class AssociationValueEntry
extends Object

JPA wrapper around an Association Value. This entity is used to store relevant Association Values for Sagas.

Since:
0.7
Author:
Allard Buijze

Constructor Summary
protected AssociationValueEntry()
          Constructor required by JPA.
  AssociationValueEntry(String sagaIdentifier, AssociationValue associationValue)
          Initialize a new AssociationValueEntry for a saga with given sagaIdentifier and associationValue.
 
Method Summary
 AssociationValue getAssociationValue()
          Returns the association value contained in this entry.
 Long getId()
          The unique identifier of this entry.
 String getSagaIdentifier()
          Returns the Saga Identifier contained in this entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociationValueEntry

public AssociationValueEntry(String sagaIdentifier,
                             AssociationValue associationValue)
Initialize a new AssociationValueEntry for a saga with given sagaIdentifier and associationValue.

Parameters:
sagaIdentifier - The identifier of the saga
associationValue - The association value for the saga

AssociationValueEntry

protected AssociationValueEntry()
Constructor required by JPA. Do not use directly.

Method Detail

getAssociationValue

public AssociationValue getAssociationValue()
Returns the association value contained in this entry.

Returns:
the association value contained in this entry

getSagaIdentifier

public String getSagaIdentifier()
Returns the Saga Identifier contained in this entry.

Returns:
the Saga Identifier contained in this entry

getId

public Long getId()
The unique identifier of this entry.

Returns:
the unique identifier of this entry


Copyright © 2011. All Rights Reserved.