org.jpox.store.rdbms.exceptions
Class DuplicateColumnNameException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jpox.exceptions.JPOXException
                  extended by 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

Constructor Summary
DuplicateColumnNameException(java.lang.String tableName, Column column, Column otherColumn)
          Constructs a duplicate column name exception.
 
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
 

Constructor Detail

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 have
otherColumn - 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


Copyright © -2008 . All Rights Reserved.