|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Database-independent interface used to determine connection
state.
All subclasses MUST have a public constructor
with no parameters.
| Method Summary | |
boolean |
isAuthFailure(Connection connection,
SQLException sql,
com.novell.nds.dirxml.driver.Trace trace)
Returns whether an authentication error has been encountered. |
boolean |
isBad(Connection connection,
SQLException sql,
com.novell.nds.dirxml.driver.Trace trace)
Returns the state of connection. |
boolean |
isBad(Connection connection,
com.novell.nds.dirxml.driver.Trace trace)
Deprecated. |
boolean |
isFatal(Connection connection,
SQLException sql,
com.novell.nds.dirxml.driver.Trace trace)
Returns whether a fatal error has been encountered. |
boolean |
isRetry(Connection connection,
SQLException sql,
com.novell.nds.dirxml.driver.Trace trace)
Returns whether a timeout or retry condition has been encountered. |
| Method Detail |
public boolean isBad(Connection connection,
com.novell.nds.dirxml.driver.Trace trace)
connection.
Statement
object be allocated. All operations MUST be read-only.
This method MUST close any allocated
Statement or ResultSet objects.
A finally block is recommended for this purpose.
Disregarding these constraints will likely cause the driver to malfunction.
connection - the connection being tested; will not be nulltrace - allows messages to be output to DSTrace; will not be null
true if connection is bad;
false if connection is good
public boolean isBad(Connection connection,
SQLException sql,
com.novell.nds.dirxml.driver.Trace trace)
connection.
Statement
object be allocated. All operations MUST be read-only.
This method MUST close any allocated
Statement or ResultSet objects.
A finally block is recommended for this purpose.
Disregarding these constraints will likely cause the driver to malfunction.
connection - the connection being tested; will not be nullsql - contains database-specific error code info; will not be nulltrace - allows messages to be output to DSTrace; will not be null
true if connection is bad;
false if connection is good
public boolean isRetry(Connection connection,
SQLException sql,
com.novell.nds.dirxml.driver.Trace trace)
Statement
object be allocated. All operations MUST be read-only.
This method MUST close any allocated
Statement or ResultSet objects.
A finally block is recommended for this purpose.
Disregarding these constraints will likely cause the driver to malfunction.
connection - the connection object that generated sql; will not be nullsql - contains database-specific error code info; will not be nulltrace - allows messages to be output to DSTrace; will not be null
true if a retry condition has been detected;
false otherwise
public boolean isAuthFailure(Connection connection,
SQLException sql,
com.novell.nds.dirxml.driver.Trace trace)
Statement
object be allocated. All operations MUST be read-only.
This method MUST close any allocated
Statement or ResultSet objects.
A finally block is recommended for this purpose.
Disregarding these constraints will likely cause the driver to malfunction.
connection - the connection object that generated sql; will not be nullsql - contains database-specific error code info; will not be nulltrace - allows messages to be output to DSTrace; will not be null
true if an authentication error has been detected;
false otherwise
public boolean isFatal(Connection connection,
SQLException sql,
com.novell.nds.dirxml.driver.Trace trace)
Statement
object be allocated. All operations MUST be read-only.
This method MUST close any allocated
Statement or ResultSet objects.
A finally block is recommended for this purpose.
Disregarding these constraints will likely cause the driver to malfunction.
connection - the connection object that generated sql; will not be nullsql - contains database-specific error code info; will not be nulltrace - allows messages to be output to DSTrace; will not be null
true if a fatal error has been detected;
false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||