Package org.h2.command.ddl
Class CreateSynonym
java.lang.Object
org.h2.command.Prepared
org.h2.command.ddl.DefineCommand
org.h2.command.ddl.SchemaCommand
org.h2.command.ddl.SchemaOwnerCommand
org.h2.command.ddl.CreateSynonym
This class represents the statement
CREATE SYNONYM
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private final CreateSynonymData
private boolean
private boolean
Fields inherited from class org.h2.command.ddl.DefineCommand
transactional
Fields inherited from class org.h2.command.Prepared
create, parameters, prepareAlways, session, sqlStatement, sqlTokens
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int
int
getType()
Get the command type as defined in CommandInterfacevoid
setComment
(String comment) void
setIfNotExists
(boolean ifNotExists) void
void
setOrReplace
(boolean orReplace) void
setSynonymFor
(String tableName) void
setSynonymForSchema
(Schema synonymForSchema) (package private) long
Methods inherited from class org.h2.command.ddl.SchemaOwnerCommand
update
Methods inherited from class org.h2.command.ddl.SchemaCommand
getSchema
Methods inherited from class org.h2.command.ddl.DefineCommand
isReadOnly, isTransactional, queryMeta, setTransactional
Methods inherited from class org.h2.command.Prepared
checkCanceled, checkParameters, collectDependencies, getCteCleanups, getCurrentRowNumber, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, toString
-
Field Details
-
data
-
ifNotExists
private boolean ifNotExists -
orReplace
private boolean orReplace -
comment
-
-
Constructor Details
-
CreateSynonym
-
-
Method Details
-
setName
-
setSynonymFor
-
setSynonymForSchema
-
setIfNotExists
public void setIfNotExists(boolean ifNotExists) -
setOrReplace
public void setOrReplace(boolean orReplace) -
update
- Specified by:
update
in classSchemaOwnerCommand
-
createTableSynonym
-
setComment
-
getType
public int getType()Description copied from class:Prepared
Get the command type as defined in CommandInterface
-