Purpose: Wrapper for any database exception that occurred through EclipseLink.
| Modifier and Type | Field and Description |
|---|---|
| protected transient Accessor | |
| protected transient Call | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| protected SQLException | |
| protected boolean | |
| public static final int | |
| protected transient DatabaseQuery | |
| protected transient AbstractRecord | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | DatabaseException(String message)
INTERNAL: EclipseLink exceptions should only be thrown by the EclipseLink code. |
| protected | DatabaseException(SQLException exception)
INTERNAL: EclipseLink exceptions should only be thrown by the EclipseLink code. |
| Modifier and Type | Method and Description |
|---|---|
| public static DatabaseException | |
| public static DatabaseException | |
| public static DatabaseException | configurationErrorNewInstanceIllegalAccessException(IllegalAccessException exception, Class<?> javaClass)
|
| public static DatabaseException | configurationErrorNewInstanceInstantiationException(InstantiationException exception, Class<?> javaClass)
|
| public static DatabaseException | |
| public static DatabaseException | |
| public static DatabaseException | |
| public static DatabaseException | |
| public static DatabaseException | |
| public static DatabaseException | |
| public static DatabaseException | |
| public Accessor | |
| public Call | |
| public int | |
| public String | getMessage()
Overrides org. |
| public DatabaseQuery | |
| public DataRecord | getQueryArgumentsRecord()
PUBLIC: Return the query arguments used in the original query when exception is thrown |
| public boolean | |
| public static DatabaseException | |
| public static DatabaseException | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setQueryArguments(AbstractRecord queryArguments)
PUBLIC: Set the query arguments used in the original query when exception is thrown |
| public static DatabaseException | |
| public static DatabaseException | |
| public static DatabaseException | |
| public static DatabaseException | |
| 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 | |
| public static DatabaseException | |
| public static DatabaseException | unableToAcquireConnectionFromDriverException(String driver, String user, String url)
The connection returned from this driver was null, the driver may be missing(using the default) or the wrong one for the database. |
| public static DatabaseException | unableToAcquireConnectionFromDriverException(SQLException exception, String driver, String user, String url)
The connection returned from this driver was null, the driver may be missing(using the default) or the wrong one for the database. |
| accessor | back to summary |
|---|---|
| protected transient Accessor accessor | |
| call | back to summary |
|---|---|
| protected transient Call call | |
| CANNOT_REGISTER_SYNCHRONIZATIONLISTENER_FOR_UNITOFWORK | back to summary |
|---|---|
| public static final int CANNOT_REGISTER_SYNCHRONIZATIONLISTENER_FOR_UNITOFWORK | |
| CONFIGURATION_ERROR_CLASS_NOT_FOUND | back to summary |
|---|---|
| public static final int CONFIGURATION_ERROR_CLASS_NOT_FOUND | |
| CONFIGURATION_ERROR_NEW_INSTANCE_ILLEGAL_ACCESS_EXCEPTION | back to summary |
|---|---|
| public static final int CONFIGURATION_ERROR_NEW_INSTANCE_ILLEGAL_ACCESS_EXCEPTION | |
| CONFIGURATION_ERROR_NEW_INSTANCE_INSTANTIATION_EXCEPTION | back to summary |
|---|---|
| public static final int CONFIGURATION_ERROR_NEW_INSTANCE_INSTANTIATION_EXCEPTION | |
| COULD_NOT_CONVERT_OBJECT_TYPE | back to summary |
|---|---|
| public static final int COULD_NOT_CONVERT_OBJECT_TYPE | |
| COULD_NOT_FIND_MATCHED_DATABASE_FIELD_FOR_SPECIFIED_OPTOMISTICLOCKING_FIELDS | back to summary |
|---|---|
| public static final int COULD_NOT_FIND_MATCHED_DATABASE_FIELD_FOR_SPECIFIED_OPTOMISTICLOCKING_FIELDS | |
| DATABASE_ACCESSOR_CONNECTION_IS_NULL | back to summary |
|---|---|
| public static final int DATABASE_ACCESSOR_CONNECTION_IS_NULL | |
| DATABASE_ACCESSOR_NOT_CONNECTED | back to summary |
|---|---|
| public static final int DATABASE_ACCESSOR_NOT_CONNECTED | |
| ERROR_PREALLOCATING_SEQUENCE_NUMBERS | back to summary |
|---|---|
| public static final int ERROR_PREALLOCATING_SEQUENCE_NUMBERS | |
| ERROR_READING_BLOB_DATA | back to summary |
|---|---|
| public static final int ERROR_READING_BLOB_DATA | |
| ERROR_RETRIEVE_DB_METADATA_THROUGH_JDBC_CONNECTION | back to summary |
|---|---|
| public static final int ERROR_RETRIEVE_DB_METADATA_THROUGH_JDBC_CONNECTION | |
| exception | back to summary |
|---|---|
| protected SQLException exception | |
| isCommunicationFailure | back to summary |
|---|---|
| protected boolean isCommunicationFailure | |
| LOGOUT_WHILE_TRANSACTION_IN_PROGRESS | back to summary |
|---|---|
| public static final int LOGOUT_WHILE_TRANSACTION_IN_PROGRESS | |
| query | back to summary |
|---|---|
| protected transient DatabaseQuery query | |
| queryArguments | back to summary |
|---|---|
| protected transient AbstractRecord queryArguments | |
| SEQUENCE_TABLE_INFORMATION_NOT_COMPLETE | back to summary |
|---|---|
| public static final int SEQUENCE_TABLE_INFORMATION_NOT_COMPLETE | |
| SQL_EXCEPTION | back to summary |
|---|---|
| public static final int SQL_EXCEPTION | |
| SYNCHRONIZED_UNITOFWORK_DOES_NOT_SUPPORT_COMMITANDRESUME | back to summary |
|---|---|
| public static final int SYNCHRONIZED_UNITOFWORK_DOES_NOT_SUPPORT_COMMITANDRESUME | |
| TRANSACTION_MANAGER_NOT_SET_FOR_JTS_DRIVER | back to summary |
|---|---|
| public static final int TRANSACTION_MANAGER_NOT_SET_FOR_JTS_DRIVER | |
| UNABLE_TO_ACQUIRE_CONNECTION_FROM_DRIVER | back to summary |
|---|---|
| public static final int UNABLE_TO_ACQUIRE_CONNECTION_FROM_DRIVER | |
| DatabaseException | back to summary |
|---|---|
| protected DatabaseException() INTERNAL: EclipseLink exceptions should only be thrown by the EclipseLink code. | |
| DatabaseException | back to summary |
|---|---|
| protected DatabaseException(String message) INTERNAL: EclipseLink exceptions should only be thrown by the EclipseLink code. | |
| DatabaseException | back to summary |
|---|---|
| protected DatabaseException(SQLException exception) INTERNAL: EclipseLink exceptions should only be thrown by the EclipseLink code. | |
| cannotRegisterSynchronizatonListenerForUnitOfWork | back to summary |
|---|---|
| public static DatabaseException cannotRegisterSynchronizatonListenerForUnitOfWork(Exception e) | |
| configurationErrorClassNotFound | back to summary |
|---|---|
| public static DatabaseException configurationErrorClassNotFound(String className) | |
| configurationErrorNewInstanceIllegalAccessException | back to summary |
|---|---|
| public static DatabaseException configurationErrorNewInstanceIllegalAccessException(IllegalAccessException exception, Class<?> javaClass) | |
| configurationErrorNewInstanceInstantiationException | back to summary |
|---|---|
| public static DatabaseException configurationErrorNewInstanceInstantiationException(InstantiationException exception, Class<?> javaClass) | |
| couldNotConvertObjectType | back to summary |
|---|---|
| public static DatabaseException couldNotConvertObjectType(int type) | |
| databaseAccessorConnectionIsNull | back to summary |
|---|---|
| public static DatabaseException databaseAccessorConnectionIsNull(DatabaseAccessor databaseAccessor, AbstractSession session) | |
| databaseAccessorNotConnected | back to summary |
|---|---|
| public static DatabaseException databaseAccessorNotConnected() | |
| databaseAccessorNotConnected | back to summary |
|---|---|
| public static DatabaseException databaseAccessorNotConnected(DatabaseAccessor databaseAccessor) | |
| errorPreallocatingSequenceNumbers | back to summary |
|---|---|
| public static DatabaseException errorPreallocatingSequenceNumbers() | |
| errorReadingBlobData | back to summary |
|---|---|
| public static DatabaseException errorReadingBlobData() | |
| errorRetrieveDbMetadataThroughJDBCConnection | back to summary |
|---|---|
| public static DatabaseException errorRetrieveDbMetadataThroughJDBCConnection() | |
| getAccessor | back to summary |
|---|---|
| public Accessor getAccessor() PUBLIC: Return the accessor. | |
| getCall | back to summary |
|---|---|
| public Call getCall() PUBLIC: Return the call that caused the exception. | |
| getDatabaseErrorCode | back to summary |
|---|---|
| public int getDatabaseErrorCode() PUBLIC: This is the database error number. Since it is possible to have no internal exception the errorCode will be zero in this case. | |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides org. PUBLIC: This is the database error message.
| |
| getQuery | back to summary |
|---|---|
| public DatabaseQuery getQuery() PUBLIC: This method returns the databaseQuery. DatabaseQuery is a visible class to the EclipseLink user. Users create an appropriate query by creating an instance of a concrete subclasses of DatabaseQuery. | |
| getQueryArgumentsRecord | back to summary |
|---|---|
| public DataRecord getQueryArgumentsRecord() PUBLIC: Return the query arguments used in the original query when exception is thrown | |
| isCommunicationFailure | back to summary |
|---|---|
| public boolean isCommunicationFailure() | |
| logoutWhileTransactionInProgress | back to summary |
|---|---|
| public static DatabaseException logoutWhileTransactionInProgress() | |
| sequenceTableInformationNotComplete | back to summary |
|---|---|
| public static DatabaseException sequenceTableInformationNotComplete() | |
| setAccessor | back to summary |
|---|---|
| public void setAccessor(Accessor accessor) INTERNAL: Set the Accessor. | |
| setCall | back to summary |
|---|---|
| public void setCall(Call call) INTERNAL: Set the call that caused the exception. | |
| setCommunicationFailure | back to summary |
|---|---|
| public void setCommunicationFailure(boolean isCommunicationFailure) | |
| setQuery | back to summary |
|---|---|
| public void setQuery(DatabaseQuery query) PUBLIC: This method set the databaseQuery. DatabaseQuery is a visible class to the EclipseLink user. Users create an appropriate query by creating an instance of a concrete subclasses of DatabaseQuery. | |
| setQueryArguments | back to summary |
|---|---|
| public void setQueryArguments(AbstractRecord queryArguments) PUBLIC: Set the query arguments used in the original query when exception is thrown | |
| specifiedLockingFieldsNotFoundInDatabase | back to summary |
|---|---|
| public static DatabaseException specifiedLockingFieldsNotFoundInDatabase(String lockingFieldName) | |
| sqlException | back to summary |
|---|---|
| public static DatabaseException sqlException(SQLException exception) | |
| sqlException | back to summary |
|---|---|
| public static DatabaseException sqlException(SQLException exception, boolean commError) | |
| sqlException | back to summary |
|---|---|
| public static DatabaseException sqlException(SQLException exception, AbstractSession session, boolean commError) | |
| sqlException | back to summary |
|---|---|
| public static DatabaseException sqlException(SQLException exception, Accessor accessor, AbstractSession session, boolean isCommunicationFailure) | |
| sqlException | back to summary |
|---|---|
| public static DatabaseException sqlException(SQLException exception, Call call, Accessor accessor, AbstractSession session, boolean isCommunicationFailure) | |
| synchronizedUnitOfWorkDoesNotSupportCommitAndResume | back to summary |
|---|---|
| public static DatabaseException synchronizedUnitOfWorkDoesNotSupportCommitAndResume() | |
| transactionManagerNotSetForJTSDriver | back to summary |
|---|---|
| public static DatabaseException transactionManagerNotSetForJTSDriver() | |
| unableToAcquireConnectionFromDriverException | back to summary |
|---|---|
| public static DatabaseException unableToAcquireConnectionFromDriverException(String driver, String user, String url) The connection returned from this driver was null, the driver may be missing(using the default) or the wrong one for the database. | |
| unableToAcquireConnectionFromDriverException | back to summary |
|---|---|
| public static DatabaseException unableToAcquireConnectionFromDriverException(SQLException exception, String driver, String user, String url) The connection returned from this driver was null, the driver may be missing(using the default) or the wrong one for the database. | |