org.datanucleus.store.rdbms.exceptions
Class IncompatibleDataTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.datanucleus.exceptions.NucleusException
org.datanucleus.exceptions.NucleusDataStoreException
org.datanucleus.store.exceptions.DatastoreValidationException
org.datanucleus.store.rdbms.exceptions.IncompatibleDataTypeException
- All Implemented Interfaces:
- Serializable
public class IncompatibleDataTypeException
- extends org.datanucleus.store.exceptions.DatastoreValidationException
A IncompatibleDataTypeException is thrown if a column is detected to
have an incompatible type in the database during schema validation.
- See Also:
Column,
Serialized Form
| Fields inherited from class org.datanucleus.store.exceptions.DatastoreValidationException |
LOCALISER |
| Methods inherited from class org.datanucleus.exceptions.NucleusException |
getCause, getFailedObject, getNestedExceptions, isFatal, printStackTrace, printStackTrace, printStackTrace, setFatal |
IncompatibleDataTypeException
public IncompatibleDataTypeException(Column column,
int expectedType,
int actualType)
- Constructs an incompatible data type exception.
- Parameters:
column - The column having an incompatible data type.expectedType - The expected java.sql.Type of the column taken from the metadata.actualType - The actual java.sql.Type of the column taken from the database.
Copyright © 2012. All Rights Reserved.