oracle.toplink.exceptions
Class DatabaseException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--oracle.toplink.exceptions.TopLinkException
|
+--oracle.toplink.exceptions.DatabaseException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- SDKDataStoreException
- public class DatabaseException
- extends TopLinkException
Purpose:
Wrapper for any database exception that occurred through TopLink.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SQL_EXCEPTION
public static final int SQL_EXCEPTION
CONFIGURATION_ERROR_CLASS_NOT_FOUND
public static final int CONFIGURATION_ERROR_CLASS_NOT_FOUND
DATABASE_ACCESSOR_NOT_CONNECTED
public static final int DATABASE_ACCESSOR_NOT_CONNECTED
ERROR_READING_BLOB_DATA
public static final int ERROR_READING_BLOB_DATA
COULD_NOT_CONVERT_OBJECT_TYPE
public static final int COULD_NOT_CONVERT_OBJECT_TYPE
LOGOUT_WHILE_TRANSACTION_IN_PROGRESS
public static final int LOGOUT_WHILE_TRANSACTION_IN_PROGRESS
SEQUENCE_TABLE_INFORMATION_NOT_COMPLETE
public static final int SEQUENCE_TABLE_INFORMATION_NOT_COMPLETE
ERROR_PREALLOCATING_SEQUENCE_NUMBERS
public static final int ERROR_PREALLOCATING_SEQUENCE_NUMBERS
CANNOT_REGISTER_SYNCHRONIZATIONLISTENER_FOR_UNITOFWORK
public static final int CANNOT_REGISTER_SYNCHRONIZATIONLISTENER_FOR_UNITOFWORK
SYNCHRONIZED_UNITOFWORK_DOES_NOT_SUPPORT_COMMITANDRESUME
public static final int SYNCHRONIZED_UNITOFWORK_DOES_NOT_SUPPORT_COMMITANDRESUME
CONFIGURATION_ERROR_NEW_INSTANCE_INSTANTIATION_EXCEPTION
public static final int CONFIGURATION_ERROR_NEW_INSTANCE_INSTANTIATION_EXCEPTION
CONFIGURATION_ERROR_NEW_INSTANCE_ILLEGAL_ACCESS_EXCEPTION
public static final int CONFIGURATION_ERROR_NEW_INSTANCE_ILLEGAL_ACCESS_EXCEPTION
TRANSACTION_MANAGER_NOT_SET_FOR_JTS_DRIVER
public static final int TRANSACTION_MANAGER_NOT_SET_FOR_JTS_DRIVER
cannotRegisterSynchronizatonListenerForUnitOfWork
public static DatabaseException cannotRegisterSynchronizatonListenerForUnitOfWork(java.lang.Exception e)
configurationErrorClassNotFound
public static DatabaseException configurationErrorClassNotFound(java.lang.String className)
configurationErrorNewInstanceIllegalAccessException
public static DatabaseException configurationErrorNewInstanceIllegalAccessException(java.lang.IllegalAccessException exception,
java.lang.Class javaClass)
configurationErrorNewInstanceInstantiationException
public static DatabaseException configurationErrorNewInstanceInstantiationException(java.lang.InstantiationException exception,
java.lang.Class javaClass)
couldNotConvertObjectType
public static DatabaseException couldNotConvertObjectType(int type)
databaseAccessorNotConnected
public static DatabaseException databaseAccessorNotConnected()
databaseAccessorNotConnected
public static DatabaseException databaseAccessorNotConnected(oracle.toplink.internal.databaseaccess.DatabaseAccessor databaseAccessor)
errorPreallocatingSequenceNumbers
public static DatabaseException errorPreallocatingSequenceNumbers()
errorReadingBlobData
public static DatabaseException errorReadingBlobData()
getAccessor
public oracle.toplink.internal.databaseaccess.Accessor getAccessor()
- PUBLIC:
Return the accessor.
getDatabaseErrorCode
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
public java.lang.String getMessage()
- PUBLIC:
This is the database error message.
- Overrides:
getMessage
in class TopLinkException
getQuery
public DatabaseQuery getQuery()
- PUBLIC:
This method returns the databaseQuery.
DatabaseQuery is a visible class to the TopLink user.
Users create an appropriate query by creating an instance
of a concrete subclasses of DatabaseQuery.
getQueryArguments
public DatabaseRow getQueryArguments()
- PUBLIC:
Return the query argements used in the original query when exception is thrown
logoutWhileTransactionInProgress
public static DatabaseException logoutWhileTransactionInProgress()
sequenceTableInformationNotComplete
public static DatabaseException sequenceTableInformationNotComplete()
setQuery
public void setQuery(DatabaseQuery query)
- PUBLIC:
This method set the databaseQuery.
DatabaseQuery is a visible class to the TopLink user.
Users create an appropriate query by creating an instance
of a concrete subclasses of DatabaseQuery.
setQueryArguments
public void setQueryArguments(DatabaseRow queryArguments)
- PUBLIC:
Set the query argements used in the original query when exception is thrown
sqlException
public static DatabaseException sqlException(java.sql.SQLException exception)
sqlException
public static DatabaseException sqlException(java.sql.SQLException exception,
oracle.toplink.internal.databaseaccess.Accessor accessor)
synchronizedUnitOfWorkDoesNotSupportCommitAndResume
public static DatabaseException synchronizedUnitOfWorkDoesNotSupportCommitAndResume()
transactionManagerNotSetForJTSDriver
public static DatabaseException transactionManagerNotSetForJTSDriver()