org.jboss.jca.adapters.jdbc.extensions.novendor
Class SQLExceptionValidConnectionChecker

java.lang.Object
  extended by 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
SQLExceptionValidConnectionChecker()
          Constructor
 
Method Summary
 String getReason()
          Get the reason
 String getSQLState()
          Get the SQL state
 Integer getVendorCode()
          Get the vendor code
 SQLException isValidConnection(Connection c)
          Checks the connection is valid
 void setReason(String v)
          Set the reason
 void setSQLState(String v)
          Set the SQL state
 void setVendorCode(Integer v)
          Set the vendor code
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLExceptionValidConnectionChecker

public SQLExceptionValidConnectionChecker()
Constructor

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:
isValidConnection in interface ValidConnectionChecker
Parameters:
c - the connection
Returns:
Exception when not valid, null when valid


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)