@Override public UpdateItemOutcome updateItem( String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, Collection<Expected> expected, AttributeUpdate... attributeUpdates) { return updateItem(new PrimaryKey(hashKeyName, hashKeyValue, rangeKeyName, rangeKeyValue), expected, attributeUpdates); }
@Override public DeleteItemOutcome deleteItem(String hashKeyName, Object hashKeyValue) { return deleteItem(new PrimaryKey(hashKeyName, hashKeyValue)); }
/** * Adds a hash-only primary key to be included in the batch get-item * operation. * * @param hashKeyName name of the hash key attribute name * @param hashKeyValue name of the hash key value * @return the current instance for method chaining purposes */ public TableKeysAndAttributes addHashOnlyPrimaryKey( String hashKeyName, Object hashKeyValue) { this.addPrimaryKey(new PrimaryKey(hashKeyName, hashKeyValue)); return this; }
/** * Adds a hash-only primary key to be deleted in a batch write * operation. * * @param hashKeyName name of the hash key attribute name * @param hashKeyValue name of the hash key value * @return the current instance for method chaining purposes */ public TableWriteItems addHashOnlyPrimaryKeyToDelete( String hashKeyName, Object hashKeyValue) { this.addPrimaryKeyToDelete(new PrimaryKey(hashKeyName, hashKeyValue)); return this; }
@Override public UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, AttributeUpdate... attributeUpdates) { return updateItem(new PrimaryKey(hashKeyName, hashKeyValue), attributeUpdates); }
@Override public UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, Collection<Expected> expected, AttributeUpdate... attributeUpdates) { return updateItem(new PrimaryKey(hashKeyName, hashKeyValue), expected, attributeUpdates); }
@Override public DeleteItemOutcome deleteItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue) { return deleteItem( new PrimaryKey(hashKeyName, hashKeyValue, rangeKeyName, rangeKeyValue)); }
@Override public DeleteItemOutcome deleteItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, Expected... expected) { return deleteItem( new PrimaryKey(hashKeyName, hashKeyValue, rangeKeyName, rangeKeyValue), expected); }
@Override public UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, AttributeUpdate... attributeUpdates) { return updateItem(new PrimaryKey(hashKeyName, hashKeyValue, rangeKeyName, rangeKeyValue), attributeUpdates); }
@Override public UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, String updateExpression, Map<String, String> nameMap, Map<String, Object> valueMap) { return updateItem(new PrimaryKey(hashKeyName, hashKeyValue, rangeKeyName, rangeKeyValue), updateExpression, nameMap, valueMap); }
@Override public GetItemOutcome getItemOutcome(String hashKeyName, Object hashKeyValue, String projectionExpression, Map<String, String> nameMap) { return getItemOutcome(new PrimaryKey(hashKeyName, hashKeyValue), projectionExpression, nameMap); }
/** * Sets the primary key with the specified hash-only key name and value. */ public AbstractSpecWithPrimaryKey<T> withPrimaryKey(String hashKeyName, Object hashKeyValue) { if (hashKeyName == null) throw new IllegalArgumentException(); withPrimaryKey(new PrimaryKey(hashKeyName, hashKeyValue)); return this; }
@Override public UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, String updateExpression, Map<String, String> nameMap, Map<String, Object> valueMap) { return updateItem(new PrimaryKey(hashKeyName, hashKeyValue), updateExpression, nameMap, valueMap); }
@Override public UpdateItemOutcome updateItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, String updateExpression, String conditionExpression, Map<String, String> nameMap, Map<String, Object> valueMap) { return updateItem(new PrimaryKey(hashKeyName, hashKeyValue, rangeKeyName, rangeKeyValue), updateExpression, conditionExpression, nameMap, valueMap); } }
@Override public DeleteItemOutcome deleteItem(String hashKeyName, Object hashKeyValue, Expected... expected) { return deleteItem(new PrimaryKey(hashKeyName, hashKeyValue), expected); }
@Override public DeleteItemOutcome deleteItem(String hashKeyName, Object hashKeyValue, String conditionExpression, Map<String, String> nameMap, Map<String, Object> valueMap) { return deleteItem(new PrimaryKey(hashKeyName, hashKeyValue), conditionExpression, nameMap, valueMap); }
@Override public DeleteItemOutcome deleteItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, String conditionExpression, Map<String, String> nameMap, Map<String, Object> valueMap) { return deleteItem( new PrimaryKey(hashKeyName, hashKeyValue, rangeKeyName, rangeKeyValue), conditionExpression, nameMap, valueMap); } }
@Override public GetItemOutcome getItemOutcome(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, String projectionExpression, Map<String, String> nameMap) { return getItemOutcome( new PrimaryKey(hashKeyName, hashKeyValue, rangeKeyName, rangeKeyValue), projectionExpression, nameMap); }
@Override public Item getItem(String hashKeyName, Object hashKeyValue, String projectionExpression, Map<String, String> nameMap) { return getItemOutcome(new PrimaryKey(hashKeyName, hashKeyValue), projectionExpression, nameMap).getItem(); }
@Override public Item getItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, String projectionExpression, Map<String, String> nameMap) { return getItemOutcome( new PrimaryKey(hashKeyName, hashKeyValue, rangeKeyName, rangeKeyValue), projectionExpression, nameMap).getItem(); } }