ca.sqlpower.architect.diff
Class CompareSQL

java.lang.Object
  extended by ca.sqlpower.architect.diff.CompareSQL
All Implemented Interfaces:
ca.sqlpower.util.Monitorable

public class CompareSQL
extends java.lang.Object
implements ca.sqlpower.util.Monitorable


Constructor Summary
CompareSQL(java.util.Collection<SQLTable> sourceTables, java.util.Collection<SQLTable> targetTables)
          The common constructor
 
Method Summary
 java.util.List<DiffChunk<SQLObject>> generateTableDiffs()
           
 java.lang.Integer getJobSize()
           
 java.lang.String getMessage()
           
 int getProgress()
           
 boolean hasStarted()
           
 boolean isCancelled()
           
 boolean isCompareIndices()
          Indicates whether table comparisons will include indices comparisons.
 boolean isFinished()
           
 void setCancelled(boolean cancelled)
           
 void setCompareIndices(boolean compareIndices)
          Sets the switch that determines whether table comparisons will include indices comparisons.
 void setFinished(boolean finished)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompareSQL

public CompareSQL(java.util.Collection<SQLTable> sourceTables,
                  java.util.Collection<SQLTable> targetTables)
           throws ArchitectDiffException
The common constructor

Throws:
ArchitectDiffException - When the source or target table collections contain tables that have the same name as each other.
Method Detail

generateTableDiffs

public java.util.List<DiffChunk<SQLObject>> generateTableDiffs()
                                                        throws ArchitectException
Throws:
ArchitectException

getJobSize

public java.lang.Integer getJobSize()
Specified by:
getJobSize in interface ca.sqlpower.util.Monitorable

getProgress

public int getProgress()
Specified by:
getProgress in interface ca.sqlpower.util.Monitorable

hasStarted

public boolean hasStarted()
Specified by:
hasStarted in interface ca.sqlpower.util.Monitorable

isFinished

public boolean isFinished()
Specified by:
isFinished in interface ca.sqlpower.util.Monitorable

getMessage

public java.lang.String getMessage()
Specified by:
getMessage in interface ca.sqlpower.util.Monitorable

setCancelled

public void setCancelled(boolean cancelled)
Specified by:
setCancelled in interface ca.sqlpower.util.Monitorable

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface ca.sqlpower.util.Monitorable

setFinished

public void setFinished(boolean finished)

isCompareIndices

public boolean isCompareIndices()
Indicates whether table comparisons will include indices comparisons.


setCompareIndices

public void setCompareIndices(boolean compareIndices)
Sets the switch that determines whether table comparisons will include indices comparisons.



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