public class TableSynonym extends SchemaObject
AGGREGATE, comment, COMMENT, CONSTANT, CONSTRAINT, database, DOMAIN, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, SYNONYM, TABLE_OR_VIEW, trace, TRIGGER, USERADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS| Constructor and Description |
|---|
TableSynonym(CreateSynonymData data) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkRename()
Check if renaming is allowed.
|
java.lang.String |
getCreateSQL()
Construct the CREATE ...
|
java.lang.String |
getCreateSQLForCopy(Table table,
java.lang.String quotedName)
Build a SQL statement to re-create the object, or to create a copy of the
object with a different name or referencing a different table
|
java.lang.String |
getDropSQL()
Construct a DROP ...
|
Table |
getSynonymFor() |
java.lang.String |
getSynonymForName() |
Schema |
getSynonymForSchema() |
int |
getType()
Get the object type.
|
boolean |
isInvalid() |
void |
removeChildrenAndResources(SessionLocal session)
Delete all dependent children objects and resources of this object.
|
void |
rename(java.lang.String newName)
Rename the object.
|
void |
updateData(CreateSynonymData data)
Set (update) the data.
|
void |
updateSynonymFor()
Update the table that this is a synonym for, to know about this synonym.
|
getSchema, getSQL, getSQL, isHiddengetChildren, getComment, getCreateSQLForMeta, getDatabase, getId, getModificationId, getName, invalidate, isTemporary, isValid, setComment, setModified, setObjectName, setTemporary, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLpublic TableSynonym(CreateSynonymData data)
public Table getSynonymFor()
public void updateData(CreateSynonymData data)
data - the new datapublic int getType()
DbObjectpublic java.lang.String getCreateSQLForCopy(Table table, java.lang.String quotedName)
DbObjectgetCreateSQLForCopy in class DbObjecttable - the new tablequotedName - the quoted namepublic void rename(java.lang.String newName)
DbObjectpublic void removeChildrenAndResources(SessionLocal session)
DbObjectremoveChildrenAndResources in class DbObjectsession - the sessionpublic java.lang.String getCreateSQL()
DbObjectgetCreateSQL in class DbObjectpublic java.lang.String getDropSQL()
DbObjectgetDropSQL in class DbObjectpublic void checkRename()
DbObjectcheckRename in class DbObjectpublic java.lang.String getSynonymForName()
public Schema getSynonymForSchema()
public boolean isInvalid()
public void updateSynonymFor()