|
Adempiere 3.5.2a | |||||||||
| 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()
Commit |
boolean |
commit(boolean throwException)
Commit |
static String |
createTrxName()
Create unique Transaction Name |
static String |
createTrxName(String prefix)
Create unique Transaction Name |
static Trx |
get(String trxName,
boolean createNew)
Get Transaction |
static Trx[] |
getActiveTransactions()
|
Connection |
getConnection()
Get Connection |
Date |
getStartTime()
|
String |
getTrxName()
Get Name |
boolean |
isActive()
Transaction is Active |
boolean |
rollback()
Rollback |
boolean |
rollback(boolean throwException)
Rollback |
boolean |
rollback(Savepoint savepoint)
Rollback |
Savepoint |
setSavepoint(String name)
|
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 createNew)
trxName - trx namecreateNew - if false, null is returned if not found
public static String createTrxName(String prefix)
prefix - optional prefix
public static String createTrxName()
public Connection getConnection()
public String getTrxName()
public boolean start()
public Date getStartTime()
public boolean isActive()
public boolean rollback(boolean throwException)
throws SQLException
throwException - if true, re-throws exception
SQLExceptionpublic boolean rollback()
public boolean rollback(Savepoint savepoint)
throws SQLException
throwException - if true, re-throws exception
SQLException
public boolean commit(boolean throwException)
throws SQLException
throwException - if true, re-throws exception
SQLExceptionpublic boolean commit()
public boolean close()
public Savepoint setSavepoint(String name)
throws SQLException
name -
SQLExceptionpublic String toString()
toString in class Object
public void vetoableChange(PropertyChangeEvent evt)
throws PropertyVetoException
vetoableChange in interface VetoableChangeListenerevt - event
PropertyVetoExceptionpublic static Trx[] getActiveTransactions()
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||