public class Setting extends DbObjectBase
comment, database, trace| Constructor and Description |
|---|
Setting(Database database,
int id,
java.lang.String settingName) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkRename()
Check if this object can be renamed.
|
java.lang.String |
getCreateSQL()
Build a SQL statement to re-create this object.
|
java.lang.String |
getCreateSQLForCopy(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
|
java.lang.String |
getDropSQL()
Build a SQL statement to drop this object.
|
int |
getIntValue() |
java.lang.String |
getSQL(boolean alwaysQuote)
Get the SQL name of this object (may be quoted).
|
java.lang.StringBuilder |
getSQL(java.lang.StringBuilder builder,
boolean alwaysQuote)
Appends the SQL name of this object (may be quoted) to the specified
builder.
|
java.lang.String |
getStringValue() |
int |
getType()
Get the object type.
|
void |
removeChildrenAndResources(Session session)
Remove all dependent objects and free all resources (files, blocks in
files) of this object.
|
void |
setIntValue(int value) |
void |
setStringValue(java.lang.String value) |
getChildren, getComment, getDatabase, getId, getModificationId, getName, invalidate, isTemporary, isValid, rename, setComment, setModified, setObjectName, setTemporary, toStringpublic Setting(Database database, int id, java.lang.String settingName)
public java.lang.String getSQL(boolean alwaysQuote)
DbObjectgetSQL in interface DbObjectgetSQL in class DbObjectBasealwaysQuote - quote all identifierspublic java.lang.StringBuilder getSQL(java.lang.StringBuilder builder,
boolean alwaysQuote)
DbObjectgetSQL in interface DbObjectgetSQL in class DbObjectBasebuilder - string builderalwaysQuote - quote all identifierspublic void setIntValue(int value)
public int getIntValue()
public void setStringValue(java.lang.String value)
public java.lang.String getStringValue()
public java.lang.String getCreateSQLForCopy(Table table, java.lang.String quotedName)
DbObjecttable - the new tablequotedName - the quoted namepublic java.lang.String getDropSQL()
DbObjectBasegetDropSQL in interface DbObjectgetDropSQL in class DbObjectBasepublic java.lang.String getCreateSQL()
DbObjectBasegetCreateSQL in interface DbObjectgetCreateSQL in class DbObjectBasepublic int getType()
DbObjectpublic void removeChildrenAndResources(Session session)
DbObjectBaseremoveChildrenAndResources in interface DbObjectremoveChildrenAndResources in class DbObjectBasesession - the sessionpublic void checkRename()
DbObjectBasecheckRename in interface DbObjectcheckRename in class DbObjectBase