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

public Class AlterUser

extends DefineCommand
Class Inheritance
Imports
org.h2.api.ErrorCode, org.h2.command.CommandInterface, org.h2.engine.Database, .SessionLocal, .User, org.h2.expression.Expression, org.h2.message.DbException

This class represents the statements ALTER USER ADMIN, ALTER USER RENAME, ALTER USER SET PASSWORD

Field Summary

Modifier and TypeField and Description
private boolean
private Expression
private String
private Expression
private Expression
private int
private User
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
setAdmin(boolean admin)

public void
public void
setNewName(String newName)

public void
public void
public void
setType(int type)

public void
setUser(User user)

public long
update()

Overrides org.h2.command.Prepared.update.

Execute the statement.

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

Field Detail

adminback to summary
private boolean admin
hashback to summary
private Expression hash
newNameback to summary
private String newName
passwordback to summary
private Expression password
saltback to summary
private Expression salt
typeback to summary
private int type
userback to summary
private User user

Constructor Detail

AlterUserback to summary
public AlterUser(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
setAdminback to summary
public void setAdmin(boolean admin)
setHashback to summary
public void setHash(Expression e)
setNewNameback to summary
public void setNewName(String newName)
setPasswordback to summary
public void setPassword(Expression password)
setSaltback to summary
public void setSalt(Expression e)
setTypeback to summary
public void setType(int type)
setUserback to summary
public void setUser(User user)
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