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| 构造器和说明 |
|---|
TableSynonym(CreateSynonymData data) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkRename()
Check if renaming is allowed.
|
String |
getCreateSQL()
Construct the CREATE ...
|
String |
getCreateSQLForCopy(Table table,
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
|
String |
getDropSQL()
Construct a DROP ...
|
Table |
getSynonymFor() |
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(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 String getCreateSQLForCopy(Table table, String quotedName)
DbObjectgetCreateSQLForCopy 在类中 DbObjecttable - the new tablequotedName - the quoted namepublic void removeChildrenAndResources(SessionLocal session)
DbObjectremoveChildrenAndResources 在类中 DbObjectsession - the sessionpublic String getCreateSQL()
DbObjectgetCreateSQL 在类中 DbObjectpublic String getDropSQL()
DbObjectgetDropSQL 在类中 DbObjectpublic void checkRename()
DbObjectcheckRename 在类中 DbObjectpublic String getSynonymForName()
public Schema getSynonymForSchema()
public boolean isInvalid()
public void updateSynonymFor()
Copyright © 2022. All rights reserved.