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

public Class AlterTableDropConstraint

extends AlterTable
Class Inheritance
Imports
org.h2.api.ErrorCode, org.h2.command.CommandInterface, org.h2.constraint.Constraint, .Constraint.Type, .ConstraintActionType, org.h2.engine.Right, .SessionLocal, org.h2.message.DbException, org.h2.schema.Schema, org.h2.table.Table

This class represents the statement ALTER TABLE DROP CONSTRAINT

Field Summary

Modifier and TypeField and Description
private String
private ConstraintActionType
private final boolean
Inherited from org.h2.command.ddl.AlterTable:
ifTableExiststableName

Constructor Summary

AccessConstructor and Description
public
AlterTableDropConstraint(SessionLocal session, Schema schema, boolean ifExists)

Method Summary

Modifier and TypeMethod and Description
public int
getType()

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

Get the command type as defined in CommandInterface

public void
public void
public long
Inherited from org.h2.command.ddl.AlterTable:
setIfTableExistssetTableNameupdate

Field Detail

constraintNameback to summary
private String constraintName
dropActionback to summary
private ConstraintActionType dropAction
ifExistsback to summary
private final boolean ifExists

Constructor Detail

AlterTableDropConstraintback to summary
public AlterTableDropConstraint(SessionLocal session, Schema schema, boolean ifExists)

Method Detail

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
setConstraintNameback to summary
public void setConstraintName(String string)
setDropActionback to summary
public void setDropAction(ConstraintActionType dropAction)
updateback to summary
public long update(Table table)

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

Annotations
@Override