|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouperClient.jdbc.GcDbAccess.ConnectionBean
public static class GcDbAccess.ConnectionBean
returned from connection call
Constructor Summary | |
---|---|
GcDbAccess.ConnectionBean()
|
Method Summary | |
---|---|
static void |
closeIfStarted(GcDbAccess.ConnectionBean connectionBean)
close the connection if started |
java.sql.Connection |
getConnection()
|
boolean |
isConnectionStarted()
if the connection was started or reused from threadlocal |
boolean |
isInTransaction()
if we are in a transaction |
boolean |
isTransactionStarted()
if a transaction was started |
void |
setConnection(java.sql.Connection connection1)
|
void |
setConnectionStarted(boolean connectionStarted1)
|
void |
setInTransaction(boolean inTransaction1)
if we are in a transaction |
void |
setTransactionStarted(boolean transactionStarted1)
if a transaction was started |
static void |
transactionEnd(GcDbAccess.ConnectionBean connectionBean,
GcTransactionEnd transactionEnd,
boolean endOnlyIfStarted,
boolean errorIfNoTransaction,
boolean endTransaction)
end a transaction |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GcDbAccess.ConnectionBean()
Method Detail |
---|
public boolean isInTransaction()
public void setInTransaction(boolean inTransaction1)
inTransaction1
- the inTransaction to setpublic java.sql.Connection getConnection()
public void setConnection(java.sql.Connection connection1)
connection1
- the connection to setpublic boolean isTransactionStarted()
public void setTransactionStarted(boolean transactionStarted1)
transactionStarted1
- the transactionStarted to setpublic boolean isConnectionStarted()
public void setConnectionStarted(boolean connectionStarted1)
connectionStarted1
- the connectionStarted to setpublic static void transactionEnd(GcDbAccess.ConnectionBean connectionBean, GcTransactionEnd transactionEnd, boolean endOnlyIfStarted, boolean errorIfNoTransaction, boolean endTransaction)
connectionBean
- transactionEnd
- endOnlyIfStarted
- only a connection and just end it with commit...errorIfNoTransaction
- endTransaction
- public static void closeIfStarted(GcDbAccess.ConnectionBean connectionBean)
connectionBean
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |