public class TransactionConflictReport
extends java.lang.Object
implements java.io.Serializable
Transaction
on the server and of all the involved BO
s. The name is rather
misleading as these are created for any Transaction
, not only the ones for which conflicting changes were
detected (which is actually a rare occurrence).Constructor and Description |
---|
TransactionConflictReport(Transaction _tx,
SchemaI _schema,
java.util.Date _ts,
boolean _forServerLocalTransaction) |
Modifier and Type | Method and Description |
---|---|
BO |
createInStore(BO bo,
PersistenceHandlerI ph)
Memorizes via the "new" list of the
PersistenceHandlerI that the
given BO was created and sets its BOLoader to the
Transaction associated with this TransactionConflictReport . |
TransactionConflictAnswer |
getAnswerByBOId(java.lang.Long id)
Returns the TransactionConflictAnswer for the BO with the passed id.
|
SchemaI |
getSchema()
Convenience method for getting the current
SchemaI . |
java.util.Date |
getTs() |
long |
getTxId() |
boolean |
isConflict() |
boolean |
isCreated() |
boolean |
isNOP() |
void |
setConflict(boolean $9) |
void |
setCreated(boolean $10) |
void |
setTs(java.util.Date $11) |
void |
setTxId(long $12) |
void |
thinner()
Thins out the BO-references that are not necessary (no Lmod-changes or object creation)
|
java.lang.String |
toString()
Returns a String representation for this TransactionConflictReport, stating the conflict-state,
the created-value, the Transaction-Id, the timestamp and the number of associated TransactionConflictAnswers
for this TransactionConflictReport.
|
java.lang.String |
toString(boolean showAnswers) |
public TransactionConflictReport(Transaction _tx, SchemaI _schema, java.util.Date _ts, boolean _forServerLocalTransaction)
public boolean isNOP()
public SchemaI getSchema()
SchemaI
.SchemaI
.public TransactionConflictAnswer getAnswerByBOId(java.lang.Long id)
public void thinner()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean showAnswers)
public BO createInStore(BO bo, PersistenceHandlerI ph)
PersistenceHandlerI
that the
given BO
was created and sets its BOLoader
to the
Transaction
associated with this TransactionConflictReport
.
Nothing is actually persisted here yet.bo
that was passed as argumentpublic boolean isConflict()
public void setConflict(boolean $9)
public boolean isCreated()
public void setCreated(boolean $10)
public java.util.Date getTs()
public void setTs(java.util.Date $11)
public long getTxId()
public void setTxId(long $12)
Copyright © 2000-2024 OAshi S.à r.l. All Rights Reserved.