public class AlterSchemasImpl extends SequenceStatementImpl<Void,VoidFuture,Void> implements AlterSchemas
AlterSchemasImpl class provides support for a statement
which will create and/or alter all the required elements (keyspace, tables,
types, and indexes) to support the schema for a given package of POJOs. It
will take care of creating and/or altering the required keyspace, tables,
types, and indexes.| Modifier and Type | Class and Description |
|---|---|
static class |
AlterSchemasImpl.WhereImpl
The
WhereImpl class defines a WHERE clause for the ALTER
SCHEMAS statement which can be used to specify keyspace key types used for
keyspace names. |
AlterSchemas.Wherebridge, CI_PREFIX, idempotent, isCounterOp, mgr, MK_PREFIX, resultClass, simpleSize, UDT_C_PREFIX| Constructor and Description |
|---|
AlterSchemasImpl(String[] pkgs,
boolean matching,
StatementManagerImpl mgr,
StatementBridge bridge)
Instantiates a new
AlterSchemaImpl 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.
|
java.util.stream.Stream<ClassInfo<?>> |
classInfos() |
java.util.stream.Stream<ClassInfo<?>> |
definedClassInfos() |
Set<ClassInfo<?>> |
getClassInfos() |
Set<ClassInfo<?>> |
getDefinedClassInfos() |
Set<Class<?>> |
getObjectClasses() |
java.util.stream.Stream<Class<?>> |
objectClasses() |
protected void |
setDirty()
Sets the dirty bit for the cached query string and clear the number of
statements.
|
AlterSchemas.Where |
where() |
AlterSchemas.Where |
where(Clause clause) |
buildQueryStrings, buildStatements, executeAsyncRaw0, isIdempotent, 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 AlterSchemasImpl(String[] pkgs, boolean matching, StatementManagerImpl mgr, StatementBridge bridge)
AlterSchemaImpl object.pkgs - the packages and/or classes where to find all POJO classes to
alter schemas for associated with this statementmatching - true to only consider POJOs with keyspace names
that can be computed with exactly the set of keyspace keys providedmgr - the non-null statement managerbridge - the non-null statement bridgeNullPointerException - if pkgs is nullIllegalArgumentException - if an @Entity or @RootEntity annotated
class is missing the @Keyspace annotation or two entities defines
the same keyspace with different options or an entity class doesn't
represent a valid POJO class or if no entities are foundprotected void setDirty()
setDirty in class SequenceStatementImpl<Void,VoidFuture,Void>StatementImpl.setDirty()protected final List<StatementImpl<?,?,?>> buildSequencedStatements()
buildSequencedStatements in class SequenceStatementImpl<Void,VoidFuture,Void>null list of all underlying statements from this
statementSequenceStatementImpl.buildSequencedStatements()protected void appendGroupSubType(StringBuilder builder)
appendGroupSubType in class StatementImpl<Void,VoidFuture,Void>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,Void>builder - the builder to which to append the type of groupSequenceStatementImpl.appendGroupType(java.lang.StringBuilder)public Set<Class<?>> getObjectClasses()
getObjectClasses in interface AlterSchemasCreateSchemas.getObjectClasses()public Set<ClassInfo<?>> getClassInfos()
getClassInfos in interface AlterSchemasCreateSchemas.getClassInfos()public Set<ClassInfo<?>> getDefinedClassInfos()
getDefinedClassInfos in interface AlterSchemasCreateSchemas.getDefinedClassInfos()public java.util.stream.Stream<Class<?>> objectClasses()
objectClasses in interface AlterSchemasCreateSchemas.objectClasses()public java.util.stream.Stream<ClassInfo<?>> classInfos()
classInfos in interface AlterSchemasCreateSchemas.classInfos()public java.util.stream.Stream<ClassInfo<?>> definedClassInfos()
definedClassInfos in interface AlterSchemasCreateSchemas.definedClassInfos()public AlterSchemas.Where where(Clause clause)
where in interface AlterSchemasCreateSchemas.where(org.helenus.driver.Clause)public AlterSchemas.Where where()
where in interface AlterSchemasCreateSchemas.where()Copyright (C) 2015-2017 The Helenus Driver Project Authors.