Package org.jboss.jca.adapters.jdbc
Class CheckValidConnectionSQL
- java.lang.Object
-
- org.jboss.jca.adapters.jdbc.CheckValidConnectionSQL
-
- All Implemented Interfaces:
Serializable,ValidConnectionChecker
public class CheckValidConnectionSQL extends Object implements ValidConnectionChecker, Serializable
Implements check valid connection sql- Version:
- $Revision: 71554 $
- Author:
- Adrian Brock
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CheckValidConnectionSQL()ConstructorCheckValidConnectionSQL(String sql)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SQLExceptionisValidConnection(Connection c)Checks the connection is valid
-
-
-
Constructor Detail
-
CheckValidConnectionSQL
public CheckValidConnectionSQL()
Constructor
-
CheckValidConnectionSQL
public CheckValidConnectionSQL(String sql)
Constructor- Parameters:
sql- The SQL string
-
-
Method Detail
-
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
-
-