DbObjectBase

The base class for all database objects.

Methods
void checkRename()
Check if this object can be renamed.
void checkRename()
Check if this object can be renamed. System objects may not be renamed.
ArrayList getChildren()
ArrayList getChildren()
String getComment()
String getComment()
String getCreateSQL()
Build a SQL statement to re-create this object.
String getCreateSQL()
Build a SQL statement to re-create this object.
Returns:
the SQL statement
Database getDatabase()
Database getDatabase()
String getDropSQL()
Build a SQL statement to drop this object.
String getDropSQL()
Build a SQL statement to drop this object.
Returns:
the SQL statement
int getId()
int getId()
long getModificationId()
long getModificationId()
String getName()
String getName()
String getSQL()
String getSQL()
void initDbObjectBase(Database db, int objectId, String name, String traceModule)
Initialize some attributes of this object.
void initDbObjectBase(Database db, int objectId, String name, String traceModule)
Initialize some attributes of this object.
Parameters:
db - the database
objectId - the object id
name - the name
traceModule - the trace module name
void invalidate()
Set the main attributes to null to make sure the object is no longer used.
void invalidate()
Set the main attributes to null to make sure the object is no longer used.
boolean isTemporary()
boolean isTemporary()
void removeChildrenAndResources(Session session)
Remove all dependent objects and free all resources (files, blocks in files) of this object.
void removeChildrenAndResources(Session session)
Remove all dependent objects and free all resources (files, blocks in files) of this object.
Parameters:
session - the session
void rename(String newName)
void rename(String newName)
void setComment(String comment)
void setComment(String comment)
void setModified()
Tell the object that is was modified.
void setModified()
Tell the object that is was modified.
void setObjectName(String name)
void setObjectName(String name)
void setTemporary(boolean temporary)
void setTemporary(boolean temporary)
String toString()
String toString()