Class DuplicateDatastoreFieldException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.datanucleus.exceptions.NucleusException
                  extended by
All Implemented Interfaces:

public class DuplicateDatastoreFieldException
extends NucleusException

A DuplicateDatastoreFieldException is thrown if an attempt is made to add a column to a table with a name already in-use by an existing column.

See Also:
Serialized Form

Constructor Summary
DuplicateDatastoreFieldException(java.lang.String tableName, DatastoreField col1, DatastoreField col2)
          Constructs a duplicate column name exception.
Method Summary
 DatastoreField getConflictingColumn()
          Accessor for the column that could not be created because it conflicts with something already present.
Methods inherited from class org.datanucleus.exceptions.NucleusException
getCause, getFailedObject, getNestedExceptions, isFatal, printStackTrace, printStackTrace, printStackTrace, setFatal
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public DuplicateDatastoreFieldException(java.lang.String tableName,
                                        DatastoreField col1,
                                        DatastoreField col2)
Constructs a duplicate column name exception.

tableName - Name of the table being initialized.
col1 - Column we already have
col2 - Column that we tried to create
Method Detail


public DatastoreField getConflictingColumn()
Accessor for the column that could not be created because it conflicts with something already present.

The column

Copyright © 2010. All Rights Reserved.