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

public Class SetComment

extends DefineCommand
Class Inheritance
Imports
org.h2.api.ErrorCode, org.h2.command.CommandInterface, org.h2.engine.Comment, .Database, .DbObject, .SessionLocal, org.h2.expression.Expression, org.h2.message.DbException, org.h2.schema.Schema, org.h2.table.Table

This class represents the statement COMMENT

Field Summary

Modifier and TypeField and Description
private boolean
private String
private Expression
private String
private int
private String
Inherited from org.h2.command.ddl.DefineCommand:
transactional

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
getType()

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

Get the command type as defined in CommandInterface

public void
setColumn(boolean column)

public void
setColumnName(String columnName)

public void
public void
setObjectName(String objectName)

public void
setObjectType(int objectType)

public void
setSchemaName(String schemaName)

public long
update()

Overrides org.h2.command.Prepared.update.

Execute the statement.

Inherited from org.h2.command.ddl.DefineCommand:
isReadOnlyisRetryableisTransactionalqueryMetasetTransactional

Field Detail

columnback to summary
private boolean column
columnNameback to summary
private String columnName
exprback to summary
private Expression expr
objectNameback to summary
private String objectName
objectTypeback to summary
private int objectType
schemaNameback to summary
private String schemaName

Constructor Detail

SetCommentback to summary
public SetComment(SessionLocal session)

Method Detail

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
setColumnback to summary
public void setColumn(boolean column)
setColumnNameback to summary
public void setColumnName(String columnName)
setCommentExpressionback to summary
public void setCommentExpression(Expression expr)
setObjectNameback to summary
public void setObjectName(String objectName)
setObjectTypeback to summary
public void setObjectType(int objectType)
setSchemaNameback to summary
public void setSchemaName(String schemaName)
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