Package org.h2.command.ddl
Class AlterUser
java.lang.Object
org.h2.command.Prepared
org.h2.command.ddl.DefineCommand
org.h2.command.ddl.AlterUser
This class represents the statements
ALTER USER ADMIN,
ALTER USER RENAME,
ALTER USER SET PASSWORD
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private Expression
private String
private Expression
private Expression
private int
private 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 -
Method Summary
Modifier and TypeMethodDescriptionint
getType()
Get the command type as defined in CommandInterfacevoid
setAdmin
(boolean admin) void
void
setNewName
(String newName) void
setPassword
(Expression password) void
void
setType
(int type) void
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 Details
-
type
private int type -
user
-
newName
-
password
-
salt
-
hash
-
admin
private boolean admin
-
-
Constructor Details
-
AlterUser
-
-
Method Details
-
setType
public void setType(int type) -
setNewName
-
setUser
-
setAdmin
public void setAdmin(boolean admin) -
setSalt
-
setHash
-
setPassword
-
update
public long update()Description copied from class:Prepared
Execute the statement. -
getType
public int getType()Description copied from class:Prepared
Get the command type as defined in CommandInterface
-