|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.sqlbuilder.model.DeleteHelper
public class DeleteHelper
Helper class for DeleteStatement
Constructor Summary | |
---|---|
DeleteHelper()
|
Method Summary | |
---|---|
static void |
clearStatementContents(QueryDeleteStatement stmt)
Clears the contents of the given delete statement.Containments which are objects, are set to null and containments which are lists, are cleared. |
static void |
refresh(QueryDeleteStatement stmt)
Refreshes the model that ultimately refreseh the UI, this is temporary. |
static void |
removeTableFromStatement(QueryDeleteStatement statement)
Sets the target table of the given delete statement to null |
static void |
replaceStatementContents(QueryDeleteStatement oldStmt,
QueryDeleteStatement newStmt)
Replaces the containments in one insert statement with the containments in another delete statement |
static void |
setTargetTable(QueryDeleteStatement statement,
TableInDatabase targetTable)
Sets the target TableExpression of the given Delete statement |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeleteHelper()
Method Detail |
---|
public static void removeTableFromStatement(QueryDeleteStatement statement)
statement
- the statement to be modifiedpublic static void setTargetTable(QueryDeleteStatement statement, TableInDatabase targetTable)
statement
- the statement to be modifiedtargetTable
- the new TargetTableExpressionpublic static void clearStatementContents(QueryDeleteStatement stmt)
stmt
- the statement being modifiedpublic static void replaceStatementContents(QueryDeleteStatement oldStmt, QueryDeleteStatement newStmt)
oldStmt
- statement in which the containments are being replacednewStmt
- statement whose contents are used to replace contents in oldStmtpublic static void refresh(QueryDeleteStatement stmt)
stmt
- the QueryDeleteStatement which needs to be refreshed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |