提交 b3f0513a authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 cbcdff05
...@@ -77,10 +77,10 @@ public interface DatabaseEventListener extends EventListener { ...@@ -77,10 +77,10 @@ public interface DatabaseEventListener extends EventListener {
* This method is called for long running events, such as recovering, * This method is called for long running events, such as recovering,
* scanning a file or building an index. * scanning a file or building an index.
* *
* @param state - the state * @param state the state
* @param name - the object name * @param name the object name
* @param x - the current position * @param x the current position
* @param max - the highest value * @param max the highest value
*/ */
void setProgress(int state, String name, int x, int max); void setProgress(int state, String name, int x, int max);
......
...@@ -122,7 +122,7 @@ public abstract class Command implements CommandInterface { ...@@ -122,7 +122,7 @@ public abstract class Command implements CommandInterface {
/** /**
* Execute a query and return a local result set. * Execute a query and return a local result set.
* This method prepares everything and calls {@link query} finally. * This method prepares everything and calls {@link #query(int)} finally.
* *
* @param maxrows the maximum number of rows to return * @param maxrows the maximum number of rows to return
* @return the local result set * @return the local result set
......
...@@ -23,7 +23,21 @@ import org.h2.util.ByteUtils; ...@@ -23,7 +23,21 @@ import org.h2.util.ByteUtils;
*/ */
public class AlterUser extends DefineCommand { public class AlterUser extends DefineCommand {
public static final int SET_PASSWORD = 0, RENAME = 1, ADMIN = 2; /**
* The command type to set the password.
*/
public static final int SET_PASSWORD = 0;
/**
* The command type to rename the user.
*/
public static final int RENAME = 1;
/**
* The command type to change the admin flag.
*/
public static final int ADMIN = 2;
private int type; private int type;
private User user; private User user;
private String newName; private String newName;
......
...@@ -26,7 +26,16 @@ import org.h2.util.ObjectArray; ...@@ -26,7 +26,16 @@ import org.h2.util.ObjectArray;
*/ */
public class GrantRevoke extends DefineCommand { public class GrantRevoke extends DefineCommand {
public static final int GRANT = 0, REVOKE = 1; /**
* The operation type to grant a right.
*/
public static final int GRANT = 0;
/**
* The operation type to revoke a right.
*/
public static final int REVOKE = 1;
private ObjectArray roleNames; private ObjectArray roleNames;
private int operationType; private int operationType;
private int rightMask; private int rightMask;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论