ca.sqlpower.architect.ddl
Class TypeMapDDLWarning

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

public class TypeMapDDLWarning
extends AbstractDDLWarning

A class of warning that means some column's data type cannot be accurately represented in the target database.


Field Summary
 
Fields inherited from class ca.sqlpower.architect.ddl.AbstractDDLWarning
fixed, involvedObjects, isQuickFixable, message, quickFixMesssage, quickFixPropertyName, whichObjectQuickFixFixes
 
Constructor Summary
TypeMapDDLWarning(SQLColumn column, java.lang.String message, GenericTypeDescriptor oldType, GenericTypeDescriptor td)
          Creates a new warning about type mapping problems which have already been resolved.
 
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

TypeMapDDLWarning

public TypeMapDDLWarning(SQLColumn column,
                         java.lang.String message,
                         GenericTypeDescriptor oldType,
                         GenericTypeDescriptor td)
Creates a new warning about type mapping problems which have already been resolved.

XXX: This is inconsistent with the current QuickFix system; we should instead mark this problem as quickfixable and only when quickFix() is called should the column's type be updated.

Parameters:
column - The column whose type had to be modified.
message - The message to display to the user about this problem.
oldType - The original generic data type that the column had.
td - The new data type that the column will have in the target database.


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