public class Delete extends QueryBuilder
DELETE queries.| Modifier | Constructor and Description |
|---|---|
protected |
Delete() |
| Modifier and Type | Method and Description |
|---|---|
Query |
build()
Builds a SQL statement and abstracts it in a
Query object ready for execution. |
Delete |
from(java.lang.Class<?> table)
Specifies the table containing the data that the query deletes from.
|
Delete |
from(java.lang.Class<?> table,
java.lang.String alias)
Specifies the table containing the data that the query deletes from.
|
Delete |
from(java.lang.String table)
Specifies the table containing the data that the query deletes from.
|
Delete |
from(java.lang.String table,
java.lang.String alias)
Specifies the table containing the data that the query deletes from.
|
Delete |
where(Predicate predicate)
Specifies filter conditions that determine the rows to delete.
|
getTableNamepublic Delete from(java.lang.Class<?> table)
table - the name of table containing the data that the query deletes from.Select object for further query construction.public Delete from(java.lang.String table)
table - the name of table containing the data that the query deletes from.Select object for further query construction.public Delete from(java.lang.Class<?> table, java.lang.String alias)
table - the name of table containing the data that the query deletes from.alias - an alias for the table specified.Select object for further query construction.public Delete from(java.lang.String table, java.lang.String alias)
table - the name of table containing the data that the query deletes from.alias - an alias for the table specified.Select object for further query construction.public Delete where(Predicate predicate)
predicate - the conditions on which the rows to delete.Select object for further query construction.public Query build()
Query object ready for execution.build in class QueryBuilderQuery object ready for execution.