public class SQLExceptionValidConnectionChecker extends java.lang.Object implements ValidConnectionChecker, java.io.Serializable
Constructor and Description |
---|
SQLExceptionValidConnectionChecker()
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getReason()
Get the reason
|
java.lang.String |
getSQLState()
Get the SQL state
|
java.lang.Integer |
getVendorCode()
Get the vendor code
|
java.sql.SQLException |
isValidConnection(java.sql.Connection c)
Checks the connection is valid
|
void |
setReason(java.lang.String v)
Set the reason
|
void |
setSQLState(java.lang.String v)
Set the SQL state
|
void |
setVendorCode(java.lang.Integer v)
Set the vendor code
|
public SQLExceptionValidConnectionChecker()
public java.lang.String getReason()
public void setReason(java.lang.String v)
v
- The valuepublic java.lang.String getSQLState()
public void setSQLState(java.lang.String v)
v
- The valuepublic java.lang.Integer getVendorCode()
public void setVendorCode(java.lang.Integer v)
v
- The valuepublic java.sql.SQLException isValidConnection(java.sql.Connection c)
isValidConnection
in interface ValidConnectionChecker
c
- the connectionCopyright © 2013 IronJacamar (http://www.ironjacamar.org)