public class SimpleDBConnectionImpl extends BasicConnection implements SimpleDBConnection
SimpleDBConnection.SimpleDBAttribute
ITEM_NAME
Constructor and Description |
---|
SimpleDBConnectionImpl(String accessKey,
String secretAccessKey) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
createDomain(String domainName)
Create a domain
|
void |
deleteDomain(String domainName)
Delete a Domain
|
Set<SimpleDBConnection.SimpleDBAttribute> |
getAttributeNames(String domainName)
Get the attributes for given domain name
|
List<String> |
getDomains()
Lists all domains of database
|
int |
performDelete(String domainName,
String selectExpression)
Removes item with given ItemName from domain
|
int |
performInsert(String domainName,
List<Column> columns,
Iterator<? extends List<?>> valueList)
Inserts item into given domain.
|
com.amazonaws.services.simpledb.model.SelectResult |
performSelect(String selectExpression,
String nextToken)
Performs select expression.
|
int |
performUpdate(String domainName,
Map<String,Object> updateAttributes,
String selectExpression)
Performs update on given domain and items
|
cleanUp, createInteraction, getLocalTransaction, getMetaData, getResultSetInfo, getXAResource, isAlive
public void close() throws javax.resource.ResourceException
close
in interface javax.resource.cci.Connection
javax.resource.ResourceException
public void createDomain(String domainName) throws TranslatorException
SimpleDBConnection
createDomain
in interface SimpleDBConnection
TranslatorException
public void deleteDomain(String domainName) throws TranslatorException
SimpleDBConnection
deleteDomain
in interface SimpleDBConnection
TranslatorException
public List<String> getDomains() throws TranslatorException
SimpleDBConnection
getDomains
in interface SimpleDBConnection
TranslatorException
public Set<SimpleDBConnection.SimpleDBAttribute> getAttributeNames(String domainName) throws TranslatorException
SimpleDBConnection
getAttributeNames
in interface SimpleDBConnection
TranslatorException
public int performDelete(String domainName, String selectExpression) throws TranslatorException
performDelete
in interface SimpleDBConnection
domainName
- itemName
- TranslatorException
public com.amazonaws.services.simpledb.model.SelectResult performSelect(String selectExpression, String nextToken) throws TranslatorException
performSelect
in interface SimpleDBConnection
selectExpression
- columns
- TranslatorException
public int performUpdate(String domainName, Map<String,Object> updateAttributes, String selectExpression) throws TranslatorException
performUpdate
in interface SimpleDBConnection
domainName
- items
- TranslatorException
public int performInsert(String domainName, List<Column> columns, Iterator<? extends List<?>> valueList) throws TranslatorException
performInsert
in interface SimpleDBConnection
domainName
- itemName
- columnsMap
- TranslatorException
Copyright © 2017 JBoss by Red Hat. All rights reserved.