org.jpox.store.rdbms.exceptions
Class DuplicateColumnNameException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjavax.jdo.JDOException
                  extended byjavax.jdo.JDOFatalException
                      extended byjavax.jdo.JDOFatalInternalException
                          extended byorg.jpox.store.rdbms.exceptions.DuplicateColumnNameException
All Implemented Interfaces:
java.io.Serializable

public class DuplicateColumnNameException
extends javax.jdo.JDOFatalInternalException

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.2 $
See Also:
Serialized Form

Constructor Summary
DuplicateColumnNameException(java.lang.String tableName, Column column, Column conflictingColumn)
          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 javax.jdo.JDOException
getCause, getFailedObject, getNestedExceptions, initCause, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, setStackTrace
 
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 conflictingColumn)
Constructs a duplicate column name exception.

Parameters:
tableName - Name of the table being initialized.
column - Column we already have
conflictingColumn - 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 © -2007 . All Rights Reserved.