|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.datanucleus.exceptions.NucleusException
org.datanucleus.store.mapped.exceptions.DuplicateDatastoreFieldException
public class DuplicateDatastoreFieldException
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.
| 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)
tableName - Name of the table being initialized.col1 - Column we already havecol2 - Column that we tried to create| Method Detail |
|---|
public DatastoreField getConflictingColumn()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||