|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DbObject
A database object such as a table, an index, or a user.
Field Summary | |
---|---|
static int |
AGGREGATE
This object is a user-defined aggregate function. |
static int |
COMMENT
This object is a comment. |
static int |
CONSTANT
This object is a constant. |
static int |
CONSTRAINT
This object is a constraint (check constraint, unique constraint, or referential constraint). |
static int |
FUNCTION_ALIAS
This object is an alias for a Java function. |
static int |
INDEX
This object is an index. |
static int |
RIGHT
This object is a right. |
static int |
ROLE
This object is a role. |
static int |
SCHEMA
This object is a schema. |
static int |
SEQUENCE
This object is a sequence. |
static int |
SETTING
This object is a setting. |
static int |
TABLE_OR_VIEW
The object is of the type table or view. |
static int |
TRIGGER
This object is a trigger. |
static int |
USER
This object is a user. |
static int |
USER_DATATYPE
This object is a user data type (domain). |
Method Summary | |
---|---|
void |
checkRename()
Check if renaming is allowed. |
java.util.ArrayList<DbObject> |
getChildren()
Get the list of dependent children (for tables, this includes indexes and so on). |
java.lang.String |
getComment()
Get the current comment of this object. |
java.lang.String |
getCreateSQL()
Construct the original CREATE ... |
java.lang.String |
getCreateSQLForCopy(Table table,
java.lang.String quotedName)
Construct a CREATE ... |
Database |
getDatabase()
Get the database. |
java.lang.String |
getDropSQL()
Construct a DROP ... |
int |
getId()
Get the unique object id. |
long |
getModificationId()
Get the last modification id. |
java.lang.String |
getName()
Get the name. |
java.lang.String |
getSQL()
Get the SQL name of this object (may be quoted). |
int |
getType()
Get the object type. |
boolean |
isTemporary()
Check if this object is temporary (for example, a temporary table). |
void |
removeChildrenAndResources(Session session)
Delete all dependent children objects and resources of this object. |
void |
rename(java.lang.String newName)
Rename the object. |
void |
setComment(java.lang.String comment)
Change the comment of this object. |
void |
setModified()
Tell the object that is was modified. |
void |
setTemporary(boolean temporary)
Tell this object that it is temporary or not. |
Field Detail |
---|
static final int TABLE_OR_VIEW
static final int INDEX
static final int USER
static final int SEQUENCE
static final int TRIGGER
static final int CONSTRAINT
static final int SETTING
static final int ROLE
static final int RIGHT
static final int FUNCTION_ALIAS
static final int SCHEMA
static final int CONSTANT
static final int USER_DATATYPE
static final int COMMENT
static final int AGGREGATE
Method Detail |
---|
void setModified()
long getModificationId()
java.lang.String getSQL()
java.util.ArrayList<DbObject> getChildren()
Database getDatabase()
int getId()
java.lang.String getName()
java.lang.String getCreateSQLForCopy(Table table, java.lang.String quotedName)
table
- the new tablequotedName
- the quoted name
java.lang.String getCreateSQL()
java.lang.String getDropSQL()
int getType()
void removeChildrenAndResources(Session session)
session
- the sessionvoid checkRename()
SQLException
- if renaming is not allowedvoid rename(java.lang.String newName)
newName
- the new nameboolean isTemporary()
void setTemporary(boolean temporary)
temporary
- the new valuevoid setComment(java.lang.String comment)
comment
- the new comment, or null for no commentjava.lang.String getComment()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |