public interface Update<T extends Pojo> extends DataModifyingStatement<T>
DEFAULT_STATUS_FAILURE, DEFAULT_STATUS_SUCCESS
Modifier and Type | Method and Description |
---|---|
int |
apply()
Applies this update operation.
|
void |
set(String key,
Object value)
Sets a field in a found record to the specified value.
|
void |
where(Expression expr)
Given a boolean expression, this method specifies a where condition for
this update operation.
|
getRawDuplicate
void where(Expression expr)
StorageException
may get thrown.expr
- A boolean expression.void set(String key, Object value)
key
- the name of the field to update.value
- the value with which to update the field.int apply()
apply
in interface DataModifyingStatement<T extends Pojo>
StorageException
- if this operation failsCopyright © 2015. All rights reserved.