public class ConnectionEntry extends java.lang.Object implements EnvCleanup
Constructor and Description |
---|
ConnectionEntry(Env env) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
void |
connect(boolean isReuse) |
boolean |
equals(java.lang.Object o) |
java.sql.Connection |
getConnection() |
int |
hashCode() |
void |
init(javax.sql.DataSource ds,
java.lang.String user,
java.lang.String password) |
boolean |
isReusable() |
void |
markForPoolRemoval()
Notify that the connection should not be reused, e.g.
|
void |
phpClose()
Called from php code to close the connection.
|
void |
setCatalog(java.lang.String catalog) |
java.lang.String |
toString() |
public ConnectionEntry(Env env)
public void init(javax.sql.DataSource ds, java.lang.String user, java.lang.String password)
public void connect(boolean isReuse) throws java.sql.SQLException
java.sql.SQLException
public boolean isReusable()
public java.sql.Connection getConnection()
public void setCatalog(java.lang.String catalog) throws java.sql.SQLException
java.sql.SQLException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void markForPoolRemoval()
public void phpClose()
public void cleanup() throws java.sql.SQLException
cleanup
in interface EnvCleanup
java.sql.SQLException
public java.lang.String toString()
toString
in class java.lang.Object