public class GetItemImpl extends Object implements GetItemApi
GetItemApi.| Constructor and Description |
|---|
GetItemImpl(AmazonDynamoDB client,
Table table) |
| Modifier and Type | Method and Description |
|---|---|
Item |
getItem(GetItemSpec spec)
Retrieves an item by specifying all the details.
|
Item |
getItem(KeyAttribute... primaryKey)
Retrieves an item by primary key.
|
Item |
getItem(PrimaryKey primaryKey)
Retrieves an item by primary key; or null if the item doesn't exist.
|
Item |
getItem(PrimaryKey primaryKey,
String projectionExpression,
Map<String,String> nameMap)
Retrieves an item using projection expression.
|
Item |
getItem(String hashKeyName,
Object hashKeyValue)
Retrieves an item by primary key when the primary key is a hash-only key.
|
Item |
getItem(String hashKeyName,
Object hashKeyValue,
String projectionExpression,
Map<String,String> nameMap)
Retrieves an item via the specified hash key using projection expression.
|
Item |
getItem(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue)
Retrieves an item by primary key when the primary key consists of both a
hash-key and a range-key.
|
Item |
getItem(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue,
String projectionExpression,
Map<String,String> nameMap)
Retrieves an item via the specified hash key and range key using
projection expression.
|
GetItemOutcome |
getItemOutcome(GetItemSpec spec)
Retrieves an item and the associated information by specifying all the
details.
|
GetItemOutcome |
getItemOutcome(KeyAttribute... primaryKeyComponents)
Retrieves an item and the associated information by primary key when the
primary key is a hash-only key.
|
GetItemOutcome |
getItemOutcome(PrimaryKey primaryKey)
Retrieves an item and the associated information by primary key.
|
GetItemOutcome |
getItemOutcome(PrimaryKey primaryKey,
String projectionExpression,
Map<String,String> nameMap)
Retrieves an item and the associated information using projection
expression.
|
GetItemOutcome |
getItemOutcome(String hashKeyName,
Object hashKeyValue)
Retrieves an item and the associated information by primary key when the
primary key is a hash-only key.
|
GetItemOutcome |
getItemOutcome(String hashKeyName,
Object hashKeyValue,
String projectionExpression,
Map<String,String> nameMap)
Retrieves an item and the associated information via the specified hash
key using projection expression.
|
GetItemOutcome |
getItemOutcome(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue)
Retrieves an item and the associated information by primary key when the
primary key consists of both a hash-key and a range-key.
|
GetItemOutcome |
getItemOutcome(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue,
String projectionExpression,
Map<String,String> nameMap)
Retrieves an item and the associated information via the specified hash
key and range key using projection expression.
|
Table |
getTable()
Returns the owning table.
|
public GetItemImpl(AmazonDynamoDB client, Table table)
public GetItemOutcome getItemOutcome(KeyAttribute... primaryKeyComponents)
GetItemApigetItemOutcome in interface GetItemApipublic GetItemOutcome getItemOutcome(PrimaryKey primaryKey)
GetItemApigetItemOutcome in interface GetItemApipublic GetItemOutcome getItemOutcome(PrimaryKey primaryKey, String projectionExpression, Map<String,String> nameMap)
GetItemApigetItemOutcome in interface GetItemApiprojectionExpression - projection expression, example: "a.b , c[0].e"nameMap - actual values for the attribute-name place holders; can be
null if there is no attribute-name placeholder.public GetItemOutcome getItemOutcome(GetItemSpec spec)
GetItemApigetItemOutcome in interface GetItemApipublic Item getItem(GetItemSpec spec)
GetItemApigetItem in interface GetItemApipublic Item getItem(KeyAttribute... primaryKey)
GetItemApigetItem in interface GetItemApipublic Item getItem(PrimaryKey primaryKey)
GetItemApigetItem in interface GetItemApipublic Item getItem(PrimaryKey primaryKey, String projectionExpression, Map<String,String> nameMap)
GetItemApigetItem in interface GetItemApiprojectionExpression - projection expression, example: "a.b , c[0].e"nameMap - actual values for the attribute-name place holders; can be
null if there is no attribute-name placeholder.public GetItemOutcome getItemOutcome(String hashKeyName, Object hashKeyValue)
GetItemApigetItemOutcome in interface GetItemApipublic GetItemOutcome getItemOutcome(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue)
GetItemApigetItemOutcome in interface GetItemApipublic Item getItem(String hashKeyName, Object hashKeyValue)
GetItemApigetItem in interface GetItemApipublic Item getItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue)
GetItemApigetItem in interface GetItemApipublic GetItemOutcome getItemOutcome(String hashKeyName, Object hashKeyValue, String projectionExpression, Map<String,String> nameMap)
GetItemApigetItemOutcome in interface GetItemApipublic GetItemOutcome getItemOutcome(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, String projectionExpression, Map<String,String> nameMap)
GetItemApigetItemOutcome in interface GetItemApipublic Item getItem(String hashKeyName, Object hashKeyValue, String projectionExpression, Map<String,String> nameMap)
GetItemApigetItem in interface GetItemApipublic Item getItem(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue, String projectionExpression, Map<String,String> nameMap)
GetItemApigetItem in interface GetItemApipublic final Table getTable()