|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PoolableConnection
Defines a wrapper connection which can be pooled.
Method Summary | |
---|---|
void |
beginTransaction()
Begins a transaction on this connection |
void |
commit()
Performs a commit |
void |
commitTransaction()
Performs a commit and ends the current transaction |
void |
disconnect()
Disconnects this connection |
Connection |
getConnection()
|
Database |
getDatabase()
|
List<LogEntry> |
getLogEntries()
|
MethodLogger |
getMethodLogger()
|
long |
getPoolTime()
|
int |
getRetryCount()
|
User |
getUser()
|
boolean |
isLoggingEnabled()
|
boolean |
isTransactionOpen()
|
boolean |
isValid()
|
void |
rollback()
Performs a rollback |
void |
rollbackTransaction()
Performs a rollback and ends the current transaction |
void |
setLoggingEnabled(boolean enabled)
|
void |
setPoolTime(long time)
Sets the time this connection was checked into a connection pool |
void |
setRetryCount(int retryCount)
|
Method Detail |
---|
Connection getConnection()
long getPoolTime()
void setPoolTime(long time)
time
- the time this connection was pooledvoid setRetryCount(int retryCount)
retryCount
- the number of retries used to retrieve this connection from the poolint getRetryCount()
boolean isValid()
void beginTransaction()
IllegalStateException
- in case a transaction is already openboolean isTransactionOpen()
void commitTransaction()
IllegalStateException
- in case transaction is not openvoid rollbackTransaction()
IllegalStateException
- in case transaction is not openvoid commit() throws SQLException
SQLException
- thrown if anything goes wrong during the execution
IllegalStateException
- in case a transaction is openvoid rollback() throws SQLException
SQLException
- thrown if anything goes wrong during the execution
IllegalStateException
- in case a transaction is openvoid disconnect()
List<LogEntry> getLogEntries()
MethodLogger getMethodLogger()
void setLoggingEnabled(boolean enabled)
enabled
- true to enable logging on this connection, false to disableboolean isLoggingEnabled()
User getUser()
Database getDatabase()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |