Package org.h2.command.ddl
Class AlterDomain
java.lang.Object
org.h2.command.Prepared
org.h2.command.ddl.DefineCommand
org.h2.command.ddl.SchemaCommand
org.h2.command.ddl.AlterDomain
- Direct Known Subclasses:
AlterDomainAddConstraint,AlterDomainDropConstraint,AlterDomainExpressions,AlterDomainRename,AlterDomainRenameConstraint,AlterType,DropDomain
The base class for ALTER DOMAIN commands.
-
Field Summary
Fields inherited from class org.h2.command.ddl.DefineCommand
transactionalFields inherited from class org.h2.command.Prepared
create, parameters, prepareAlways, session, sqlStatement, sqlTokens -
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.final voidsetDomainName(String domainName) final voidsetIfDomainExists(boolean b) final longupdate()Execute the statement.Methods inherited from class org.h2.command.ddl.SchemaCommand
getSchemaMethods inherited from class org.h2.command.ddl.DefineCommand
isReadOnly, isRetryable, isTransactional, queryMeta, setTransactionalMethods inherited from class org.h2.command.Prepared
checkCanceled, checkParameters, collectDependencies, getCurrentRowNumber, getDatabase, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, getType, invalidateCachedResult, isCacheable, isQuery, isWithParamValues, needRecompile, prepare, query, setCommand, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, setWithParamValues, toString
-
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
-
setDomainName
-
setIfDomainExists
public final void setIfDomainExists(boolean b) -
update
public final long update()Description copied from class:PreparedExecute the statement.
-