public class SQLExceptionValidConnectionChecker extends Object implements ValidConnectionChecker, Serializable
Constructor and Description |
---|
SQLExceptionValidConnectionChecker()
Constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
public SQLExceptionValidConnectionChecker()
public String getReason()
public void setReason(String v)
v
- The valuepublic String getSQLState()
public void setSQLState(String v)
v
- The valuepublic Integer getVendorCode()
public void setVendorCode(Integer v)
v
- The valuepublic SQLException isValidConnection(Connection c)
isValidConnection
in interface ValidConnectionChecker
c
- the connectionCopyright © 2021 JBoss by Red Hat. All rights reserved.