Class AbstractSpecWithPrimaryKey<T extends AmazonWebServiceRequest>
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.document.spec.AbstractSpecWithPrimaryKey<T>
-
- Direct Known Subclasses:
DeleteItemSpec
,GetItemSpec
,UpdateItemSpec
public class AbstractSpecWithPrimaryKey<T extends AmazonWebServiceRequest> extends Object
Common base class for parameter specification that involves a primary key.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSpecWithPrimaryKey(T request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<KeyAttribute>
getKeyComponents()
Returns the primary key components that has been specified.ProgressListener
getProgressListener()
T
getRequest()
Internal method.RequestMetricCollector
getRequestMetricCollector()
void
setProgressListener(ProgressListener progressListener)
void
setRequestMetricCollector(RequestMetricCollector requestMetricCollector)
AbstractSpecWithPrimaryKey<T>
withPrimaryKey(KeyAttribute... components)
Sets the primary key with the specified key components.AbstractSpecWithPrimaryKey<T>
withPrimaryKey(PrimaryKey primaryKey)
Sets the primary key.AbstractSpecWithPrimaryKey<T>
withPrimaryKey(String hashKeyName, Object hashKeyValue)
Sets the primary key with the specified hash-only key name and value.AbstractSpecWithPrimaryKey<T>
withPrimaryKey(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue)
Sets the primary key with the specified hash key and range key.com.amazonaws.services.dynamodbv2.document.spec.AbstractSpec<T>
withProgressListener(ProgressListener progressListener)
com.amazonaws.services.dynamodbv2.document.spec.AbstractSpec<T>
withRequestMetricCollector(RequestMetricCollector requestMetricCollector)
-
-
-
Constructor Detail
-
AbstractSpecWithPrimaryKey
protected AbstractSpecWithPrimaryKey(T request)
-
-
Method Detail
-
getKeyComponents
public final Collection<KeyAttribute> getKeyComponents()
Returns the primary key components that has been specified.
-
withPrimaryKey
public AbstractSpecWithPrimaryKey<T> withPrimaryKey(KeyAttribute... components)
Sets the primary key with the specified key components.
-
withPrimaryKey
public AbstractSpecWithPrimaryKey<T> withPrimaryKey(PrimaryKey primaryKey)
Sets the primary key.
-
withPrimaryKey
public AbstractSpecWithPrimaryKey<T> withPrimaryKey(String hashKeyName, Object hashKeyValue)
Sets the primary key with the specified hash-only key name and value.
-
withPrimaryKey
public AbstractSpecWithPrimaryKey<T> withPrimaryKey(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue)
Sets the primary key with the specified hash key and range key.
-
getRequest
public T getRequest()
Internal method. Not meant to be called directly. May change without notice.
-
getProgressListener
public ProgressListener getProgressListener()
-
setProgressListener
public void setProgressListener(ProgressListener progressListener)
-
getRequestMetricCollector
public RequestMetricCollector getRequestMetricCollector()
-
setRequestMetricCollector
public void setRequestMetricCollector(RequestMetricCollector requestMetricCollector)
-
withProgressListener
public com.amazonaws.services.dynamodbv2.document.spec.AbstractSpec<T> withProgressListener(ProgressListener progressListener)
-
withRequestMetricCollector
public com.amazonaws.services.dynamodbv2.document.spec.AbstractSpec<T> withRequestMetricCollector(RequestMetricCollector requestMetricCollector)
-
-