org.axonframework.saga.repository.jpa
Class AssociationValueEntry

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

@Entity
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 sagaType, 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.
 String getSagaType()
          Returns the type (fully qualified class name) of the Saga this association value belongs to
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociationValueEntry

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

Parameters:
sagaType - The type of Saga this association value belongs to
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

getSagaType

public String getSagaType()
Returns the type (fully qualified class name) of the Saga this association value belongs to

Returns:
the type (fully qualified class name) of the Saga

getId

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

Returns:
the unique identifier of this entry


Copyright © 2010-2016. All Rights Reserved.