public abstract class AbstractRowDeletionBuilder extends Object implements RowDeletionBuilder
RowDeletionBuilder
implementationConstructor 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, wait
execute
public AbstractRowDeletionBuilder(Table table)
protected List<FilterItem> getWhereItems()
public FilterBuilder<RowDeletionBuilder> where(Column column)
WhereClauseBuilder
where
in interface WhereClauseBuilder<RowDeletionBuilder>
column
- a column to apply a criteria forpublic FilterBuilder<RowDeletionBuilder> where(String columnName)
WhereClauseBuilder
where
in interface WhereClauseBuilder<RowDeletionBuilder>
columnName
- the name of the colum to which the criteria will be appliedpublic RowDeletionBuilder where(FilterItem... filterItems)
WhereClauseBuilder
where
in interface WhereClauseBuilder<RowDeletionBuilder>
filterItems
- the where items to setpublic RowDeletionBuilder where(Iterable<FilterItem> filterItems)
WhereClauseBuilder
where
in interface WhereClauseBuilder<RowDeletionBuilder>
filterItems
- the where items to setpublic Table getTable()
RowDeletionBuilder
getTable
in interface RowDeletionBuilder
protected boolean deleteRow(Row row)
row
- protected boolean isTruncateTableOperation()
public String toSql()
RowDeletionBuilder
toSql
in interface RowDeletionBuilder
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.