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 DataContext
s 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)
UpdateScript
UpdateCallback
.run
in interface UpdateScript
public FilterBuilder<DeleteFrom> where(Column column)
WhereClauseBuilder
where
in interface WhereClauseBuilder<DeleteFrom>
column
- a column to apply a criteria forpublic FilterBuilder<DeleteFrom> where(String columnName)
WhereClauseBuilder
where
in interface WhereClauseBuilder<DeleteFrom>
columnName
- the name of the colum to which the criteria will be appliedpublic DeleteFrom where(FilterItem... filterItems)
WhereClauseBuilder
where
in interface WhereClauseBuilder<DeleteFrom>
filterItems
- the where items to setpublic DeleteFrom where(Iterable<FilterItem> filterItems)
WhereClauseBuilder
where
in interface WhereClauseBuilder<DeleteFrom>
filterItems
- the where items to setCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.