Class DuplicateColumnException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.datanucleus.exceptions.NucleusException
-
- org.datanucleus.store.rdbms.exceptions.DuplicateColumnException
-
- All Implemented Interfaces:
java.io.Serializable
public class DuplicateColumnException extends org.datanucleus.exceptions.NucleusExceptionA 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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private ColumnconflictingColumnColumn that cannot be created because it conflicts with existing column with same identifier.private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description DuplicateColumnException(java.lang.String tableName, Column col1, Column col2)Constructs a duplicate column name exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumngetConflictingColumn()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, setNestedException
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
conflictingColumn
private Column conflictingColumn
Column that cannot be created because it conflicts with existing column with same identifier.
-
-
Method Detail
-
getConflictingColumn
public Column getConflictingColumn()
Accessor for the column that could not be created because it conflicts with something already present.- Returns:
- The column
-
-