public class TransactionAnswer
extends java.lang.Object
implements java.io.Externalizable
Transaction.
Contains potential concurrency conflict reports and any server-side
BOProc added during transaction processing.
Implements custom serialization via Externalizable.
| Constructor and Description |
|---|
TransactionAnswer() |
| Modifier and Type | Method and Description |
|---|---|
static BO |
destubAndInclude(BO stub,
Transaction destubTx)
Resolves a stubbed business object using
destubTx and includes the resulting
full instance in the stub’s original transaction, if one was attached. |
BOProc[] |
getAdditionalProcs()
Returns any additional business procedures generated during transaction persistence.
|
TransactionConflictReport |
getTcr() |
boolean |
hasAdditionalBOProcs()
Returns whether this answer contains any additional business procedures.
|
boolean |
isConflict()
Returns whether this answer contains an active concurrency conflict.
|
boolean |
isNOP()
Returns whether this response represents a no-operation (NOP) transaction where
no underlying data was modified.
|
static TransactionAnswer |
ofNOP(Transaction _tx)
Creates a placeholder
TransactionAnswer for transactions containing no modifications. |
void |
readExternal(java.io.ObjectInput s) |
void |
setAdditionalBOProcs(BOProc[] addProcs)
Sets the additional business procedures generated during processing.
|
void |
setTcr(TransactionConflictReport $12) |
void |
writeExternal(java.io.ObjectOutput s) |
public static final TransactionAnswer ofNOP(Transaction _tx)
TransactionAnswer for transactions containing no modifications._tx - the empty transactionTransactionAnswer containing an empty TransactionConflictReportpublic boolean isNOP()
true if this represents a NOP transaction, false otherwisepublic boolean isConflict()
true if a conflict report exists and indicates a conflict, false otherwisepublic static BO destubAndInclude(BO stub, Transaction destubTx)
destubTx and includes the resulting
full instance in the stub’s original transaction, if one was attached.stub - the lightweight business object stub to resolvedestubTx - the transaction context used to load the full business objectBO, included in the stub’s transaction if presentpublic void setAdditionalBOProcs(BOProc[] addProcs)
addProcs - the business procedures to attachpublic BOProc[] getAdditionalProcs()
null if none were attachedpublic boolean hasAdditionalBOProcs()
true if additional procedures are present, false otherwisepublic void readExternal(java.io.ObjectInput s)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void writeExternal(java.io.ObjectOutput s)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic TransactionConflictReport getTcr()
public void setTcr(TransactionConflictReport $12)
Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.