public abstract class AbstractRowDeletionBuilder extends Object implements RowDeletionBuilder
RowDeletionBuilder implementation| Constructor and Description |
|---|
AbstractRowDeletionBuilder(Table table) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
deleteRow(Row row)
Determines if a row should be deleted or not (can be used by subclasses
as a convenient determinator).
|
Table |
getTable()
Gets the table that this delete statement pertains to.
|
protected List<FilterItem> |
getWhereItems() |
protected boolean |
isTruncateTableOperation()
Convenience method to tell subclasses if the delete operation represents
a full table truncate operation.
|
String |
toSql()
Gets a SQL representation of this delete operation.
|
String |
toString() |
FilterBuilder<RowDeletionBuilder> |
where(Column column)
Defines a where item to set as a criteria
|
RowDeletionBuilder |
where(FilterItem... filterItems)
Applies where items to set criteria
|
RowDeletionBuilder |
where(Iterable<FilterItem> filterItems)
Applies where items to set criteria
|
FilterBuilder<RowDeletionBuilder> |
where(String columnName)
Defines a where item to set as a criteria
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecutepublic AbstractRowDeletionBuilder(Table table)
protected List<FilterItem> getWhereItems()
public FilterBuilder<RowDeletionBuilder> where(Column column)
WhereClauseBuilderwhere in interface WhereClauseBuilder<RowDeletionBuilder>column - a column to apply a criteria forpublic FilterBuilder<RowDeletionBuilder> where(String columnName)
WhereClauseBuilderwhere in interface WhereClauseBuilder<RowDeletionBuilder>columnName - the name of the colum to which the criteria will be appliedpublic RowDeletionBuilder where(FilterItem... filterItems)
WhereClauseBuilderwhere in interface WhereClauseBuilder<RowDeletionBuilder>filterItems - the where items to setpublic RowDeletionBuilder where(Iterable<FilterItem> filterItems)
WhereClauseBuilderwhere in interface WhereClauseBuilder<RowDeletionBuilder>filterItems - the where items to setpublic Table getTable()
RowDeletionBuildergetTable in interface RowDeletionBuilderprotected boolean deleteRow(Row row)
row - protected boolean isTruncateTableOperation()
public String toSql()
RowDeletionBuildertoSql in interface RowDeletionBuilderCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.