|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.triactive.jdo.store.adapter.SqlState com.triactive.jdo.store.adapter.PostgresqlSqlState
A SQLSTATE diagnostic code for PostgreSQL.
DatabaseAdapter
Nested Class Summary | |
static class |
PostgresqlSqlState.ClassCode
Contains constants for known SQLSTATE class codes. |
Constructor Summary | |
PostgresqlSqlState(java.lang.String s)
Constructs a SqlState object from the specified SQLSTATE string. |
Method Summary | |
boolean |
isWorthRetrying()
Indicates whether or not this SQLSTATE represents an error whose cause may be transient, meaning the operation or transaction may succeed if retried. |
Methods inherited from class com.triactive.jdo.store.adapter.SqlState |
classCode, isStandard, subclassCode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PostgresqlSqlState(java.lang.String s) throws java.lang.IllegalArgumentException
s
- A 5-character SQLSTATE string.
java.lang.IllegalArgumentException
- if s is not a valid 5-character SQLSTATE string.Method Detail |
public boolean isWorthRetrying()
SqlState
The implementation in this class errs on the side of declaring things retryable, meaning it returns false only for recognized values that are known not to be worth retrying. Subclasses may override this method in vendor-specific ways.
isWorthRetrying
in class SqlState
true
if the error may be transient,
false
if a retry is known to be pointless.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |