T - The type of POJO associated with this statement.public class CreateSchemaImpl<T> extends SequenceStatementImpl<Void,VoidFuture,T> implements CreateSchema<T>
CreateSchemaImpl class defines a CREATE SCHEMA statement.| Modifier and Type | Class and Description |
|---|---|
static class |
CreateSchemaImpl.WhereImpl<T>
The
WhereImpl class defines a WHERE clause for the CREATE
SCHEMA statement which can be used to specify keyspace keys used for the
keyspace name. |
CreateSchema.Where<T>bridge, CI_PREFIX, idempotent, isCounterOp, mgr, MK_PREFIX, resultClass, simpleSize, UDT_C_PREFIX| Constructor and Description |
|---|
CreateSchemaImpl(ClassInfoImpl.Context context,
StatementManagerImpl mgr,
StatementBridge bridge)
Instantiates a new
CreateSchemaImpl 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 void |
appendGroupType(StringBuilder builder)
Appends the type of group this is; used when building a query string.
|
protected List<StatementImpl<?,?,?>> |
buildSequencedStatements()
Gets all underlying sequenced statements recursively in the proper order
for this statement.
|
void |
buildSequencedStatements(Set<Pair<String,Keyspace>> keyspaces,
Map<Pair<String,Keyspace>,Set<Table>> tables,
GroupImpl kgroup,
GroupImpl tgroup,
GroupImpl igroup,
ParentStatementImpl yparent,
GroupImpl group)
Gets all underlying sequenced statements for this create schemas with the
ability to optionally tracked and skipped already created keyspaces and/or
tables.
|
Set<ClassInfo<?>> |
getClassInfos() |
Set<Class<?>> |
getObjectClasses() |
CreateSchema<T> |
ifNotExists() |
CreateSchema.Where<T> |
where() |
CreateSchema.Where<T> |
where(Clause clause) |
buildQueryStrings, buildStatements, executeAsyncRaw0, isIdempotent, setDirty, 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, setUserDatapublic CreateSchemaImpl(ClassInfoImpl.Context context, StatementManagerImpl mgr, StatementBridge bridge)
CreateSchemaImpl object.context - the non-null class info context for the POJO
associated with this statementmgr - the non-null statement managerbridge - the non-null statement bridgeprotected 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)protected void appendGroupType(StringBuilder builder)
appendGroupType in class SequenceStatementImpl<Void,VoidFuture,T>builder - the builder to which to append the type of groupSequenceStatementImpl.appendGroupType(java.lang.StringBuilder)protected List<StatementImpl<?,?,?>> buildSequencedStatements()
buildSequencedStatements in class SequenceStatementImpl<Void,VoidFuture,T>null list of all underlying statements from this
statementSequenceStatementImpl.buildSequencedStatements()public void buildSequencedStatements(Set<Pair<String,Keyspace>> keyspaces, Map<Pair<String,Keyspace>,Set<Table>> tables, GroupImpl kgroup, GroupImpl tgroup, GroupImpl igroup, ParentStatementImpl yparent, GroupImpl group)
keyspaces - an optional set of keyspaces already created when
used as part of a create schemas statement or nulltables - an optional map of tables already for given keyspaces created
when used as part of a create schemas statement or nullkgroup - a group where to place all create keyspace statements
recursively expandedtgroup - a group where to place all create table statements
recursively expanded
one should be created and returned as part of the listigroup - a group where to place all create index statements
recursively expanded
one should be created and returned as part of the listyparent - a sequence or group where to place all create type statements
recursively expanded
one should be created and returned as part of the listgroup - a group where to place all insert statements for initial
objectspublic Set<Class<?>> getObjectClasses()
getObjectClasses in interface CreateSchema<T>CreateSchema.getObjectClasses()public Set<ClassInfo<?>> getClassInfos()
getClassInfos in interface CreateSchema<T>CreateSchema.getClassInfos()public CreateSchema<T> ifNotExists()
ifNotExists in interface CreateSchema<T>CreateSchema.ifNotExists()public CreateSchema.Where<T> where(Clause clause)
where in interface CreateSchema<T>CreateSchema.where(org.helenus.driver.Clause)public CreateSchema.Where<T> where()
where in interface CreateSchema<T>CreateSchema.where()Copyright (C) 2015-2017 The Helenus Driver Project Authors.