public abstract class DbObjectBase extends Object implements DbObject
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
comment
The comment (if set).
|
protected Database |
database
The database.
|
protected Trace |
trace
The trace module.
|
AGGREGATE, COMMENT, CONSTANT, CONSTRAINT, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, TABLE_OR_VIEW, TRIGGER, USER, USER_DATATYPE| 构造器和说明 |
|---|
DbObjectBase() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
checkRename()
Check if this object can be renamed.
|
ArrayList<DbObject> |
getChildren()
Get the list of dependent children (for tables, this includes indexes and
so on).
|
String |
getComment()
Get the current comment of this object.
|
abstract String |
getCreateSQL()
Build a SQL statement to re-create this object.
|
Database |
getDatabase()
Get the database.
|
abstract String |
getDropSQL()
Build a SQL statement to drop this object.
|
int |
getId()
Get the unique object id.
|
long |
getModificationId() |
String |
getName()
Get the name.
|
String |
getSQL()
Get the SQL name of this object (may be quoted).
|
protected void |
initDbObjectBase(Database db,
int objectId,
String name,
int traceModuleId)
Initialize some attributes of this object.
|
protected void |
invalidate()
Set the main attributes to null to make sure the object is no longer
used.
|
boolean |
isTemporary()
Check if this object is temporary (for example, a temporary table).
|
boolean |
isValid() |
abstract void |
removeChildrenAndResources(Session session)
Remove all dependent objects and free all resources (files, blocks in
files) of this object.
|
void |
rename(String newName)
Rename the object.
|
void |
setComment(String comment)
Change the comment of this object.
|
void |
setModified()
Tell the object that is was modified.
|
protected void |
setObjectName(String name) |
void |
setTemporary(boolean temporary)
Tell this object that it is temporary or not.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCreateSQLForCopy, getTypeprotected Database database
protected Trace trace
protected String comment
protected void initDbObjectBase(Database db, int objectId, String name, int traceModuleId)
db - the databaseobjectId - the object idname - the nametraceModuleId - the trace module idpublic abstract String getCreateSQL()
getCreateSQL 在接口中 DbObjectpublic abstract String getDropSQL()
getDropSQL 在接口中 DbObjectpublic abstract void removeChildrenAndResources(Session session)
removeChildrenAndResources 在接口中 DbObjectsession - the sessionpublic abstract void checkRename()
checkRename 在接口中 DbObjectpublic void setModified()
public long getModificationId()
protected void setObjectName(String name)
public ArrayList<DbObject> getChildren()
DbObjectgetChildren 在接口中 DbObjectpublic Database getDatabase()
DbObjectgetDatabase 在接口中 DbObjectpublic int getId()
DbObjectprotected void invalidate()
public final boolean isValid()
public boolean isTemporary()
DbObjectisTemporary 在接口中 DbObjectpublic void setTemporary(boolean temporary)
DbObjectsetTemporary 在接口中 DbObjecttemporary - the new valuepublic void setComment(String comment)
DbObjectsetComment 在接口中 DbObjectcomment - the new comment, or null for no commentpublic String getComment()
DbObjectgetComment 在接口中 DbObjectCopyright © 2017. All rights reserved.