public class SimpleDBConnectionImpl extends BasicConnection implements SimpleDBConnection
SimpleDBConnection.SimpleDBAttributeITEM_NAME| Constructor and Description |
|---|
SimpleDBConnectionImpl(String accessKey,
String secretAccessKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
createDomain(String domainName) |
void |
deleteDomain(String domainName) |
Set<SimpleDBConnection.SimpleDBAttribute> |
getAttributeNames(String domainName) |
List<String> |
getDomains() |
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, isAlivepublic void close()
throws javax.resource.ResourceException
close in interface javax.resource.cci.Connectionjavax.resource.ResourceExceptionpublic void createDomain(String domainName) throws TranslatorException
createDomain in interface SimpleDBConnectionTranslatorExceptionpublic void deleteDomain(String domainName) throws TranslatorException
deleteDomain in interface SimpleDBConnectionTranslatorExceptionpublic List<String> getDomains() throws TranslatorException
getDomains in interface SimpleDBConnectionTranslatorExceptionpublic Set<SimpleDBConnection.SimpleDBAttribute> getAttributeNames(String domainName) throws TranslatorException
getAttributeNames in interface SimpleDBConnectionTranslatorExceptionpublic int performDelete(String domainName, String selectExpression) throws TranslatorException
performDelete in interface SimpleDBConnectiondomainName - itemName - TranslatorExceptionpublic com.amazonaws.services.simpledb.model.SelectResult performSelect(String selectExpression, String nextToken) throws TranslatorException
performSelect in interface SimpleDBConnectionselectExpression - columns - TranslatorExceptionpublic int performUpdate(String domainName, Map<String,Object> updateAttributes, String selectExpression) throws TranslatorException
performUpdate in interface SimpleDBConnectiondomainName - items - TranslatorExceptionpublic int performInsert(String domainName, List<Column> columns, Iterator<? extends List<?>> valueList) throws TranslatorException
performInsert in interface SimpleDBConnectiondomainName - itemName - columnsMap - TranslatorExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.