Top Description Fields Constructors Methods
org.h2.command.dml

public Class Set

extends Prepared
Class Inheritance
Imports
java.text.Collator, org.h2.api.ErrorCode, org.h2.command.CommandInterface, .ParserBase, .Prepared, org.h2.engine.Constants, .Database, .Mode, .SessionLocal, .Setting, org.h2.expression.Expression, .TimeZoneOperation, .ValueExpression, org.h2.message.DbException, .Trace, org.h2.mode.DefaultNullOrdering, org.h2.result.ResultInterface, org.h2.schema.Schema, org.h2.security.auth.AuthenticatorFactory, org.h2.table.Table, org.h2.util.DateTimeUtils, .StringUtils, .TimeZoneProvider, org.h2.value.CompareMode, .DataType, .Value, .ValueInteger, .ValueNull

This class represents the statement SET

Field Summary

Modifier and TypeField and Description
private Expression
private String
private String[]
private final int
Inherited from org.h2.command.Prepared:
createparametersprepareAlwayssessionsqlStatementsqlTokens

Constructor Summary

AccessConstructor and Description
public
Set(SessionLocal session, int type)

Method Summary

Modifier and TypeMethod and Description
private void
private void
addOrUpdateSetting(SessionLocal session, String name, String s, int v)

private int
public int
getType()

Implements abstract org.h2.command.Prepared.getType.

Get the command type as defined in CommandInterface

public boolean
isTransactional()

Implements abstract org.h2.command.Prepared.isTransactional.

Check if this command is transactional.

public boolean
needRecompile()

Overrides org.h2.command.Prepared.needRecompile.

Check if the statement needs to be re-compiled.

private static TimeZoneProvider
public ResultInterface
queryMeta()

Implements abstract org.h2.command.Prepared.queryMeta.

Get an empty result set containing the meta data.

public void
public void
setInt(int value)

public void
public void
public long
update()

Overrides org.h2.command.Prepared.update.

Execute the statement.

Inherited from org.h2.command.Prepared:
checkCanceledcheckParameterscollectDependenciesgetCurrentRowNumbergetDatabasegetObjectIdgetParametersgetPersistedObjectIdgetPlanSQLgetPlanSQLgetSessiongetSimpleSQLgetSQLgetSQLTokensisCacheableisQueryisReadOnlyisRetryableisWithParamValuespreparequerysetCommandsetCurrentRowNumbersetParameterListsetPersistedObjectIdsetPrepareAlwayssetRowsetSessionsetSQLsetWithParamValuestoString

Field Detail

expressionback to summary
private Expression expression
stringValueback to summary
private String stringValue
stringValueListback to summary
private String[] stringValueList
typeback to summary
private final int type

Constructor Detail

Setback to summary
public Set(SessionLocal session, int type)

Method Detail

addOrUpdateSettingback to summary
private void addOrUpdateSetting(String name, String s, int v)
addOrUpdateSettingback to summary
private void addOrUpdateSetting(SessionLocal session, String name, String s, int v)
getIntValueback to summary
private int getIntValue()
getTypeback to summary
public int getType()

Implements abstract org.h2.command.Prepared.getType.

Doc from org.h2.command.Prepared.getType.

Get the command type as defined in CommandInterface

Returns:int

the statement type

Annotations
@Override
isTransactionalback to summary
public boolean isTransactional()

Implements abstract org.h2.command.Prepared.isTransactional.

Doc from org.h2.command.Prepared.isTransactional.

Check if this command is transactional. If it is not, then it forces the current transaction to commit.

Returns:boolean

true if it is

Annotations
@Override
needRecompileback to summary
public boolean needRecompile()

Overrides org.h2.command.Prepared.needRecompile.

Doc from org.h2.command.Prepared.needRecompile.

Check if the statement needs to be re-compiled.

Returns:boolean

true if it must

Annotations
@Override
parseTimeZoneback to summary
private static TimeZoneProvider parseTimeZone(Value v)
queryMetaback to summary
public ResultInterface queryMeta()

Implements abstract org.h2.command.Prepared.queryMeta.

Doc from org.h2.command.Prepared.queryMeta.

Get an empty result set containing the meta data.

Returns:ResultInterface

the result set

Annotations
@Override
setExpressionback to summary
public void setExpression(Expression expression)
setIntback to summary
public void setInt(int value)
setStringback to summary
public void setString(String v)
setStringArrayback to summary
public void setStringArray(String[] list)
updateback to summary
public long update()

Overrides org.h2.command.Prepared.update.

Doc from org.h2.command.Prepared.update.

Execute the statement.

Returns:long

the update count

Annotations
@Override