public class UserExistsOperation extends java.lang.Object implements AsyncReadOperation<java.lang.Boolean>, ReadOperation<java.lang.Boolean>
| 构造器和说明 |
|---|
UserExistsOperation(java.lang.String databaseName,
java.lang.String userName)
Construct a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Boolean |
execute(ReadBinding binding)
General execute which can return anything of type T
|
void |
executeAsync(AsyncReadBinding binding,
SingleResultCallback<java.lang.Boolean> callback)
General execute which can return anything of type T
|
public UserExistsOperation(java.lang.String databaseName,
java.lang.String userName)
databaseName - the name of the database for the operation.userName - the name of the user to check if they exist.public java.lang.Boolean execute(ReadBinding binding)
ReadOperationexecute 在接口中 ReadOperation<java.lang.Boolean>binding - the binding to execute in the context ofpublic void executeAsync(AsyncReadBinding binding, SingleResultCallback<java.lang.Boolean> callback)
AsyncReadOperationexecuteAsync 在接口中 AsyncReadOperation<java.lang.Boolean>binding - the binding to execute in the context ofcallback - the callback to be called when the operation has been executed