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)
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, isAlivepublic void close()
throws javax.resource.ResourceException
close in interface javax.resource.cci.Connectionjavax.resource.ResourceExceptionpublic void createDomain(String domainName) throws TranslatorException
SimpleDBConnectioncreateDomain in interface SimpleDBConnectionTranslatorExceptionpublic void deleteDomain(String domainName) throws TranslatorException
SimpleDBConnectiondeleteDomain in interface SimpleDBConnectionTranslatorExceptionpublic List<String> getDomains() throws TranslatorException
SimpleDBConnectiongetDomains in interface SimpleDBConnectionTranslatorExceptionpublic Set<SimpleDBConnection.SimpleDBAttribute> getAttributeNames(String domainName) throws TranslatorException
SimpleDBConnectiongetAttributeNames 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 © 2017 JBoss by Red Hat. All rights reserved.