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

public Class CreateConstant

extends SchemaOwnerCommand
Class Inheritance
Imports
org.h2.api.ErrorCode, org.h2.command.CommandInterface, org.h2.engine.Database, .SessionLocal, org.h2.expression.Expression, org.h2.message.DbException, org.h2.schema.Constant, .Schema, org.h2.value.Value

This class represents the statement CREATE CONSTANT

Field Summary

Modifier and TypeField and Description
private String
private Expression
private boolean

Constructor Summary

AccessConstructor and Description
public

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
setConstantName(String constantName)

public void
public void
setIfNotExists(boolean ifNotExists)

pack-priv long
Inherited from org.h2.command.ddl.SchemaOwnerCommand:
update

Field Detail

constantNameback to summary
private String constantName
expressionback to summary
private Expression expression
ifNotExistsback to summary
private boolean ifNotExists

Constructor Detail

CreateConstantback to summary
public CreateConstant(SessionLocal session, Schema schema)

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
setConstantNameback to summary
public void setConstantName(String constantName)
setExpressionback to summary
public void setExpression(Expression expr)
setIfNotExistsback to summary
public void setIfNotExists(boolean ifNotExists)
updateback to summary
pack-priv long update(Schema schema)

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

Annotations
@Override