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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the reasonGet the SQL stateGet the vendor codeChecks the connection is validvoidSet the reasonvoidSet the SQL statevoidSet the vendor code
-
Constructor Details
-
SQLExceptionValidConnectionChecker
public SQLExceptionValidConnectionChecker()Constructor
-
-
Method Details
-
getReason
Get the reason- Returns:
- The value
-
setReason
Set the reason- Parameters:
v- The value
-
getSQLState
Get the SQL state- Returns:
- The value
-
setSQLState
Set the SQL state- Parameters:
v- The value
-
getVendorCode
Get the vendor code- Returns:
- The value
-
setVendorCode
Set the vendor code- Parameters:
v- The value
-
isValidConnection
Checks the connection is valid- Specified by:
isValidConnectionin interfaceValidConnectionChecker- Parameters:
c- the connection- Returns:
- Exception when not valid, null when valid
-