net.sourceforge.squirrel_sql.plugins.dbdiff
Class ColumnDifference
java.lang.Object
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
ColumnDifference
public ColumnDifference()
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.