Package com.gengoai.sql.statement
Class Delete
- java.lang.Object
-
- com.gengoai.sql.statement.Delete
-
- All Implemented Interfaces:
SQLElement
,UpdateStatement
,Serializable
public class Delete extends Object implements UpdateStatement
SQL DELETE statement for delete rows from a table.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Delete
from(@NonNull Table table)
Creates a Delete statement to delete from the given tablestatic Delete
from(@NonNull SQLElement table)
Creates a Delete statement to delete from the given tablestatic Delete
from(@NonNull String table)
Creates a Delete statement to delete from the given tableDelete
where(SQLElement whereClause)
Sets the criteria (i.e.Delete
where(String whereClause)
Sets the criteria (i.e.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.gengoai.sql.SQLElement
getClassName
-
-
-
-
Method Detail
-
from
public static Delete from(@NonNull @NonNull String table)
Creates a Delete statement to delete from the given table- Parameters:
table
- the table- Returns:
- the delete statement
-
from
public static Delete from(@NonNull @NonNull Table table)
Creates a Delete statement to delete from the given table- Parameters:
table
- the table- Returns:
- the delete statement
-
from
public static Delete from(@NonNull @NonNull SQLElement table)
Creates a Delete statement to delete from the given table- Parameters:
table
- the table- Returns:
- the delete statement
-
where
public Delete where(SQLElement whereClause)
Sets the criteria (i.e. WHERE) for the deletion.- Parameters:
whereClause
- the where clause- Returns:
- this Delete object
-
-