|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.xerox.amazonws.simpledb.Domain
public class Domain
This class provides an interface with the Amazon SDB service. It provides methods for listing and deleting items.
Constructor Summary | |
---|---|
protected |
Domain(String domainName,
AWSQueryConnection connection)
|
Method Summary | ||
---|---|---|
SDBResult |
addItem(Item item)
Adds an item. |
|
SDBResult |
addItem(String identifier,
Map<String,Set<String>> attributes,
List<Condition> conditions)
Adds an item. |
|
SDBResult |
batchPutAttributes(List<Item> items)
Batch inserts multiple items w/ attributes |
|
Item |
createItem(String identifier)
This method returns an item object, which exists locally only. |
|
SDBResult |
deleteAttributes(String identifier,
Set<String> attributes,
List<Condition> conditions)
Deletes attributes from an item |
|
SDBResult |
deleteItem(String identifier)
Deletes an item. |
|
AWSQueryConnection |
getConnectionDelegate()
Returns connection object, so connection params can be tweaked |
|
Result<Item> |
getItem(String identifier)
Returns an named item. |
|
ItemCache |
getItemCache()
|
|
SDBResult<DomainMetadata> |
getMetadata()
Returns information about the domain. |
|
String |
getName()
Gets the name of the domain represented by this object. |
|
protected
|
makeRequestInt(org.apache.http.client.methods.HttpRequestBase method,
String action,
Map<String,String> params,
Class<T> respType)
|
|
SDBResult |
replaceAttributes(String identifier,
Map<String,Set<String>> attributes,
List<Condition> conditions)
Replace attributes on an item. |
|
SDBListResult<Item> |
selectItems(String selectExpression,
String nextToken,
boolean consistent)
Performs a query against this domain. |
|
void |
setCacheProvider(ItemCache cache)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Domain(String domainName, AWSQueryConnection connection) throws SDBException
SDBException
Method Detail |
---|
public AWSQueryConnection getConnectionDelegate()
public String getName()
public SDBResult<DomainMetadata> getMetadata() throws SDBException
SDBException
- wraps checked exceptionspublic SDBResult addItem(Item item) throws SDBException
item
- the item to add to this domain
SDBException
- wraps checked exceptionspublic SDBResult addItem(String identifier, Map<String,Set<String>> attributes, List<Condition> conditions) throws SDBException
identifier
- the name of the item to be addedattributes
- the attributes to associate with this itemconditions
- the conditions under which attributes should be put
SDBException
- wraps checked exceptionspublic SDBResult batchPutAttributes(List<Item> items) throws SDBException
attributes
- list of attributes to add
SDBException
- wraps checked exceptionspublic SDBResult replaceAttributes(String identifier, Map<String,Set<String>> attributes, List<Condition> conditions) throws SDBException
identifier
- the name of the item to be addedattributes
- the attributes to associate with this itemconditions
- the conditions under which attributes should be put
SDBException
- wraps checked exceptionspublic SDBResult deleteAttributes(String identifier, Set<String> attributes, List<Condition> conditions) throws SDBException
identifier
- the name of the itemattributes
- the names of the attributes to be deletedconditions
- the conditions under which attributes should be put
SDBException
- wraps checked exceptionspublic SDBResult deleteItem(String identifier) throws SDBException
identifier
- the name of the item to be deleted
SDBException
- wraps checked exceptionspublic Item createItem(String identifier)
identifier
- the name of the item to be deleted
SDBException
- wraps checked exceptionspublic Result<Item> getItem(String identifier) throws SDBException
identifier
- the name of the item to be deleted
SDBException
- wraps checked exceptionspublic SDBListResult<Item> selectItems(String selectExpression, String nextToken, boolean consistent) throws SDBException
selectExpression
- the query to be runnextToken
- an optional token to get more resultsconsistent
- if true, consistency is assured
SDBException
- wraps checked exceptionspublic ItemCache getItemCache()
public void setCacheProvider(ItemCache cache)
protected <T> T makeRequestInt(org.apache.http.client.methods.HttpRequestBase method, String action, Map<String,String> params, Class<T> respType) throws SDBException
SDBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |