Package com.gengoai.sql.statement
Class Drop
- java.lang.Object
-
- com.gengoai.sql.statement.Drop
-
- All Implemented Interfaces:
SQLElement
,UpdateStatement
,Serializable
public class Drop extends Object implements UpdateStatement
SQL Drop statement for SQL Objects (Table, Index, Trigger, etc)
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Drop
failIfNotExists()
Fail if the item being dropped does not existDrop
ifExists()
Only perform the drop the item being dropped exists.Drop
ifExists(boolean ifExists)
Set whether or not to fail if trying to drop an object that does not exist-
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
-
-
-
-
Constructor Detail
-
Drop
public Drop(@NonNull @NonNull SQLObject object)
Instantiates a new Drop Statement.- Parameters:
object
- the object to be dropped
-
-
Method Detail
-
failIfNotExists
public Drop failIfNotExists()
Fail if the item being dropped does not exist- Returns:
- this Drop Statement
-
ifExists
public Drop ifExists(boolean ifExists)
Set whether or not to fail if trying to drop an object that does not exist- Parameters:
ifExists
- True - only drop if the object exists, False - fail if the object does not exist- Returns:
- this Drop Statement
-
ifExists
public Drop ifExists()
Only perform the drop the item being dropped exists.- Returns:
- this Drop Statement
-
-