Package com.storedobject.core
Class TransactionInformation.TransactionObject<T extends StoredObject>
java.lang.Object
com.storedobject.core.TransactionInformation.TransactionObject<T>
- Type Parameters:
T
- Class type
- Enclosing class:
TransactionInformation
Class that encapsulates an object involved in the transaction.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Dump the object and link details to a "String Builder".char
Get the 'action' of the object in this transaction.Get the object involved.Get the class of the object involved.Get the Id of the object involved.links()
Get the links of this object involved in this transaction.<L extends StoredObject>
Stream<TransactionInformation.TransactionLink<L>> Get the links of this object involved in this transaction.<L extends StoredObject>
Stream<TransactionInformation.TransactionLink<L>> Get the links of this object involved in this transaction.
-
Method Details
-
getObject
Get the object involved. The object will contain historical information at the time of this transaction happened.- Returns:
- The object that is involved. (A
null
may be returned if any error occurs in retrieving the object and in that case, error log may be reviewed).
-
getObjectClass
-
getObjectId
-
getAction
public char getAction()Get the 'action' of the object in this transaction. It return a character that represents the action ('+': newly created, '*': modified, '-': deleted, '^': referenced, 'X': error).- Returns:
- Action.
-
links
Get the links of this object involved in this transaction.- Returns:
- Links of this object involved in this transaction.
-
links
public <L extends StoredObject> Stream<TransactionInformation.TransactionLink<L>> links(Class<L> linkClass, int linkType) Get the links of this object involved in this transaction.- Type Parameters:
L
- Class type of the link- Parameters:
linkClass
- Class of the linklinkType
- Type of the link- Returns:
- Links of this object involved in this transaction.
-
links
public <L extends StoredObject> Stream<TransactionInformation.TransactionLink<L>> links(Class<L> linkClass, int linkType, boolean any) Get the links of this object involved in this transaction.- Type Parameters:
L
- Class type of the link- Parameters:
linkClass
- Class of the linklinkType
- Type of the linkany
- Whether to retrieve subclasses or not- Returns:
- Links of this object involved in this transaction.
-
dump
Dump the object and link details to a "String Builder".- Parameters:
s
- "String Builder" to which output should be written.
-