|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.xerox.amazonws.common.AWSConnection com.xerox.amazonws.common.AWSQueryConnection com.xerox.amazonws.sdb.Item
public class Item
This class provides an interface with the Amazon SDB service. It provides methods for listing items and adding/removing attributes.
Field Summary |
---|
Fields inherited from class com.xerox.amazonws.common.AWSConnection |
---|
headers |
Constructor Summary | |
---|---|
protected |
Item(String identifier,
String domainName,
String awsAccessId,
String awsSecretKey,
boolean isSecure,
int port,
String server)
|
Method Summary | ||
---|---|---|
SDBResult |
deleteAttributes(List<ItemAttribute> attributes)
Deletes one or more attributes. |
|
SDBResult |
deleteAttributes(List<ItemAttribute> attributes,
List<Condition> conditions)
Deletes one or more attributes. |
|
List<ItemAttribute> |
getAttributes()
Gets a map of all attributes for this item |
|
List<ItemAttribute> |
getAttributes(List<String> attributes)
Gets selected attributes. |
|
List<ItemAttribute> |
getAttributes(String attributeName)
Deprecated. this didn't work, so I don't expect anyone was using it anyway! |
|
Map<String,List<String>> |
getAttributesMap(List<String> attributes)
Gets selected attributes. |
|
String |
getIdentifier()
Gets the name of the identifier that is unique to this Item |
|
protected
|
makeRequestInt(org.apache.http.client.methods.HttpRequestBase method,
String action,
Map<String,String> params,
Class<T> respType)
|
|
SDBResult |
putAttributes(List<ItemAttribute> attributes)
Creates attributes for this item. |
|
SDBResult |
putAttributes(List<ItemAttribute> attributes,
List<Condition> conditions)
Creates attributes for this item. |
Methods inherited from class com.xerox.amazonws.common.AWSQueryConnection |
---|
close, close, getConnectionManagerTimeout, getConnectionTimeout, getHeaders, getHttpClient, getMaxConnections, getMaxRetries, getServerTimeZone, getSoTimeout, getString, httpDate, makeRequest, setConnectionManagerTimeout, setConnectionTimeout, setHttpClient, setMaxConnections, setMaxRetries, setProxyValues, setProxyValues, setProxyValues, setServerTimeZone, setSoTimeout, useSystemProxy |
Methods inherited from class com.xerox.amazonws.common.AWSConnection |
---|
encode, encode, getAlgorithm, getAwsAccessKeyId, getPort, getResourcePrefix, getSecretAccessKey, getServer, getSignatureVersion, getUrl, isSecure, makeURL, setResourcePrefix, setServer, setSignatureVersion, urlencode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Item(String identifier, String domainName, String awsAccessId, String awsSecretKey, boolean isSecure, int port, String server) throws SDBException
SDBException
Method Detail |
---|
public String getIdentifier()
public List<ItemAttribute> getAttributes() throws SDBException
SDBException
- wraps checked exceptionspublic List<ItemAttribute> getAttributes(String attributeName) throws SDBException
attributeName
- a name that limits the results
SDBException
- wraps checked exceptionspublic List<ItemAttribute> getAttributes(List<String> attributes) throws SDBException
attributes
- name(s) that limits the results
SDBException
- wraps checked exceptionspublic Map<String,List<String>> getAttributesMap(List<String> attributes) throws SDBException
attributes
- name(s) that limits the results
SDBException
- wraps checked exceptionspublic SDBResult putAttributes(List<ItemAttribute> attributes) throws SDBException
attributes
- list of attributes to add
SDBException
- wraps checked exceptionspublic SDBResult putAttributes(List<ItemAttribute> attributes, List<Condition> conditions) throws SDBException
attributes
- list of attributes to addconditions
- the conditions under which attributes should be put
SDBException
- wraps checked exceptionspublic SDBResult deleteAttributes(List<ItemAttribute> attributes) throws SDBException
attributes
- the names of the attributes to be deleted
SDBException
- wraps checked exceptionspublic SDBResult deleteAttributes(List<ItemAttribute> attributes, List<Condition> conditions) throws SDBException
attributes
- the names of the attributes to be deletedconditions
- the conditions under which the delete should happen
SDBException
- wraps checked exceptionsprotected <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 |