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

public Class CreateSynonym

extends SchemaOwnerCommand
Class Inheritance
Imports
org.h2.api.ErrorCode, org.h2.command.CommandInterface, org.h2.engine.Database, .SessionLocal, org.h2.message.DbException, org.h2.schema.Schema, org.h2.table.TableSynonym

This class represents the statement CREATE SYNONYM

Field Summary

Modifier and TypeField and Description
private String
private final CreateSynonymData
private boolean
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private int
public int
getType()

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

Get the command type as defined in CommandInterface

public void
setComment(String comment)

public void
setIfNotExists(boolean ifNotExists)

public void
public void
setOrReplace(boolean orReplace)

public void
setSynonymFor(String tableName)

public void
setSynonymForSchema(Schema synonymForSchema)

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

Field Detail

commentback to summary
private String comment
databack to summary
private final CreateSynonymData data
ifNotExistsback to summary
private boolean ifNotExists
orReplaceback to summary
private boolean orReplace

Constructor Detail

CreateSynonymback to summary
public CreateSynonym(SessionLocal session, Schema schema)

Method Detail

createTableSynonymback to summary
private int createTableSynonym(Database db)
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
setCommentback to summary
public void setComment(String comment)
setIfNotExistsback to summary
public void setIfNotExists(boolean ifNotExists)
setNameback to summary
public void setName(String name)
setOrReplaceback to summary
public void setOrReplace(boolean orReplace)
setSynonymForback to summary
public void setSynonymFor(String tableName)
setSynonymForSchemaback to summary
public void setSynonymForSchema(Schema synonymForSchema)
updateback to summary
pack-priv long update(Schema schema)

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

Annotations
@Override