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 ...
|
java.lang.String |
getCreateSQLForCopy(org.h2.table.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
|
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, getCreateSQLForMeta, getDatabase, getDropSQL, getId, getModificationId, getName, getSQL, getSQL, invalidate, isTemporary, isValid, rename, setComment, setModified, setObjectName, setTemporary, toString
public java.lang.String getCreateSQLForCopy(org.h2.table.Table table, java.lang.String quotedName)
DbObject
getCreateSQLForCopy
in class DbObject
table
- the new tablequotedName
- the quoted namepublic 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