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.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 org.h2.command.ddl.DefineCommand
transactional
Fields inherited from class org.h2.command.Prepared
create, parameters, prepareAlways, session, sqlStatement, sqlTokens
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.private static boolean
forTable
(SessionLocal session, Domain domain, BiPredicate<Domain, Column> columnProcessor, boolean recompileExpressions, Table t) final void
setDomainName
(String domainName) final void
setIfDomainExists
(boolean b) (package private) final long
(package private) abstract long
Methods inherited from class org.h2.command.ddl.SchemaOwnerCommand
update
Methods inherited from class org.h2.command.ddl.SchemaCommand
getSchema
Methods inherited from class org.h2.command.ddl.DefineCommand
isReadOnly, isTransactional, queryMeta, setTransactional
Methods inherited from class org.h2.command.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:
update
in classSchemaOwnerCommand
-
update
-