public final class Comment extends DbObject
Constructor and Description |
---|
Comment(Database database,
int id,
DbObject obj) |
Modifier and Type | Method and Description |
---|---|
void |
checkRename()
Check if renaming is allowed.
|
java.lang.String |
getCreateSQL()
Construct the CREATE ...
|
int |
getType()
Get the object type.
|
void |
removeChildrenAndResources(SessionLocal session)
Delete all dependent children objects and resources of this object.
|
void |
setCommentText(java.lang.String comment)
Set the comment text.
|
getChildren, getComment, getCreateSQLForCopy, getCreateSQLForMeta, getDatabase, getDropSQL, getId, getModificationId, getName, getSQL, getSQL, invalidate, isTemporary, isValid, rename, setComment, setModified, setObjectName, setTemporary, toString
public java.lang.String getCreateSQL()
DbObject
getCreateSQL
in class DbObject
public int getType()
DbObject
public void removeChildrenAndResources(SessionLocal session)
DbObject
removeChildrenAndResources
in class DbObject
session
- the sessionpublic void checkRename()
DbObject
checkRename
in class DbObject
public void setCommentText(java.lang.String comment)
comment
- the text