ca.sqlpower.architect.ddl
Class RelationshipColumnsTypesMismatchDDLWarning

java.lang.Object
  extended by ca.sqlpower.architect.ddl.AbstractDDLWarning
      extended by ca.sqlpower.architect.ddl.RelationshipColumnsTypesMismatchDDLWarning
All Implemented Interfaces:
DDLWarning

public class RelationshipColumnsTypesMismatchDDLWarning
extends AbstractDDLWarning

A DDLWarning for when the types of two columns in a relationship do not match. There is no quick fix as simply changing one column type could recursively cause other errors, thus the relationship is just not created and the relationship sql statement is commented out.


Field Summary
 
Fields inherited from class ca.sqlpower.architect.ddl.AbstractDDLWarning
fixed, involvedObjects, isQuickFixable, message, quickFixMesssage, quickFixPropertyName, whichObjectQuickFixFixes
 
Constructor Summary
RelationshipColumnsTypesMismatchDDLWarning(SQLColumn pkColumn, SQLColumn fkColumn)
          Creates a DDLWarning with a the given pk and fk columns as involved objects and a message identifying the error and the involved columns' names.
 
Method Summary
 
Methods inherited from class ca.sqlpower.architect.ddl.AbstractDDLWarning
getInvolvedObjects, getMessage, getQuickFixMessage, getQuickFixPropertyName, isFixed, isQuickFixable, quickFix, setFixed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationshipColumnsTypesMismatchDDLWarning

public RelationshipColumnsTypesMismatchDDLWarning(SQLColumn pkColumn,
                                                  SQLColumn fkColumn)
Creates a DDLWarning with a the given pk and fk columns as involved objects and a message identifying the error and the involved columns' names.

Parameters:
pkColumn - The pk column that is involved in the types mismatch.
fkColumn - The fk column that is involved in the types mismatch.


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca