ca.sqlpower.architect.swingui.action
Class ExportDDLAction.ConflictFinderProcess
java.lang.Object
ca.sqlpower.swingui.SPSwingWorker
ca.sqlpower.swingui.MonitorableWorker
ca.sqlpower.architect.swingui.action.ExportDDLAction.ConflictFinderProcess
- All Implemented Interfaces:
- ca.sqlpower.util.Monitorable, java.lang.Runnable
- Enclosing class:
- ExportDDLAction
public class ExportDDLAction.ConflictFinderProcess
- extends ca.sqlpower.swingui.MonitorableWorker
The ConflictFinderProcess uses a ConflictResolver (which it monitors with
a progress bar) to locate objects in the target database which need to be
removed before a set of DDL statements can be executed in it.
- Author:
- fuerth
| Methods inherited from class ca.sqlpower.swingui.SPSwingWorker |
addTaskTerminationListener, getCleanupExceptionMessage, getDoStuffException, getNextProcess, isCanceled, isCancelled, kill, removeTaskTerminationListener, run, setCancelled, setCleanupExceptionMessage, setDoStuffException, setNextProcess |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ca.sqlpower.util.Monitorable |
isCancelled, setCancelled |
ExportDDLAction.ConflictFinderProcess
public ExportDDLAction.ConflictFinderProcess(javax.swing.JDialog parentDialog,
SQLDatabase target,
DDLGenerator ddlg,
java.util.List statements,
ArchitectSwingSession session)
throws ArchitectException
- Parameters:
parentDialog - The JDialog we're doing this in.target - The target database (where to search for the conflicts).ddlg - The DDL Generator that we're using.
- Throws:
ArchitectException - If there is a problem connecting to the target database
java.sql.SQLException - If the conflict resolver chokes
doesUserWantToDropConflicts
public boolean doesUserWantToDropConflicts()
- Returns:
- True if and only if the user has asked for the conflicts to
be deleted.
doStuff
public void doStuff()
- This method is called on its own thread (not the AWT event dispatch
thread). It will take a while.
- Specified by:
doStuff in class ca.sqlpower.swingui.SPSwingWorker
cleanup
public void cleanup()
- After the doStuff() method is done, this method will be invoked on the AWT event
dispatch thread.
- Specified by:
cleanup in class ca.sqlpower.swingui.SPSwingWorker
getConflictResolver
public ConflictResolver getConflictResolver()
getJobSize
public java.lang.Integer getJobSize()
getMessage
public java.lang.String getMessage()
getProgress
public int getProgress()
hasStarted
public boolean hasStarted()
isFinished
public boolean isFinished()
Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca