Class AlterDomain
java.lang.Object
org.h2.command.Prepared
org.h2.command.ddl.DefineCommand
org.h2.command.ddl.SchemaCommand
org.h2.command.ddl.SchemaOwnerCommand
org.h2.command.ddl.AlterDomain
- Direct Known Subclasses:
AlterDomainAddConstraint, AlterDomainDropConstraint, AlterDomainExpressions, AlterDomainRename, AlterDomainRenameConstraint, DropDomain
The base class for ALTER DOMAIN commands.
-
Field Summary
FieldsFields inherited from class DefineCommand
transactionalFields inherited from class Prepared
create, parameters, prepareAlways, session, sqlStatement, sqlTokens -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidforAllDependencies(SessionLocal session, Domain domain, BiPredicate<Domain, Column> columnProcessor, BiPredicate<Domain, Domain> domainProcessor, boolean recompileExpressions) Processes all columns and domains that use the specified domain.private static booleanforTable(SessionLocal session, Domain domain, BiPredicate<Domain, Column> columnProcessor, boolean recompileExpressions, Table t) final voidsetDomainName(String domainName) final voidsetIfDomainExists(boolean b) (package private) final long(package private) abstract longMethods inherited from class SchemaOwnerCommand
updateMethods inherited from class SchemaCommand
getSchemaMethods inherited from class DefineCommand
isReadOnly, isTransactional, queryMeta, setTransactionalMethods inherited from class Prepared
checkCanceled, checkParameters, collectDependencies, getCteCleanups, getCurrentRowNumber, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, getType, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, toString
-
Field Details
-
domainName
String domainName -
ifDomainExists
boolean ifDomainExists
-
-
Constructor Details
-
AlterDomain
AlterDomain(SessionLocal session, Schema schema)
-
-
Method Details
-
forAllDependencies
public static void forAllDependencies(SessionLocal session, Domain domain, BiPredicate<Domain, Column> columnProcessor, BiPredicate<Domain, Domain> domainProcessor, boolean recompileExpressions) Processes all columns and domains that use the specified domain.- Parameters:
session- the sessiondomain- the domain to processcolumnProcessor- column handlerdomainProcessor- domain handlerrecompileExpressions- whether processed expressions need to be recompiled
-
forTable
private static boolean forTable(SessionLocal session, Domain domain, BiPredicate<Domain, Column> columnProcessor, boolean recompileExpressions, Table t) -
setDomainName
-
setIfDomainExists
public final void setIfDomainExists(boolean b) -
update
- Specified by:
updatein classSchemaOwnerCommand
-
update
-