public abstract class AbstractDdbCommand extends Object
Modifier and Type | Field and Description |
---|---|
protected DdbConfiguration |
configuration |
protected com.amazonaws.services.dynamodb.AmazonDynamoDB |
ddbClient |
protected org.apache.camel.Exchange |
exchange |
Constructor and Description |
---|
AbstractDdbCommand(com.amazonaws.services.dynamodb.AmazonDynamoDB ddbClient,
DdbConfiguration configuration,
org.apache.camel.Exchange exchange) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAttributesToResult(Map<String,com.amazonaws.services.dynamodb.model.AttributeValue> attributes) |
protected void |
addToResult(String headerKey,
Object value) |
protected Collection<String> |
determineAttributeNames() |
protected Boolean |
determineConsistentRead() |
protected Map<String,com.amazonaws.services.dynamodb.model.AttributeValue> |
determineItem() |
protected com.amazonaws.services.dynamodb.model.Key |
determineKey() |
protected String |
determineReturnValues() |
protected String |
determineTableName() |
protected Map<String,com.amazonaws.services.dynamodb.model.ExpectedAttributeValue> |
determineUpdateCondition() |
abstract void |
execute() |
protected org.apache.camel.Message |
getMessageForResponse(org.apache.camel.Exchange exchange) |
protected DdbConfiguration configuration
protected org.apache.camel.Exchange exchange
protected com.amazonaws.services.dynamodb.AmazonDynamoDB ddbClient
public AbstractDdbCommand(com.amazonaws.services.dynamodb.AmazonDynamoDB ddbClient, DdbConfiguration configuration, org.apache.camel.Exchange exchange)
public abstract void execute()
protected org.apache.camel.Message getMessageForResponse(org.apache.camel.Exchange exchange)
protected String determineTableName()
protected Map<String,com.amazonaws.services.dynamodb.model.ExpectedAttributeValue> determineUpdateCondition()
protected Map<String,com.amazonaws.services.dynamodb.model.AttributeValue> determineItem()
protected String determineReturnValues()
protected void addAttributesToResult(Map<String,com.amazonaws.services.dynamodb.model.AttributeValue> attributes)
protected com.amazonaws.services.dynamodb.model.Key determineKey()
protected Collection<String> determineAttributeNames()
protected Boolean determineConsistentRead()
Apache Camel