Top Description Fields Constructors Methods
org.h2.engine

public final Class Setting

extends DbObject
Class Inheritance
Imports
org.h2.message.DbException, .Trace

A persistent database setting.

Field Summary

Modifier and TypeField and Description
private int
private String
Inherited from org.h2.engine.DbObject:
AGGREGATECOMMENTcommentCONSTANTCONSTRAINTdatabaseDOMAINFUNCTION_ALIASINDEXRIGHTROLESCHEMASEQUENCESETTINGSYNONYMTABLE_OR_VIEWtraceTRIGGERUSER

Constructor Summary

AccessConstructor and Description
public
Setting(Database database, int id, String settingName)

Method Summary

Modifier and TypeMethod and Description
public void
checkRename()

Overrides org.h2.engine.DbObject.checkRename.

Check if renaming is allowed.

public String
getCreateSQL()

Implements abstract org.h2.engine.DbObject.getCreateSQL.

Construct the CREATE ...

public int
public String
getSQL(int
formatting flags
sqlFlags
)

Overrides org.h2.engine.DbObject.getSQL.

Overrides default org.h2.util.HasSQL.getSQL.

Get the SQL statement of this expression.

public StringBuilder
getSQL(StringBuilder
string builder
builder
,
int
formatting flags
sqlFlags
)

Overrides org.h2.engine.DbObject.getSQL.

Implements org.h2.util.HasSQL.getSQL.

Appends the SQL statement of this object to the specified builder.

public String
public int
getType()

Implements abstract org.h2.engine.DbObject.getType.

Get the object type.

public void
removeChildrenAndResources(SessionLocal
the session
session
)

Implements abstract org.h2.engine.DbObject.removeChildrenAndResources.

Delete all dependent children objects and resources of this object.

public void
setIntValue(int value)

public void
Inherited from org.h2.engine.DbObject:
getChildrengetCommentgetCreateSQLForCopygetCreateSQLForMetagetDatabasegetDropSQLgetIdgetModificationIdgetNameinvalidateisTemporaryisValidrenamesetCommentsetModifiedsetObjectNamesetTemporarytoString

Field Detail

intValueback to summary
private int intValue
stringValueback to summary
private String stringValue

Constructor Detail

Settingback to summary
public Setting(Database database, int id, String settingName)

Method Detail

checkRenameback to summary
public void checkRename()

Overrides org.h2.engine.DbObject.checkRename.

Doc from org.h2.engine.DbObject.checkRename.

Check if renaming is allowed. Does nothing when allowed.

Annotations
@Override
getCreateSQLback to summary
public String getCreateSQL()

Implements abstract org.h2.engine.DbObject.getCreateSQL.

Doc from org.h2.engine.DbObject.getCreateSQL.

Construct the CREATE ... SQL statement for this object.

Returns:String

the SQL statement

Annotations
@Override
getIntValueback to summary
public int getIntValue()
getSQLback to summary
public String getSQL(int sqlFlags)

Overrides org.h2.engine.DbObject.getSQL.

Overrides default org.h2.util.HasSQL.getSQL.

Doc from org.h2.util.HasSQL.getSQL.

Get the SQL statement of this expression. This may not always be the original SQL statement, specially after optimization.

Parameters
sqlFlags:int

formatting flags

Returns:String

the SQL statement

Annotations
@Override
getSQLback to summary
public StringBuilder getSQL(StringBuilder builder, int sqlFlags)

Overrides org.h2.engine.DbObject.getSQL.

Implements org.h2.util.HasSQL.getSQL.

Doc from org.h2.util.HasSQL.getSQL.

Appends the SQL statement of this object to the specified builder.

Parameters
builder:StringBuilder

string builder

sqlFlags:int

formatting flags

Returns:StringBuilder

the specified string builder

Annotations
@Override
getStringValueback to summary
public String getStringValue()
getTypeback to summary
public int getType()

Implements abstract org.h2.engine.DbObject.getType.

Doc from org.h2.engine.DbObject.getType.

Get the object type.

Returns:int

the object type

Annotations
@Override
removeChildrenAndResourcesback to summary
public void removeChildrenAndResources(SessionLocal session)

Implements abstract org.h2.engine.DbObject.removeChildrenAndResources.

Doc from org.h2.engine.DbObject.removeChildrenAndResources.

Delete all dependent children objects and resources of this object.

Parameters
session:SessionLocal

the session

Annotations
@Override
setIntValueback to summary
public void setIntValue(int value)
setStringValueback to summary
public void setStringValue(String value)