Package com.storedobject.core
Class TransactionInformation.TransactionLink<L extends StoredObject>
java.lang.Object
com.storedobject.core.TransactionInformation.TransactionLink<L>
- Type Parameters:
L
- Class type of the link
- Enclosing class:
TransactionInformation
Class that encapsulates a link involved in a transaction.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Dump the link details to a "String Builder".getLink()
Get the link object involved.Class of the link object.Get the Id of the link object.boolean
isAdded()
If this link was newly added in the transaction or not.boolean
Check whether this is a 'detail link' or not.boolean
If this link was just referenced (not added or removed) in the transaction or not.boolean
Check whether this is a 'reference link' or not.boolean
If this link was removed in the transaction or not.
-
Method Details
-
getLink
Get the link object involved.- Returns:
- Link object. (A
null
may be returned if any error occurs in retrieving the object and in that case, error log may be reviewed).
-
getLinkId
-
getLinkClass
-
isDetailLink
public boolean isDetailLink()Check whether this is a 'detail link' or not.- Returns:
- True or false.
-
isReferenceLink
public boolean isReferenceLink()Check whether this is a 'reference link' or not.- Returns:
- True or false.
-
isRemoved
public boolean isRemoved()If this link was removed in the transaction or not.- Returns:
- True or false.
-
isAdded
public boolean isAdded()If this link was newly added in the transaction or not.- Returns:
- True or false.
-
isReferenced
public boolean isReferenced()If this link was just referenced (not added or removed) in the transaction or not.- Returns:
- True or false.
-
dump
Dump the link details to a "String Builder".- Parameters:
s
- "String Builder" to which output should be written.
-