public final class DeleteFrom extends Object implements UpdateScript, WhereClauseBuilder<DeleteFrom>
UpdateableDataContext. Instead of providing a custom implementation
of the UpdateScript interface, one can use this pre-built delete from
implementation. Some DataContexts may even optimize specifically
based on the knowledge that there will only be a single delete from statement
executed.| Constructor and Description |
|---|
DeleteFrom(Table table) |
| Modifier and Type | Method and Description |
|---|---|
void |
run(UpdateCallback callback)
Invoked by MetaModel when the update script should be run.
|
FilterBuilder<DeleteFrom> |
where(Column column)
Defines a where item to set as a criteria
|
DeleteFrom |
where(FilterItem... filterItems)
Applies where items to set criteria
|
DeleteFrom |
where(Iterable<FilterItem> filterItems)
Applies where items to set criteria
|
FilterBuilder<DeleteFrom> |
where(String columnName)
Defines a where item to set as a criteria
|
public DeleteFrom(Table table)
public void run(UpdateCallback callback)
UpdateScriptUpdateCallback.run in interface UpdateScriptpublic FilterBuilder<DeleteFrom> where(Column column)
WhereClauseBuilderwhere in interface WhereClauseBuilder<DeleteFrom>column - a column to apply a criteria forpublic FilterBuilder<DeleteFrom> where(String columnName)
WhereClauseBuilderwhere in interface WhereClauseBuilder<DeleteFrom>columnName - the name of the colum to which the criteria will be appliedpublic DeleteFrom where(FilterItem... filterItems)
WhereClauseBuilderwhere in interface WhereClauseBuilder<DeleteFrom>filterItems - the where items to setpublic DeleteFrom where(Iterable<FilterItem> filterItems)
WhereClauseBuilderwhere in interface WhereClauseBuilder<DeleteFrom>filterItems - the where items to setCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.