Package com.mongodb.operation
Class UserExistsOperation
- java.lang.Object
-
- com.mongodb.operation.UserExistsOperation
-
- All Implemented Interfaces:
AsyncReadOperation<Boolean>
,ReadOperation<Boolean>
Deprecated.useCommandWriteOperation
directly or the mongod shell helpers.
@Deprecated public class UserExistsOperation extends Object implements AsyncReadOperation<Boolean>, ReadOperation<Boolean>
An operation that determines if a user exists.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description UserExistsOperation(String databaseName, String userName)
Deprecated.Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Boolean
execute(ReadBinding binding)
Deprecated.General execute which can return anything of type Tvoid
executeAsync(AsyncReadBinding binding, SingleResultCallback<Boolean> callback)
Deprecated.General execute which can return anything of type T
-
-
-
Method Detail
-
execute
public Boolean execute(ReadBinding binding)
Deprecated.Description copied from interface:ReadOperation
General execute which can return anything of type T- Specified by:
execute
in interfaceReadOperation<Boolean>
- Parameters:
binding
- the binding to execute in the context of- Returns:
- T, the result of the execution
-
executeAsync
public void executeAsync(AsyncReadBinding binding, SingleResultCallback<Boolean> callback)
Deprecated.Description copied from interface:AsyncReadOperation
General execute which can return anything of type T- Specified by:
executeAsync
in interfaceAsyncReadOperation<Boolean>
- Parameters:
binding
- the binding to execute in the context ofcallback
- the callback to be called when the operation has been executed
-
-