org.datanucleus.store.mapped.exceptions
Class DuplicateDatastoreFieldException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.datanucleus.exceptions.NucleusException
org.datanucleus.store.mapped.exceptions.DuplicateDatastoreFieldException
- All Implemented Interfaces:
- Serializable
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
DuplicateDatastoreFieldException
public DuplicateDatastoreFieldException(String tableName,
DatastoreField col1,
DatastoreField col2)
- 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
getConflictingColumn
public DatastoreField getConflictingColumn()
- Accessor for the column that could not be created because it conflicts with something already present.
- Returns:
- The column
Copyright © 2012. All Rights Reserved.