Package org.datanucleus.store.rdbms.exceptions


package org.datanucleus.store.rdbms.exceptions
  • Exception Classes
    Class
    Description
    A ClassDefinitionException is thrown if the settings of a persistent class are inconsistent with it's metadata.
    A ColumnDefinitionException is thrown if the settings of a database column are incompatible with the data type of the object field to which it is mapped.
    A DuplicateColumnException is thrown if an attempt is made to add a column to a table with a name already in-use by an existing column.
    A IncompatibleDataTypeException is thrown if a column is detected to have an incompatible type in the database during schema validation.
    A MissingColumnException is thrown if an expected column is not found in the database during schema validation.
    A MissingTableException is thrown if an expected table is not found in the database during schema validation.
    A NoDatastoreMappingException is thrown if an operation is performed that assumes that a particular persistent field is stored in a single datastore field when it is not (such as if the field is a Collection or a Map).
    A NoSuchPersistentFieldException is thrown if a reference is made somewhere, such as in a query filter string, to a field that either doesn't exist or is not persistent.
    A NoTableManagedException is thrown if an attempt is made to perform an operation using a class that is not backed by an table or view in the database and the operation is not supported on such classes.
    A NotATableException is thrown during schema validation if a table should be a table but is found not to be in the database.
    A NotAViewException is thrown during schema validation if a table should be a view but is found not to be in the database.
    A NullValueException is thrown if a null value is encountered in a database column that should prohibit null values.
    A PersistentSuperclassNotAllowedException is thrown if a persistence-capable class is declared to have a persistence-capable superclass when that class is backed by a view.
    A PrimaryKeyColumnNotAllowedException is thrown if an attempt is made to add a primary key column to a view.
    A TooManyForeignKeysException is thrown when trying to add a foreign key to a table and the table already has the maximum allowed number of foreign keys.
    A TooManyIndicesException is thrown when trying to add an index to a table and the table already has the maximum allowed number of indices.
    A UnexpectedColumnException is thrown if an unexpected column is encountered in the database during schema validation.
    A UnsupportedDataTypeException is thrown if an attempt is made to persist an object field whose data type is not supported by the database and/or the persistence package.
    A ViewDefinitionException is thrown if the metadata extension(s) that define a view are missing or invalid.
    A WrongPrecisionException is thrown if a column is detected to have the wrong precision in the database during schema validation.
    A WrongPrimaryKeyException is thrown if a table is detected not to have the expected primary key in the database during schema validation.
    A WrongScaleException is thrown if a column is detected to have the wrong scale in the database during schema validation.