@Immutable
public interface Item
The class is immutable, which means that every call to
put(String,AttributeValue)
or #put(Attributes)
changes
data in Amazon, but doesn't change the object. The object will contain
dirty data right after PUT operation, and should not be used any more.
Modifier and Type | Method and Description |
---|---|
Frame |
frame()
Get back to the frame it is from.
|
com.amazonaws.services.dynamodbv2.model.AttributeValue |
get(String name)
Get one attribute, fetching directly from AWS (runtime exception if
the attribute is absent, use
has(String) first). |
boolean |
has(String name)
Does this attribute exist?
|
void |
put(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> attrs)
Change all attributes in one call.
|
void |
put(String name,
com.amazonaws.services.dynamodbv2.model.AttributeValue value)
Change one attribute, immediately saving it to AWS (all other attributes
will be set to NULL, except primary keys).
|
@NotNull(message="attribute value is never NULL") com.amazonaws.services.dynamodbv2.model.AttributeValue get(@NotNull(message="attribute name can\'t be NULL") String name)
has(String)
first).name
- Attribute nameboolean has(@NotNull(message="attribute name can\'t be NULL") String name)
name
- Attribute namevoid put(@NotNull(message="attribute name can\'t be NULL") String name, @NotNull(message="value can\'t be NULL") com.amazonaws.services.dynamodbv2.model.AttributeValue value)
Data in memory will become out of sync right after a successful execution of the method.
name
- Attribute namevalue
- Value to savevoid put(@NotNull(message="map attributes can\'t be NULL") Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> attrs)
Data in memory will become out of sync right after a successful execution of the method.
attrs
- AttributesCopyright © 2012–2013 jcabi.com. All rights reserved.