@Override public DeleteItemSpec withPrimaryKey(KeyAttribute ... components) { super.withPrimaryKey(components); return this; }
@Override public UpdateItemSpec withPrimaryKey(String hashKeyName, Object hashKeyValue) { super.withPrimaryKey(hashKeyName, hashKeyValue); return this; }
@Override public DeleteItemSpec withPrimaryKey(PrimaryKey primaryKey) { super.withPrimaryKey(primaryKey); return this; }
@Override public DeleteItemSpec withPrimaryKey(String hashKeyName, Object hashKeyValue) { super.withPrimaryKey(hashKeyName, hashKeyValue); return this; }
@Override public UpdateItemSpec withPrimaryKey(KeyAttribute ... components) { super.withPrimaryKey(components); return this; }
@Override public UpdateItemSpec withPrimaryKey(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue) { super.withPrimaryKey(hashKeyName, hashKeyValue, rangeKeyName, rangeKeyValue); return this; }
@Override public GetItemSpec withPrimaryKey(KeyAttribute ... components) { super.withPrimaryKey(components); return this; }
@Override public GetItemSpec withPrimaryKey(String hashKeyName, Object hashKeyValue) { super.withPrimaryKey(hashKeyName, hashKeyValue); return this; }
@Override public GetItemSpec withPrimaryKey(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue) { super.withPrimaryKey(hashKeyName, hashKeyValue, rangeKeyName, rangeKeyValue); return this; }
@Override public UpdateItemSpec withPrimaryKey(PrimaryKey primaryKey) { super.withPrimaryKey(primaryKey); return this; }
@Override public GetItemSpec withPrimaryKey(PrimaryKey primaryKey) { super.withPrimaryKey(primaryKey); return this; }
@Override public DeleteItemSpec withPrimaryKey(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue) { super.withPrimaryKey(hashKeyName, hashKeyValue, rangeKeyName, rangeKeyValue); return this; }
/** * 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; }
/** * Sets the primary key with the specified hash key and range key. */ public AbstractSpecWithPrimaryKey<T> withPrimaryKey(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue) { if (hashKeyName == null) throw new IllegalArgumentException("Invalid hash key name"); if (rangeKeyName == null) throw new IllegalArgumentException("Invalid range key name"); if (hashKeyName.equals(rangeKeyName)) throw new IllegalArgumentException("Names of hash and range keys must not be the same"); withPrimaryKey(new PrimaryKey(hashKeyName, hashKeyValue, rangeKeyName, rangeKeyValue)); return this; } }
@Override public UpdateItemSpec withPrimaryKey(KeyAttribute ... components) { super.withPrimaryKey(components); return this; }
@Override public UpdateItemSpec withPrimaryKey(String hashKeyName, Object hashKeyValue) { super.withPrimaryKey(hashKeyName, hashKeyValue); return this; }
@Override public DeleteItemSpec withPrimaryKey(String hashKeyName, Object hashKeyValue) { super.withPrimaryKey(hashKeyName, hashKeyValue); return this; }
@Override public DeleteItemSpec withPrimaryKey(PrimaryKey primaryKey) { super.withPrimaryKey(primaryKey); return this; }
@Override public DeleteItemSpec withPrimaryKey(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue) { super.withPrimaryKey(hashKeyName, hashKeyValue, rangeKeyName, rangeKeyValue); return this; }
/** * 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; }