public class CreateUdtQuery extends MigrationQuery
| Constructor and Description |
|---|
CreateUdtQuery(UserDefinedType type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addsReferenceTo(String udtName)
Whether the query will introduce a new column/field that uses the given UDT.
|
void |
authorize(AuthorizationService authorizationService,
AuthenticationSubject subject) |
AbstractBound<?> |
build(DataStore dataStore) |
static List<MigrationQuery> |
createUdt(UserDefinedType type)
This method only exist to mirror
CreateTableQuery.createTableAndIndexes(io.stargate.db.schema.Table) (there is some
common code that abstracts over both). |
boolean |
dropsReferenceTo(String udtName)
Whether the query will remove a column/field that was using the given UDT.
|
String |
getDescription() |
UserDefinedType |
getType() |
boolean |
mustRunBefore(MigrationQuery that) |
referencespublic CreateUdtQuery(UserDefinedType type)
public static List<MigrationQuery> createUdt(UserDefinedType type)
CreateTableQuery.createTableAndIndexes(io.stargate.db.schema.Table) (there is some
common code that abstracts over both).public UserDefinedType getType()
public AbstractBound<?> build(DataStore dataStore)
build in class MigrationQuerypublic String getDescription()
getDescription in class MigrationQuerypublic void authorize(AuthorizationService authorizationService, AuthenticationSubject subject) throws UnauthorizedException
authorize in class MigrationQueryUnauthorizedExceptionpublic boolean mustRunBefore(MigrationQuery that)
mustRunBefore in class MigrationQuerypublic boolean addsReferenceTo(String udtName)
MigrationQueryaddsReferenceTo in class MigrationQuerypublic boolean dropsReferenceTo(String udtName)
MigrationQuerydropsReferenceTo in class MigrationQueryCopyright © 2022. All rights reserved.