Package com.gengoai.sql.statement
Class Create
- java.lang.Object
-
- com.gengoai.sql.statement.Create
-
- All Implemented Interfaces:
SQLElement
,UpdateStatement
,Serializable
public class Create extends Object implements UpdateStatement
SQL create 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 Create
failIfExists()
Fail if the object trying to be created already existsCreate
ifNotExists()
Only create the object if it does not existCreate
ifNotExists(boolean ifNotExists)
Set whether or not to fail or not when creating an object that already exists-
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
-
Create
public Create(@NonNull @NonNull SQLObject object)
Instantiates a new Create.- Parameters:
object
- the object being created
-
-
Method Detail
-
failIfExists
public Create failIfExists()
Fail if the object trying to be created already exists- Returns:
- this Create object
-
ifNotExists
public Create ifNotExists()
Only create the object if it does not exist- Returns:
- this Create object
-
ifNotExists
public Create ifNotExists(boolean ifNotExists)
Set whether or not to fail or not when creating an object that already exists- Parameters:
ifNotExists
- True - only create the object if it does not exist, false - fail if the object exists.- Returns:
- this Create object
-
-