Top Description Fields Constructors Methods
org.h2.schema

public abstract Class SchemaObject

extends DbObject
Class Inheritance
Known Direct Subclasses
org.h2.schema.Sequence, org.h2.schema.TriggerObject, org.h2.schema.UserDefinedFunction, org.h2.table.Table, org.h2.table.TableSynonym, org.h2.constraint.Constraint, org.h2.index.Index, org.h2.schema.Constant, org.h2.schema.Domain
Imports
org.h2.engine.DbObject

Any database object that is stored in a schema.

Field Summary

Modifier and TypeField and Description
private final Schema
Inherited from org.h2.engine.DbObject:
AGGREGATECOMMENTcommentCONSTANTCONSTRAINTdatabaseDOMAINFUNCTION_ALIASINDEXRIGHTROLESCHEMASEQUENCESETTINGSYNONYMTABLE_OR_VIEWtraceTRIGGERUSER

Constructor Summary

AccessConstructor and Description
protected
SchemaObject(Schema
the schema
newSchema
,
int
the object id
id
,
String
the name
name
,
int
the trace module id
traceModuleId
)

Initialize some attributes of this object.

Method Summary

Modifier and TypeMethod and Description
public final Schema

Returns:

the schema
getSchema
()

Get the schema in which this object is defined

public String
getSQL(int
formatting flags
sqlFlags
)

Overrides org.h2.engine.DbObject.getSQL.

Overrides default org.h2.util.HasSQL.getSQL.

Get the SQL statement of this expression.

public StringBuilder
getSQL(StringBuilder
string builder
builder
,
int
formatting flags
sqlFlags
)

Overrides org.h2.engine.DbObject.getSQL.

Implements org.h2.util.HasSQL.getSQL.

Appends the SQL statement of this object to the specified builder.

Inherited from org.h2.engine.DbObject:
checkRenamegetChildrengetCommentgetCreateSQLgetCreateSQLForCopygetCreateSQLForMetagetDatabasegetDropSQLgetIdgetModificationIdgetNamegetTypeinvalidateisTemporaryisValidremoveChildrenAndResourcesrenamesetCommentsetModifiedsetObjectNamesetTemporarytoString

Field Detail

schemaback to summary
private final Schema schema

Constructor Detail

SchemaObjectback to summary
protected SchemaObject(Schema newSchema, int id, String name, int traceModuleId)

Initialize some attributes of this object.

Parameters
newSchema:Schema

the schema

id:int

the object id

name:String

the name

traceModuleId:int

the trace module id

Method Detail

getSchemaback to summary
public final Schema getSchema()

Get the schema in which this object is defined

Returns:Schema

the schema

getSQLback to summary
public String getSQL(int sqlFlags)

Overrides org.h2.engine.DbObject.getSQL.

Overrides default org.h2.util.HasSQL.getSQL.

Doc from org.h2.util.HasSQL.getSQL.

Get the SQL statement of this expression. This may not always be the original SQL statement, specially after optimization.

Parameters
sqlFlags:int

formatting flags

Returns:String

the SQL statement

Annotations
@Override
getSQLback to summary
public StringBuilder getSQL(StringBuilder builder, int sqlFlags)

Overrides org.h2.engine.DbObject.getSQL.

Implements org.h2.util.HasSQL.getSQL.

Doc from org.h2.util.HasSQL.getSQL.

Appends the SQL statement of this object to the specified builder.

Parameters
builder:StringBuilder

string builder

sqlFlags:int

formatting flags

Returns:StringBuilder

the specified string builder

Annotations
@Override