Interface SimpleDBConnection
-
- All Superinterfaces:
Connection
- All Known Implementing Classes:
SimpleDBConnectionImpl
public interface SimpleDBConnection extends Connection
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SimpleDBConnection.SimpleDBAttribute
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
createDomain(String domainName)
Create a domainvoid
deleteDomain(String domainName)
Delete a DomainSet<SimpleDBConnection.SimpleDBAttribute>
getAttributeNames(String domainName)
Get the attributes for given domain nameList<String>
getDomains()
Lists all domains of databaseint
performDelete(String domainName, String selectExpression)
Removes item with given ItemName from domainint
performInsert(String domainName, List<Column> columns, Iterator<? extends List<?>> values)
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-
Methods inherited from interface org.teiid.resource.api.Connection
close
-
-
-
-
Field Detail
-
ITEM_NAME
static final String ITEM_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
createDomain
void createDomain(String domainName) throws TranslatorException
Create a domain- Parameters:
domainName
-- Throws:
TranslatorException
-
deleteDomain
void deleteDomain(String domainName) throws TranslatorException
Delete a Domain- Parameters:
domainName
-- Throws:
TranslatorException
-
getDomains
List<String> getDomains() throws TranslatorException
Lists all domains of database- Returns:
- Throws:
TranslatorException
-
getAttributeNames
Set<SimpleDBConnection.SimpleDBAttribute> getAttributeNames(String domainName) throws TranslatorException
Get the attributes for given domain name- Parameters:
domainName
-- Returns:
- Set of attribute names for given domain
- Throws:
TranslatorException
-
performInsert
int performInsert(String domainName, List<Column> columns, Iterator<? extends List<?>> values) throws TranslatorException
Inserts item into given domain.- Parameters:
domainName
-- Returns:
- Throws:
TranslatorException
-
performSelect
com.amazonaws.services.simpledb.model.SelectResult performSelect(String selectExpression, String nextToken) throws TranslatorException
Performs select expression. This expression must be in format which is understandable to SimpleDB database- Parameters:
selectExpression
-- Throws:
TranslatorException
-
performUpdate
int performUpdate(String domainName, Map<String,Object> updateAttributes, String selectExpression) throws TranslatorException
Performs update on given domain and items- Parameters:
domainName
-- Throws:
TranslatorException
-
performDelete
int performDelete(String domainName, String selectExpression) throws TranslatorException
Removes item with given ItemName from domain- Parameters:
domainName
-- Throws:
TranslatorException
-
-