複数のアイテムを追加したいときはbatchPutAttributesを使います。
AmazonSimpleDB sdb = new AmazonSimpleDBClient(new AWSCredentials() {
@Override
public String getAWSSecretKey() {
return "********************";
}
@Override
public String getAWSAccessKeyId() {
return "********************";
}
});
List<ReplaceableItem> putData = new ArrayList<ReplaceableItem>();
ReplaceableAttributeList attr1 ; //追加したい属性を入れる
ReplaceableAttributeList attr2 ;
putData.add(new ReplaceableItem(ItemName1)
.withAttributes(attr1));
putData.add(new ReplaceableItem(ItemName2)
.withAttributes(attr2));
sdb.batchPutAttributes(new BatchPutAttributesRequest(
domainName,
putData));
最大25件まで同時に追加することが出来ます。


