Class SQLExceptionValidConnectionChecker
- java.lang.Object
-
- org.jboss.jca.adapters.jdbc.extensions.novendor.SQLExceptionValidConnectionChecker
-
- All Implemented Interfaces:
Serializable,ValidConnectionChecker
public class SQLExceptionValidConnectionChecker extends Object implements ValidConnectionChecker, Serializable
Always throws a SQLException- Author:
- Jesper Pedersen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SQLExceptionValidConnectionChecker()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetReason()Get the reasonStringgetSQLState()Get the SQL stateIntegergetVendorCode()Get the vendor codeSQLExceptionisValidConnection(Connection c)Checks the connection is validvoidsetReason(String v)Set the reasonvoidsetSQLState(String v)Set the SQL statevoidsetVendorCode(Integer v)Set the vendor code
-
-
-
Method Detail
-
getReason
public String getReason()
Get the reason- Returns:
- The value
-
setReason
public void setReason(String v)
Set the reason- Parameters:
v- The value
-
getSQLState
public String getSQLState()
Get the SQL state- Returns:
- The value
-
setSQLState
public void setSQLState(String v)
Set the SQL state- Parameters:
v- The value
-
getVendorCode
public Integer getVendorCode()
Get the vendor code- Returns:
- The value
-
setVendorCode
public void setVendorCode(Integer v)
Set the vendor code- Parameters:
v- The value
-
isValidConnection
public SQLException isValidConnection(Connection c)
Checks the connection is valid- Specified by:
isValidConnectionin interfaceValidConnectionChecker- Parameters:
c- the connection- Returns:
- Exception when not valid, null when valid
-
-