|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.experlog.db.ESSimpleConnection
public class ESSimpleConnection
ESSimpleConnection stores a physical connection (from the jdbc pool, the number of allocated connections from this one, and a list of clientId, which use currently this connection
Field Summary | |
---|---|
java.sql.Connection |
con
|
int |
count
|
java.util.Vector |
list
|
Constructor Summary | |
---|---|
ESSimpleConnection(java.sql.Connection connect,
java.lang.String clientId)
constructor |
Method Summary | |
---|---|
boolean |
findClient(java.lang.String clientId)
find the client (clientId), returns true if found, else false |
java.sql.Connection |
getConnection(java.lang.String clientId)
return the current connection one more client works with it. |
int |
getCount()
return the number of clients which use the connection |
int |
removeClient(java.lang.String clientId)
remove the client (clientId) and return the number of clients which use the connection now. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int count
public java.sql.Connection con
public java.util.Vector list
Constructor Detail |
---|
public ESSimpleConnection(java.sql.Connection connect, java.lang.String clientId)
Method Detail |
---|
public java.sql.Connection getConnection(java.lang.String clientId)
public boolean findClient(java.lang.String clientId)
public int removeClient(java.lang.String clientId)
public int getCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |