Class 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:
    Serialized Form
    • Constructor Detail

      • DuplicateColumnException

        public DuplicateColumnException​(String tableName,
                                        Column col1,
                                        Column col2)
        Constructs a duplicate column name exception.
        Parameters:
        tableName - Name of the table being initialized.
        col1 - Column we already have
        col2 - Column that we tried to create
    • 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