|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.util.Trx
public class Trx
Transaction Management. - Create new Transaction by Trx.get(name); - ..transactions.. - commit(); ---- start(); ---- commit(); - close();
| Method Summary | |
|---|---|
boolean |
close()
End Transaction and Close Connection |
boolean |
commit()
Release savepoint |
static String |
createTrxName()
Create unique Transaction Name |
static String |
createTrxName(String prefix)
Create unique Transaction Name |
static Trx |
get(String trxName,
boolean createNewWhenNotFoundInCache)
Get Transaction |
Connection |
getConnection()
Get Connection |
Savepoint |
getSavepoint()
Get Savepoint |
String |
getTrxName()
Get Name |
boolean |
isActive()
Transaction is Active |
boolean |
rollback()
Rollback |
boolean |
start()
Start Trx |
String |
toString()
String Representation |
void |
vetoableChange(PropertyChangeEvent evt)
Vetoable Change. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Trx get(String trxName,
boolean createNewWhenNotFoundInCache)
trxName - trx namecreateNewWhenNotFoundInCache - if false, null is returned if not found
if true, only create a new Trx when trxName is not found in cache
public static String createTrxName(String prefix)
prefix - optional prefix
public static String createTrxName()
public Connection getConnection()
public String getTrxName()
public boolean start()
public Savepoint getSavepoint()
public boolean isActive()
public boolean rollback()
public boolean commit()
public boolean close()
public String toString()
toString in class Object
public void vetoableChange(PropertyChangeEvent evt)
throws PropertyVetoException
vetoableChange in interface VetoableChangeListenerevt - event
PropertyVetoException
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||