Package org.h2.command.ddl
Class AlterUser
- java.lang.Object
-
- org.h2.command.Prepared
-
- org.h2.command.ddl.DefineCommand
-
- org.h2.command.ddl.AlterUser
-
public class AlterUser extends DefineCommand
This class represents the statements ALTER USER ADMIN, ALTER USER RENAME, ALTER USER SET PASSWORD
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
admin
private Expression
hash
private java.lang.String
newName
private Expression
password
private Expression
salt
private int
type
private User
user
-
Fields inherited from class org.h2.command.ddl.DefineCommand
transactional
-
Fields inherited from class org.h2.command.Prepared
create, parameters, prepareAlways, session, sqlStatement, sqlTokens
-
-
Constructor Summary
Constructors Constructor Description AlterUser(SessionLocal session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getType()
Get the command type as defined in CommandInterfacevoid
setAdmin(boolean admin)
void
setHash(Expression e)
void
setNewName(java.lang.String newName)
void
setPassword(Expression password)
void
setSalt(Expression e)
void
setType(int type)
void
setUser(User user)
long
update()
Execute the statement.-
Methods inherited from class org.h2.command.ddl.DefineCommand
isReadOnly, isTransactional, queryMeta, setTransactional
-
Methods inherited from class org.h2.command.Prepared
checkCanceled, checkParameters, collectDependencies, getCteCleanups, getCurrentRowNumber, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, toString
-
-
-
-
Field Detail
-
type
private int type
-
user
private User user
-
newName
private java.lang.String newName
-
password
private Expression password
-
salt
private Expression salt
-
hash
private Expression hash
-
admin
private boolean admin
-
-
Constructor Detail
-
AlterUser
public AlterUser(SessionLocal session)
-
-
Method Detail
-
setType
public void setType(int type)
-
setNewName
public void setNewName(java.lang.String newName)
-
setUser
public void setUser(User user)
-
setAdmin
public void setAdmin(boolean admin)
-
setSalt
public void setSalt(Expression e)
-
setHash
public void setHash(Expression e)
-
setPassword
public void setPassword(Expression password)
-
update
public long update()
Description copied from class:Prepared
Execute the statement.
-
-