Top Description Fields Constructors Methods
org.h2.schema

public final Class Constant

extends SchemaObject
Class Inheritance
Imports
org.h2.engine.DbObject, .SessionLocal, org.h2.expression.ValueExpression, org.h2.message.Trace, org.h2.value.Value

A user-defined constant as created by the SQL statement CREATE CONSTANT

Field Summary

Modifier and TypeField and Description
private ValueExpression
private Value

Constructor Summary

AccessConstructor and Description
public
Constant(Schema schema, int id, String name)

Method Summary

Modifier and TypeMethod and Description
public String
getCreateSQL()

Implements abstract org.h2.engine.DbObject.getCreateSQL.

Construct the CREATE ...

public int
getType()

Implements abstract org.h2.engine.DbObject.getType.

Get the object type.

public ValueExpression
public void
removeChildrenAndResources(SessionLocal
the session
session
)

Implements abstract org.h2.engine.DbObject.removeChildrenAndResources.

Delete all dependent children objects and resources of this object.

public void
setValue(Value value)

Inherited from org.h2.schema.SchemaObject:
getSchemagetSQLgetSQL

Field Detail

expressionback to summary
private ValueExpression expression
valueback to summary
private Value value

Constructor Detail

Constantback to summary
public Constant(Schema schema, int id, String name)

Method Detail

getCreateSQLback to summary
public String getCreateSQL()

Implements abstract org.h2.engine.DbObject.getCreateSQL.

Doc from org.h2.engine.DbObject.getCreateSQL.

Construct the CREATE ... SQL statement for this object.

Returns:String

the SQL statement

Annotations
@Override
getTypeback to summary
public int getType()

Implements abstract org.h2.engine.DbObject.getType.

Doc from org.h2.engine.DbObject.getType.

Get the object type.

Returns:int

the object type

Annotations
@Override
getValueback to summary
public ValueExpression getValue()
removeChildrenAndResourcesback to summary
public void removeChildrenAndResources(SessionLocal session)

Implements abstract org.h2.engine.DbObject.removeChildrenAndResources.

Doc from org.h2.engine.DbObject.removeChildrenAndResources.

Delete all dependent children objects and resources of this object.

Parameters
session:SessionLocal

the session

Annotations
@Override
setValueback to summary
public void setValue(Value value)