public class CreateSynonym extends SchemaCommand
transactional
create, parameters, prepareAlways, session, sqlStatement
Constructor and Description |
---|
CreateSynonym(Session session,
Schema schema) |
Modifier and Type | Method and Description |
---|---|
int |
getType()
Get the command type as defined in CommandInterface
|
void |
setComment(String comment) |
void |
setIfNotExists(boolean ifNotExists) |
void |
setName(String name) |
void |
setOrReplace(boolean orReplace) |
void |
setSynonymFor(String tableName) |
void |
setSynonymForSchema(Schema synonymForSchema) |
int |
update()
Execute the statement.
|
getSchema
isReadOnly, isTransactional, queryMeta, setTransactional
checkCanceled, checkParameters, getCteCleanups, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSession, getSQL, getSQL, getSQL, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setObjectId, setParameterList, setPrepareAlways, setRow, setSession, setSQL, toString
public void setName(String name)
public void setSynonymFor(String tableName)
public void setSynonymForSchema(Schema synonymForSchema)
public void setIfNotExists(boolean ifNotExists)
public void setOrReplace(boolean orReplace)
public int update()
Prepared
public void setComment(String comment)
Copyright © 2020 JBoss by Red Hat. All rights reserved.