T - The type of POJO associated with this statement.public class CreateTableImpl<T> extends GroupStatementImpl<Void,VoidFuture,T> implements CreateTable<T>
CreateTableImpl class defines a CREATE TABLE statement.| Modifier and Type | Class and Description |
|---|---|
static class |
CreateTableImpl.OptionsImpl<T>
The
OptionsImpl class defines the options of an CREATE
TABLE statement. |
static class |
CreateTableImpl.WhereImpl<T>
The
WhereImpl class defines a WHERE clause for the CREATE
TABLE statement which can be used to specify keyspace keys used for the
keyspace name. |
CreateTable.Options<T>, CreateTable.Where<T>| Modifier and Type | Field and Description |
|---|---|
protected List<TableInfoImpl<T>> |
tables
List of tables to be created.
|
bridge, CI_PREFIX, idempotent, isCounterOp, mgr, MK_PREFIX, resultClass, simpleSize, UDT_C_PREFIX| Constructor and Description |
|---|
CreateTableImpl(ClassInfoImpl.Context context,
StatementManagerImpl mgr,
StatementBridge bridge)
Instantiates a new
CreateTableImpl object. |
CreateTableImpl(ClassInfoImpl.Context context,
String[] tables,
StatementManagerImpl mgr,
StatementBridge bridge)
Instantiates a new
CreateTableImpl object. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendGroupSubType(StringBuilder builder)
Appends the sub-type of group this is; used when building a query string.
|
protected List<StatementImpl<?,?,?>> |
buildGroupedStatements()
Gets all underlying grouped statements recursively in the proper order
for this statement.
|
protected StringBuilder[] |
buildQueryStrings(TableInfoImpl<T> table)
Builds query strings for the specified table.
|
CreateTable<T> |
ifNotExists() |
CreateTable.Where<T> |
where() |
CreateTable.Where<T> |
where(Clause clause) |
CreateTable.Options<T> |
with() |
CreateTable.Options<T> |
with(WithOptions option) |
appendGroupType, buildQueryStrings, buildStatements, executeAsyncRaw0, getParallelFactor, isIdempotent, setDirty, setParallelFactor, simpleSizeappendOptions, buildQueryString, clearKeyspace, disable, disableErrorTracing, disableTracing, enable, enableErrorTracing, enableErrorTracing, enableTracing, enableTracing, execute, executeAsync, executeAsync0, executeAsyncRaw, executeRaw, getClassInfo, getClassInfoImpl, getConsistencyLevel, getContext, getDefaultTimestamp, getFetchSize, getKeyspace, getObject, getObjectClass, getPOJOContext, getQueryString, getReadTimeoutMillis, getRetryPolicy, getSerialConsistencyLevel, getUserData, init, init, isCounterOp, isDirty, isEnabled, isErrorTracing, isTracing, setConsistencyLevel, setCounterOp, setDefaultTimestamp, setDirty, setFetchSize, setIdempotent, setReadTimeoutMillis, setRetryPolicy, setSerialConsistencyLevel, setUserData, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetQueryStringgetClassInfo, getObjectClassdisable, disableErrorTracing, disableTracing, enable, enableErrorTracing, enableErrorTracing, enableTracing, enableTracing, execute, executeAsync, executeAsyncRaw, executeRaw, getConsistencyLevel, getDefaultTimestamp, getFetchSize, getKeyspace, getReadTimeoutMillis, getRetryPolicy, getSerialConsistencyLevel, getUserData, isEnabled, isErrorTracing, isIdempotent, isTracing, setConsistencyLevel, setDefaultTimestamp, setFetchSize, setIdempotent, setReadTimeoutMillis, setRetryPolicy, setSerialConsistencyLevel, setUserDataprotected final List<TableInfoImpl<T>> tables
public CreateTableImpl(ClassInfoImpl.Context context, StatementManagerImpl mgr, StatementBridge bridge)
CreateTableImpl object.context - the non-null class info context for the POJO
associated with this statementmgr - the non-null statement managerbridge - the non-null statement bridgepublic CreateTableImpl(ClassInfoImpl.Context context, String[] tables, StatementManagerImpl mgr, StatementBridge bridge)
CreateTableImpl object.context - the non-null class info context for the POJO
associated with this statementtables - the tables to createmgr - the non-null statement managerbridge - the non-null statement bridgeIllegalArgumentException - if any of the specified tables are not
defined in the POJOprotected StringBuilder[] buildQueryStrings(TableInfoImpl<T> table)
table - the non-null table for which to build a query
stringnull if there is none for the
specified tableIllegalArgumentException - if the keyspace has not yet been computed
and cannot be computed with the provided keyspace keys yet or if
assignments reference columns not defined in the POJO or invalid
values or if missing mandatory columns are referenced for the
specified tableprotected final List<StatementImpl<?,?,?>> buildGroupedStatements()
buildGroupedStatements in class GroupStatementImpl<Void,VoidFuture,T>null list of all underlying statements from this
statementGroupStatementImpl.buildGroupedStatements()protected void appendGroupSubType(StringBuilder builder)
appendGroupSubType in class StatementImpl<Void,VoidFuture,T>builder - the builder to which to append the sub-type of groupStatementImpl.appendGroupSubType(java.lang.StringBuilder)public CreateTable<T> ifNotExists()
ifNotExists in interface CreateTable<T>CreateTable.ifNotExists()public CreateTable.Options<T> with(WithOptions option)
with in interface CreateTable<T>CreateTable.with(org.helenus.driver.WithOptions)public CreateTable.Options<T> with()
with in interface CreateTable<T>CreateTable.with()public CreateTable.Where<T> where(Clause clause)
where in interface CreateTable<T>CreateTable.where(org.helenus.driver.Clause)public CreateTable.Where<T> where()
where in interface CreateTable<T>CreateTable.where()Copyright (C) 2015-2017 The Helenus Driver Project Authors.