@Immutable public interface Table
To get data from the table use frame()
method. To
create a new item in the table (or replace the existing one) use
Table#put(Attributes)
method. For example:
Region region = new Region.Simple(...); Table table = region.table("employees"); table.put(new Attributes().with("name", "John Smith")); for (Item item : table.frame()) { System.out.println("Name: " + item.get("name").getS()); } table.frame() .where("name", Conditions.equalTo("John Smith")) .iterator().next().remove();
Modifier and Type | Method and Description |
---|---|
Frame |
frame()
Make a new frame, in order to retrieve items.
|
String |
name()
Get real table name.
|
Item |
put(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> attributes)
Put new item there.
|
Region |
region()
Get back to the entire region.
|
@NotNull(message="item is never NULL") Item put(@NotNull(message="map of attributes can\'t be NULL") Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> attributes)
It is recommended to use Attributes
supplementary class,
instead of a raw Map
.
attributes
- Attributes to saveAttributes
@NotNull(message="frame is never NULL") Frame frame()
@NotNull(message="region is never NULL") Region region()
Copyright © 2012–2014 jcabi.com. All rights reserved.