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:
Serializable
public class DuplicateColumnException
extends org.datanucleus.exceptions.NucleusException
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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Column
Column that cannot be created because it conflicts with existing column with same identifier.private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionDuplicateColumnException
(String tableName, Column col1, Column col2) Constructs a duplicate column name exception. -
Method Summary
Modifier and TypeMethodDescriptionAccessor 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
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
conflictingColumn
Column that cannot be created because it conflicts with existing column with same identifier.
-
-
Constructor Details
-
DuplicateColumnException
Constructs a duplicate column name exception.- Parameters:
tableName
- Name of the table being initialized.col1
- Column we already havecol2
- Column that we tried to create
-
-
Method Details
-
getConflictingColumn
Accessor for the column that could not be created because it conflicts with something already present.- Returns:
- The column
-