org.jpox.store.rdbms.exceptions
Class DuplicateColumnNameException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jpox.exceptions.JPOXException
org.jpox.store.rdbms.exceptions.DuplicateColumnNameException
- All Implemented Interfaces:
- java.io.Serializable
public class DuplicateColumnNameException
- extends org.jpox.exceptions.JPOXException
A DuplicateColumnNameException is thrown if an attempt is made to
add a column to a table with a name already in-use by an existing column.
- Version:
- $Revision: 1.4 $
- See Also:
- Serialized Form
|
Method Summary |
Column |
getConflictingColumn()
Accessor for the column that could not be created because it conflicts with something already present. |
| Methods inherited from class org.jpox.exceptions.JPOXException |
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 |
DuplicateColumnNameException
public DuplicateColumnNameException(java.lang.String tableName,
Column column,
Column otherColumn)
- Constructs a duplicate column name exception.
- Parameters:
tableName - Name of the table being initialized.column - Column we already haveotherColumn - Column that we tried to create
getConflictingColumn
public Column getConflictingColumn()
- Accessor for the column that could not be created because it conflicts with something already present.
- Returns:
- The column
Copyright © -2008 . All Rights Reserved.