Top Description Fields Constructors Methods
org.h2.command.ddl

public Class DropDomain

extends AlterDomain
Class Inheritance
Imports
java.util.ArrayList, org.h2.api.ErrorCode, org.h2.command.CommandInterface, org.h2.constraint.ConstraintActionType, .ConstraintDomain, org.h2.engine.SessionLocal, org.h2.expression.Expression, org.h2.message.DbException, org.h2.schema.Domain, .Schema, org.h2.table.Column, .ColumnTemplate, .Table

This class represents the statement DROP DOMAIN

Field Summary

Modifier and TypeField and Description
private ConstraintActionType
Inherited from org.h2.command.ddl.AlterDomain:
domainNameifDomainExists

Constructor Summary

AccessConstructor and Description
public
DropDomain(SessionLocal session, Schema schema)

Method Summary

Modifier and TypeMethod and Description
private boolean
copyColumn(Domain domain, Column targetColumn)

private boolean
copyDomain(Domain domain, Domain targetDomain)

private static boolean
copyExpressions(SessionLocal session, Domain domain, ColumnTemplate targetColumn)

public int
getType()

Implements abstract org.h2.command.Prepared.getType.

Get the command type as defined in CommandInterface

public void
pack-priv long
update(Schema schema, Domain domain)

Implements abstract org.h2.command.ddl.AlterDomain.update.

Inherited from org.h2.command.ddl.AlterDomain:
forAllDependenciessetDomainNamesetIfDomainExistsupdate

Field Detail

dropActionback to summary
private ConstraintActionType dropAction

Constructor Detail

DropDomainback to summary
public DropDomain(SessionLocal session, Schema schema)

Method Detail

copyColumnback to summary
private boolean copyColumn(Domain domain, Column targetColumn)
copyDomainback to summary
private boolean copyDomain(Domain domain, Domain targetDomain)
copyExpressionsback to summary
private static boolean copyExpressions(SessionLocal session, Domain domain, ColumnTemplate targetColumn)
getTypeback to summary
public int getType()

Implements abstract org.h2.command.Prepared.getType.

Doc from org.h2.command.Prepared.getType.

Get the command type as defined in CommandInterface

Returns:int

the statement type

Annotations
@Override
setDropActionback to summary
public void setDropAction(ConstraintActionType dropAction)
updateback to summary
pack-priv long update(Schema schema, Domain domain)

Implements abstract org.h2.command.ddl.AlterDomain.update.

Annotations
@Override