public class DatabaseException extends EclipseLinkException
Purpose: Wrapper for any database exception that occurred through EclipseLink.
Modifier and Type | Field and Description |
---|---|
static int |
CANNOT_REGISTER_SYNCHRONIZATIONLISTENER_FOR_UNITOFWORK |
static int |
CONFIGURATION_ERROR_CLASS_NOT_FOUND |
static int |
CONFIGURATION_ERROR_NEW_INSTANCE_ILLEGAL_ACCESS_EXCEPTION |
static int |
CONFIGURATION_ERROR_NEW_INSTANCE_INSTANTIATION_EXCEPTION |
static int |
COULD_NOT_CONVERT_OBJECT_TYPE |
static int |
COULD_NOT_FIND_MATCHED_DATABASE_FIELD_FOR_SPECIFIED_OPTOMISTICLOCKING_FIELDS |
static int |
DATABASE_ACCESSOR_CONNECTION_IS_NULL |
static int |
DATABASE_ACCESSOR_NOT_CONNECTED |
static int |
ERROR_PREALLOCATING_SEQUENCE_NUMBERS |
static int |
ERROR_READING_BLOB_DATA |
static int |
ERROR_RETRIEVE_DB_METADATA_THROUGH_JDBC_CONNECTION |
static int |
LOGOUT_WHILE_TRANSACTION_IN_PROGRESS |
static int |
SEQUENCE_TABLE_INFORMATION_NOT_COMPLETE |
static int |
SQL_EXCEPTION |
static int |
SYNCHRONIZED_UNITOFWORK_DOES_NOT_SUPPORT_COMMITANDRESUME |
static int |
TRANSACTION_MANAGER_NOT_SET_FOR_JTS_DRIVER |
static int |
UNABLE_TO_ACQUIRE_CONNECTION_FROM_DRIVER |
getErrorCode, getIndentationString, getInternalException, getSession, hasBeenLogged, printStackTrace, printStackTrace, printStackTrace, setErrorCode, setHasBeenLogged, setIndentationString, setInternalException, setSession, setShouldPrintInternalException, shouldPrintInternalException, toString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
public static final int SQL_EXCEPTION
public static final int CONFIGURATION_ERROR_CLASS_NOT_FOUND
public static final int DATABASE_ACCESSOR_NOT_CONNECTED
public static final int ERROR_READING_BLOB_DATA
public static final int COULD_NOT_CONVERT_OBJECT_TYPE
public static final int LOGOUT_WHILE_TRANSACTION_IN_PROGRESS
public static final int SEQUENCE_TABLE_INFORMATION_NOT_COMPLETE
public static final int ERROR_PREALLOCATING_SEQUENCE_NUMBERS
public static final int CANNOT_REGISTER_SYNCHRONIZATIONLISTENER_FOR_UNITOFWORK
public static final int SYNCHRONIZED_UNITOFWORK_DOES_NOT_SUPPORT_COMMITANDRESUME
public static final int CONFIGURATION_ERROR_NEW_INSTANCE_INSTANTIATION_EXCEPTION
public static final int CONFIGURATION_ERROR_NEW_INSTANCE_ILLEGAL_ACCESS_EXCEPTION
public static final int TRANSACTION_MANAGER_NOT_SET_FOR_JTS_DRIVER
public static final int ERROR_RETRIEVE_DB_METADATA_THROUGH_JDBC_CONNECTION
public static final int COULD_NOT_FIND_MATCHED_DATABASE_FIELD_FOR_SPECIFIED_OPTOMISTICLOCKING_FIELDS
public static final int UNABLE_TO_ACQUIRE_CONNECTION_FROM_DRIVER
public static final int DATABASE_ACCESSOR_CONNECTION_IS_NULL
public static DatabaseException cannotRegisterSynchronizatonListenerForUnitOfWork(Exception e)
public static DatabaseException configurationErrorClassNotFound(String className)
public static DatabaseException configurationErrorNewInstanceIllegalAccessException(IllegalAccessException exception, Class javaClass)
public static DatabaseException configurationErrorNewInstanceInstantiationException(InstantiationException exception, Class javaClass)
public static DatabaseException couldNotConvertObjectType(int type)
public static DatabaseException databaseAccessorNotConnected()
public static DatabaseException databaseAccessorNotConnected(DatabaseAccessor databaseAccessor)
public static DatabaseException databaseAccessorConnectionIsNull(DatabaseAccessor databaseAccessor, AbstractSession session)
public static DatabaseException errorPreallocatingSequenceNumbers()
public static DatabaseException errorReadingBlobData()
public static DatabaseException specifiedLockingFieldsNotFoundInDatabase(String lockingFieldName)
public Accessor getAccessor()
public int getDatabaseErrorCode()
public String getMessage()
getMessage
in class EclipseLinkException
public DatabaseQuery getQuery()
public Call getCall()
public void setCall(Call call)
public Record getQueryArgumentsRecord()
public static DatabaseException logoutWhileTransactionInProgress()
public static DatabaseException sequenceTableInformationNotComplete()
public void setAccessor(Accessor accessor)
public void setQuery(DatabaseQuery query)
public void setQueryArguments(AbstractRecord queryArguments)
public static DatabaseException sqlException(SQLException exception)
public static DatabaseException sqlException(SQLException exception, boolean commError)
public static DatabaseException sqlException(SQLException exception, AbstractSession session, boolean commError)
public static DatabaseException sqlException(SQLException exception, Accessor accessor, AbstractSession session, boolean isCommunicationFailure)
public static DatabaseException sqlException(SQLException exception, Call call, Accessor accessor, AbstractSession session, boolean isCommunicationFailure)
public static DatabaseException synchronizedUnitOfWorkDoesNotSupportCommitAndResume()
public static DatabaseException transactionManagerNotSetForJTSDriver()
public static DatabaseException errorRetrieveDbMetadataThroughJDBCConnection()
public static DatabaseException unableToAcquireConnectionFromDriverException(String driver, String user, String url)
driver
- public static DatabaseException unableToAcquireConnectionFromDriverException(SQLException exception, String driver, String user, String url)
exception
- driver
- public boolean isCommunicationFailure()
public void setCommunicationFailure(boolean isCommunicationFailure)
EclipseLink 2.5.2, "build v20140319-9ad6abd" API Reference