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 booleanprivate Expressionprivate Stringprivate Expressionprivate Expressionprivate intprivate UserFields inherited from class DefineCommand
transactionalFields inherited from class Prepared
create, parameters, prepareAlways, session, sqlStatement, sqlTokens -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetType()Get the command type as defined in CommandInterfacevoidsetAdmin(boolean admin) voidvoidsetNewName(String newName) voidsetPassword(Expression password) voidvoidsetType(int type) voidlongupdate()Execute the statement.Methods inherited from class DefineCommand
isReadOnly, isTransactional, queryMeta, setTransactionalMethods inherited from class 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
-
getType
-