|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.architect.ddl.ConflictResolver
public class ConflictResolver
A ConflictResolver performs "seek" and "destroy" operations on objects in existing databases whose names conflict with the execution of a DDL script.
To use a conflict resolver, just use the public constructor to point it at an
existing database and give it your DDL script. After that, you must call
findConflicts() to set up the internal state of the object. Finally, you can
then examine the conflicts that were found, and choose to run the dropConflicting() method.
| Nested Class Summary | |
|---|---|
class |
ConflictResolver.Conflict
A Conflict represents an existing database object which needs to be removed for some operation to continue. |
| Constructor Summary | |
|---|---|
ConflictResolver(SQLDatabase target,
DDLGenerator ddlg,
java.util.List ddlStatements)
Creates a new ConflictResolver. |
|
| Method Summary | |
|---|---|
void |
aboutToCallDropConflicting()
|
void |
dropConflicting()
Drops the conflicting objects which findConflicting() found in the target database. |
void |
findConflicting()
Searches for objects in the database pointed to by con that would conflict with the execution of any of the given DDL statements. |
java.lang.Integer |
getJobSize()
|
java.lang.String |
getLastSQLStatement()
|
java.lang.String |
getMessage()
|
int |
getProgress()
|
boolean |
hasStarted()
|
boolean |
isCancelled()
Not implemented. |
boolean |
isEmpty()
|
boolean |
isFinished()
|
void |
setCancelled(boolean cancelled)
Not implemented. |
java.lang.String |
toConflictTree()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConflictResolver(SQLDatabase target,
DDLGenerator ddlg,
java.util.List ddlStatements)
| Method Detail |
|---|
public void aboutToCallDropConflicting()
public void findConflicting()
throws java.sql.SQLException,
ArchitectException
ArchitectException
java.sql.SQLException
public void dropConflicting()
throws java.sql.SQLException,
ArchitectException
java.sql.SQLException
ArchitectExceptionpublic boolean isEmpty()
public java.lang.String toConflictTree()
public java.lang.String getLastSQLStatement()
public int getProgress()
getProgress in interface ca.sqlpower.util.Monitorablepublic java.lang.Integer getJobSize()
getJobSize in interface ca.sqlpower.util.Monitorablepublic boolean isFinished()
isFinished in interface ca.sqlpower.util.Monitorablepublic void setCancelled(boolean cancelled)
setCancelled in interface ca.sqlpower.util.Monitorablepublic boolean isCancelled()
isCancelled in interface ca.sqlpower.util.Monitorablepublic java.lang.String getMessage()
getMessage in interface ca.sqlpower.util.Monitorablepublic boolean hasStarted()
hasStarted in interface ca.sqlpower.util.Monitorable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||