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 Details

    • SQLExceptionValidConnectionChecker

      public SQLExceptionValidConnectionChecker()
      Constructor
  • Method Details

    • 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