public class Transaction.Savepoint extends java.lang.Object implements BOProcHolderI
Modifier and Type | Method and Description |
---|---|
void |
commit()
commit the changes in this Savepoint and disassociate it with it's Transaction,
which means it's not possible to return to the Savepoint anymore.
|
void |
dumpProcs(org.apache.log4j.Logger _log)
Dumps the procs in a human readable format as text into the provided nonnull logger
|
void |
dumpProcs(org.apache.log4j.Logger _log,
org.apache.log4j.Level _level) |
java.util.Map<java.lang.String,de.ipcon.db.core.Transaction.TransactionLocal> |
getAllLocals() |
Transaction.Canonification |
getCanonification(boolean modifyCurrent)
Returns a Canonification of the Transaction starting at this Savepoint
|
int |
getDeletedBOCount() |
int |
getIncludedBOCount() |
BO[] |
getIncludedBOs() |
java.lang.String |
getName()
returns the Name of this Savepoint, given over in the
Transaction.savepoint(String) |
int |
getNewBOCount() |
java.lang.Object |
getOwner()
returns the Owner of this Savepoint, given over in the
Transaction.savepoint(String,Object) |
int |
getProcCount() |
java.lang.Object |
getProperty(java.lang.String s)
Looks up the properties in this Savepoint and, if not found, into previous Savepoint
and finally into the enclosing Transaction.
|
java.util.Map<java.lang.String,de.ipcon.db.core.Transaction.TransactionLocal> |
getSpLocals()
returns read only Map of the current properties in this Savepoint
|
Transaction |
getTransaction()
returns Transaction associated with this Savepoint
|
boolean |
hasProperty(java.lang.String key)
Returns true if a transaction property with the passed key exists.
|
boolean |
isActive()
Returns true if any proc(edure)s / changes were recorded in the transaction after this Savepoint was created.
|
boolean |
isValid()
Tells whether this Savepoint is still valid.
|
java.lang.String |
newBOsToString() |
java.lang.String |
newBOsToString(boolean _html) |
java.lang.String |
procsToString()
Print out the procs of the parent transaction that are captured within this Savepoint in a human readable format.
|
java.lang.String |
procsToString(boolean html)
Print out procs in a human readable format.
|
java.lang.String |
procsToString(boolean html,
BO rootBO)
Print out procs in a human readable format.
|
java.lang.String |
procsToString(boolean html,
BO rootBO,
boolean rootBOOnly) |
java.lang.String |
procsToString(boolean html,
BO rootBO,
boolean rootBOOnly,
int maximumProcs) |
java.lang.String |
procsToString(boolean html,
BO rootBO,
boolean rootBOOnly,
int maximumProcs,
boolean _grouped) |
java.lang.String |
procsToString(boolean html,
BO rootBO,
boolean rootBOOnly,
int maximumProcs,
boolean _grouped,
boolean _canonize) |
void |
rollback()
Rollback associated Transaction to this Savepoint.
|
void |
setProperty(java.lang.String s,
java.lang.Object v,
byte scope)
Put and/or replace property in this Savepoint.
|
void |
setProperty(java.lang.String s,
java.lang.Object v,
byte scope,
boolean isFinal) |
public boolean isValid()
public Transaction getTransaction()
Transaction
public int getNewBOCount()
getNewBOCount
in interface BOProcHolderI
public int getDeletedBOCount()
getDeletedBOCount
in interface BOProcHolderI
public java.lang.String newBOsToString()
public java.lang.String newBOsToString(boolean _html)
newBOsToString
in interface BOProcHolderI
public int getProcCount()
public int getIncludedBOCount()
public BO[] getIncludedBOs()
public Transaction.Canonification getCanonification(boolean modifyCurrent)
public void rollback()
public void commit()
isValid()
public boolean isActive()
Transaction.isActive()
public java.lang.String getName()
Transaction.savepoint(String)
public java.lang.Object getOwner()
Transaction.savepoint(String,Object)
public java.util.Map<java.lang.String,de.ipcon.db.core.Transaction.TransactionLocal> getSpLocals()
public boolean hasProperty(java.lang.String key)
public java.lang.Object getProperty(java.lang.String s)
Transaction.getProperty(String)
public void setProperty(java.lang.String s, java.lang.Object v, byte scope)
Transaction.setProperty(String,Object,byte)
public void setProperty(java.lang.String s, java.lang.Object v, byte scope, boolean isFinal)
public java.util.Map<java.lang.String,de.ipcon.db.core.Transaction.TransactionLocal> getAllLocals()
public void dumpProcs(org.apache.log4j.Logger _log)
BOProcHolderI
dumpProcs
in interface BOProcHolderI
public void dumpProcs(org.apache.log4j.Logger _log, org.apache.log4j.Level _level)
public java.lang.String procsToString()
html
- whether to print the output in HTML or plain textrootBO
- if not null, only BOProcs affecting the given BO will be collected.rootBOOnly
- if false, all procs are being printed even when the $rootBO is not nullmaximumProcs
- number of procs that are to be printed(exclusive).
a value of -1 is equivalent with getProcs().size()grouped
- whether the procs should be formatted to be grouped by the BO they are concerning or notcanonize
- whether the procs of this transaction are to be canonized Transaction.canonize(boolean)
public java.lang.String procsToString(boolean html)
BOProcHolderI
procsToString
in interface BOProcHolderI
public java.lang.String procsToString(boolean html, BO rootBO)
BOProcHolderI
procsToString
in interface BOProcHolderI
public java.lang.String procsToString(boolean html, BO rootBO, boolean rootBOOnly)
public java.lang.String procsToString(boolean html, BO rootBO, boolean rootBOOnly, int maximumProcs)
public java.lang.String procsToString(boolean html, BO rootBO, boolean rootBOOnly, int maximumProcs, boolean _grouped)
public java.lang.String procsToString(boolean html, BO rootBO, boolean rootBOOnly, int maximumProcs, boolean _grouped, boolean _canonize)
Copyright © 2000-2024 OAshi S.à r.l. All Rights Reserved.