net.sourceforge.squirrel_sql.plugins.dbdiff
Class ColumnDifference

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.dbdiff.ColumnDifference

public class ColumnDifference
extends Object

This class is responsible for identifying and storing differences between columns in a table.

Author:
manningr

Constructor Summary
ColumnDifference()
           
 
Method Summary
 boolean col1AllowsNull()
           
 boolean col2AllowsNull()
           
 boolean defaultsEqual()
           
 boolean execute()
          Returns a boolean indicating whether or not the two columns are different in any aspect.
 String getCol1Default()
           
 int getCol1Length()
           
 String getCol1Remarks()
           
 int getCol1Type()
           
 String getCol2Default()
           
 int getCol2Length()
           
 String getCol2Remarks()
           
 int getCol2Type()
           
 String getColumnName()
           
 String getTableName()
           
 boolean isCol1Exists()
           
 boolean isCol2Exists()
           
 boolean lengthsEqual()
           
 boolean nullableEqual()
           
 boolean remarksEqual()
           
 void setCol1Exists(boolean col1Exists)
           
 void setCol2Exists(boolean col2Exists)
           
 void setColumn1(TableColumnInfo c1)
           
 void setColumn2(TableColumnInfo c2)
           
 void setColumnName(String columnName)
           
 void setColumns(TableColumnInfo c1, TableColumnInfo c2)
           
 void setTableName(String tableName)
           
 String toString()
           
 boolean typesEqual()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColumnDifference

public ColumnDifference()
Method Detail

setColumns

public void setColumns(TableColumnInfo c1,
                       TableColumnInfo c2)

setColumn1

public void setColumn1(TableColumnInfo c1)

setColumn2

public void setColumn2(TableColumnInfo c2)

getCol1Type

public int getCol1Type()

getCol1Length

public int getCol1Length()

col1AllowsNull

public boolean col1AllowsNull()

getCol2Type

public int getCol2Type()

getCol2Length

public int getCol2Length()

col2AllowsNull

public boolean col2AllowsNull()

getCol1Remarks

public String getCol1Remarks()

getCol2Remarks

public String getCol2Remarks()

getCol1Default

public String getCol1Default()

getCol2Default

public String getCol2Default()

execute

public boolean execute()
Returns a boolean indicating whether or not the two columns are different in any aspect.

Returns:

setTableName

public void setTableName(String tableName)
Parameters:
tableName - the tableName to set

getTableName

public String getTableName()
Returns:
the tableName

setColumnName

public void setColumnName(String columnName)
Parameters:
columnName - the columnName to set

getColumnName

public String getColumnName()
Returns:
the columnName

setCol1Exists

public void setCol1Exists(boolean col1Exists)
Parameters:
col1Exists - the col1Exists to set

isCol1Exists

public boolean isCol1Exists()
Returns:
the col1Exists

setCol2Exists

public void setCol2Exists(boolean col2Exists)
Parameters:
col2Exists - the col2Exists to set

isCol2Exists

public boolean isCol2Exists()
Returns:
the col2Exists

defaultsEqual

public boolean defaultsEqual()

remarksEqual

public boolean remarksEqual()

typesEqual

public boolean typesEqual()

lengthsEqual

public boolean lengthsEqual()

nullableEqual

public boolean nullableEqual()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2010. All Rights Reserved.