V - return value typepublic final class Result<V> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Result.Status |
| Modifier and Type | Method and Description |
|---|---|
static <V> Result<V> |
locked()
Creates a new Result instance with status set to Status.LOCKED.
|
static <V> Result<V> |
ok(V value)
Creates a new Result instance with the specified value with status set to Status.OK.
|
Result.Status |
status()
Returns the status of database update operation.
|
boolean |
success()
Returns true if this result indicates a successful execution i.e status is Status.OK.
|
V |
value()
Returns the return value for the update.
|
public static <V> Result<V> ok(V value)
V - result value typevalue - result valuepublic static <V> Result<V> locked()
V - result value typepublic boolean success()
public Result.Status status()
public V value()
Copyright © 2015. All rights reserved.