Class OutcomeAttachment
java.lang.Object
org.cristalise.kernel.persistency.outcome.OutcomeAttachment
- All Implemented Interfaces:
C2KLocalObject
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOutcomeAttachment(ItemPath itemPath, String schemaName, int schemaVersion, int eventId, String file, byte[] binaryData) OutcomeAttachment(ItemPath itemPath, Outcome outcome, String file, byte[] binaryData) -
Method Summary
Modifier and TypeMethodDescriptionEach C2KLocalObject is stored with a path identifier starting with the ClusterType: DomainPath: /Path/Domain/Name ItemPath: /Path/Item AgentPath: /Path/Agent RolePath: /Path/Role/Name Properties: /Property/Name Workflow: /LifeCycle/workflow Collections: /Collection/Name/Version (default Name='last') Outcomes: /Outcome/SchemaName/SchemaVersion/EventID Viewpoints: /ViewPoint/SchemaName/Name (default Name='last') Events: /AuditTrail/EventID Jobs: /Job/JobIDEach object belongs to a specific type defined inClusterTypegetEvent()getEvent(TransactionKey transactionKey) getName()Gets the name of the C2KLocalObjectgetOutcome(TransactionKey transactionKey) voidsetItemUUID(String uuid) voidSets the name of the C2KLocalObject
-
Field Details
-
NONE
public static final int NONE- See Also:
-
-
Constructor Details
-
OutcomeAttachment
public OutcomeAttachment() -
OutcomeAttachment
-
OutcomeAttachment
-
-
Method Details
-
getOutcome
-
getOutcome
public Outcome getOutcome(TransactionKey transactionKey) throws ObjectNotFoundException, PersistencyException -
getClusterType
Description copied from interface:C2KLocalObjectEach object belongs to a specific type defined inClusterType- Specified by:
getClusterTypein interfaceC2KLocalObject- Returns:
- string id of the type
-
getClusterPath
Description copied from interface:C2KLocalObjectEach C2KLocalObject is stored with a path identifier starting with the ClusterType:- DomainPath: /Path/Domain/Name
- ItemPath: /Path/Item
- AgentPath: /Path/Agent
- RolePath: /Path/Role/Name
- Properties: /Property/Name
- Workflow: /LifeCycle/workflow
- Collections: /Collection/Name/Version (default Name='last')
- Outcomes: /Outcome/SchemaName/SchemaVersion/EventID
- Viewpoints: /ViewPoint/SchemaName/Name (default Name='last')
- Events: /AuditTrail/EventID
- Jobs: /Job/JobID
- Specified by:
getClusterPathin interfaceC2KLocalObject- Returns:
- The path identifier (i.e. primary key) of the object
-
setItemUUID
- Throws:
InvalidItemPathException
-
getItemUUID
-
getEvent
-
getEvent
public Event getEvent(TransactionKey transactionKey) throws InvalidDataException, PersistencyException, ObjectNotFoundException -
setName
Description copied from interface:C2KLocalObjectSets the name of the C2KLocalObject- Specified by:
setNamein interfaceC2KLocalObject- Parameters:
name- Name of the C2KLocalObject
-
getName
Description copied from interface:C2KLocalObjectGets the name of the C2KLocalObject- Specified by:
getNamein interfaceC2KLocalObject- Returns:
- name of the C2KLocalObject
-