|
Buglet - buglet.sourceforge.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.buglet.db.ConHandle
Connection handle to the database.
Field Summary | |
(package private) java.sql.Connection |
con
sql database handle |
(package private) boolean |
inUse
indicate whether the connection handle is in use. |
(package private) long |
timeStamp
timestamp to indicate when the connection was opened. |
Constructor Summary | |
ConHandle(java.sql.Connection con,
boolean inUse)
constructor. |
Method Summary | |
void |
free()
mark this connection as free. |
java.sql.Connection |
getCon()
get the connection handle. |
long |
getTime()
get the timestamp. |
boolean |
inUse()
method to determine if connection is in use. |
boolean |
isClosed()
figure out if connection is closed. |
void |
setCon(java.sql.Connection con)
set the connection handle |
void |
used()
mark this connection as used. |
Methods inherited from class java.lang.Object |
|
Field Detail |
boolean inUse
java.sql.Connection con
long timeStamp
Constructor Detail |
public ConHandle(java.sql.Connection con, boolean inUse)
con
- inUse
- Method Detail |
public boolean isClosed()
public long getTime()
public void used()
public void free()
public boolean inUse()
public java.sql.Connection getCon()
public void setCon(java.sql.Connection con)
con
-
|
Buglet - buglet.sourceforge.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |