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 codeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.jca.adapters.jdbc.spi.ValidConnectionChecker
setQueryTimeout
-
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
-