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
public abstract class AlterDomain extends SchemaCommand
The base class for ALTER DOMAIN commands.
-
-
Field Summary
-
Fields inherited from class org.h2.command.ddl.DefineCommand
transactional
-
Fields inherited from class org.h2.command.Prepared
create, parameters, prepareAlways, session, sqlStatement, sqlTokens
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidforAllDependencies(SessionLocal session, Domain domain, java.util.function.BiPredicate<Domain,Column> columnProcessor, java.util.function.BiPredicate<Domain,Domain> domainProcessor, boolean recompileExpressions)Processes all columns and domains that use the specified domain.voidsetDomainName(java.lang.String domainName)voidsetIfDomainExists(boolean b)longupdate()Execute the statement.-
Methods inherited from class org.h2.command.ddl.SchemaCommand
getSchema
-
Methods inherited from class org.h2.command.ddl.DefineCommand
isReadOnly, isRetryable, isTransactional, queryMeta, setTransactional
-
Methods 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 Detail
-
forAllDependencies
public static void forAllDependencies(SessionLocal session, Domain domain, java.util.function.BiPredicate<Domain,Column> columnProcessor, java.util.function.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
public final void setDomainName(java.lang.String domainName)
-
setIfDomainExists
public final void setIfDomainExists(boolean b)
-
-