public class WPBAwsSdbAdminDataStorage extends Object implements com.webpagebytes.cms.WPBAdminDataStorage
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_ATRIBUTE |
static String |
CONFIG_ACCESS_KEY |
static String |
CONFIG_DOMAIN |
static String |
CONFIG_ENDPOINT |
static String |
CONFIG_PROTOCOL |
static String |
CONFIG_SECRET_KEY |
protected String |
domainName |
protected com.amazonaws.services.simpledb.AmazonSimpleDBClient |
sdbClient |
static Integer |
STRING_CHUNK_SIZE |
Constructor and Description |
---|
WPBAwsSdbAdminDataStorage() |
Modifier and Type | Method and Description |
---|---|
<T> T |
add(T record) |
<T> T |
addWithKey(T record) |
<T> T |
copyAttributesToInstance(Class<T> kind,
List<com.amazonaws.services.simpledb.model.Attribute> attributes) |
<T> com.amazonaws.services.simpledb.model.PutAttributesRequest |
createAttributesRequests(T object) |
<T> void |
delete(Class<T> dataClass,
String property,
com.webpagebytes.cms.WPBAdminDataStorage.AdminQueryOperator operator,
Object parameter) |
<T> void |
delete(String recordid,
Class<T> dataClass) |
<T> void |
deleteAllRecords(Class<T> dataClass) |
<T> T |
get(String recordid,
Class<T> dataClass) |
<T> List<T> |
getAllRecords(Class<T> dataClass) |
<T> List<T> |
getAllRecords(Class<T> dataClass,
String property,
com.webpagebytes.cms.WPBAdminDataStorage.AdminSortOperator operator) |
void |
initialize(Map<String,String> params) |
<T> List<T> |
query(Class<T> dataClass,
String property,
com.webpagebytes.cms.WPBAdminDataStorage.AdminQueryOperator operator,
Object parameter) |
<T> List<T> |
queryEx(Class<T> dataClass,
Set<String> propertyNames,
Map<String,com.webpagebytes.cms.WPBAdminDataStorage.AdminQueryOperator> operators,
Map<String,Object> values) |
<T> List<T> |
queryWithSort(Class<T> dataClass,
String property,
com.webpagebytes.cms.WPBAdminDataStorage.AdminQueryOperator operator,
Object parameter,
String sortProperty,
com.webpagebytes.cms.WPBAdminDataStorage.AdminSortOperator sortOperator) |
<T> T |
update(T record) |
public static final String CONFIG_ACCESS_KEY
public static final String CONFIG_SECRET_KEY
public static final String CONFIG_PROTOCOL
public static final String CONFIG_ENDPOINT
public static final String CONFIG_DOMAIN
public static final String CLASS_ATRIBUTE
public static final Integer STRING_CHUNK_SIZE
protected com.amazonaws.services.simpledb.AmazonSimpleDBClient sdbClient
protected String domainName
public void initialize(Map<String,String> params) throws com.webpagebytes.cms.exception.WPBIOException
initialize
in interface com.webpagebytes.cms.WPBAdminDataStorage
com.webpagebytes.cms.exception.WPBIOException
public <T> com.amazonaws.services.simpledb.model.PutAttributesRequest createAttributesRequests(T object) throws com.webpagebytes.cms.exception.WPBSerializerException
com.webpagebytes.cms.exception.WPBSerializerException
public <T> T copyAttributesToInstance(Class<T> kind, List<com.amazonaws.services.simpledb.model.Attribute> attributes) throws com.webpagebytes.cms.exception.WPBSerializerException
com.webpagebytes.cms.exception.WPBSerializerException
public <T> void delete(String recordid, Class<T> dataClass) throws com.webpagebytes.cms.exception.WPBIOException
delete
in interface com.webpagebytes.cms.WPBAdminDataStorage
com.webpagebytes.cms.exception.WPBIOException
public <T> void delete(Class<T> dataClass, String property, com.webpagebytes.cms.WPBAdminDataStorage.AdminQueryOperator operator, Object parameter) throws com.webpagebytes.cms.exception.WPBIOException
delete
in interface com.webpagebytes.cms.WPBAdminDataStorage
com.webpagebytes.cms.exception.WPBIOException
public <T> List<T> getAllRecords(Class<T> dataClass) throws com.webpagebytes.cms.exception.WPBIOException
getAllRecords
in interface com.webpagebytes.cms.WPBAdminDataStorage
com.webpagebytes.cms.exception.WPBIOException
public <T> List<T> getAllRecords(Class<T> dataClass, String property, com.webpagebytes.cms.WPBAdminDataStorage.AdminSortOperator operator) throws com.webpagebytes.cms.exception.WPBIOException
getAllRecords
in interface com.webpagebytes.cms.WPBAdminDataStorage
com.webpagebytes.cms.exception.WPBIOException
public <T> T add(T record) throws com.webpagebytes.cms.exception.WPBIOException
add
in interface com.webpagebytes.cms.WPBAdminDataStorage
com.webpagebytes.cms.exception.WPBIOException
public <T> T addWithKey(T record) throws com.webpagebytes.cms.exception.WPBIOException
addWithKey
in interface com.webpagebytes.cms.WPBAdminDataStorage
com.webpagebytes.cms.exception.WPBIOException
public <T> T get(String recordid, Class<T> dataClass) throws com.webpagebytes.cms.exception.WPBIOException
get
in interface com.webpagebytes.cms.WPBAdminDataStorage
com.webpagebytes.cms.exception.WPBIOException
public <T> T update(T record) throws com.webpagebytes.cms.exception.WPBIOException
update
in interface com.webpagebytes.cms.WPBAdminDataStorage
com.webpagebytes.cms.exception.WPBIOException
public <T> List<T> query(Class<T> dataClass, String property, com.webpagebytes.cms.WPBAdminDataStorage.AdminQueryOperator operator, Object parameter) throws com.webpagebytes.cms.exception.WPBIOException
query
in interface com.webpagebytes.cms.WPBAdminDataStorage
com.webpagebytes.cms.exception.WPBIOException
public <T> List<T> queryEx(Class<T> dataClass, Set<String> propertyNames, Map<String,com.webpagebytes.cms.WPBAdminDataStorage.AdminQueryOperator> operators, Map<String,Object> values) throws com.webpagebytes.cms.exception.WPBIOException
queryEx
in interface com.webpagebytes.cms.WPBAdminDataStorage
com.webpagebytes.cms.exception.WPBIOException
public <T> List<T> queryWithSort(Class<T> dataClass, String property, com.webpagebytes.cms.WPBAdminDataStorage.AdminQueryOperator operator, Object parameter, String sortProperty, com.webpagebytes.cms.WPBAdminDataStorage.AdminSortOperator sortOperator) throws com.webpagebytes.cms.exception.WPBIOException
queryWithSort
in interface com.webpagebytes.cms.WPBAdminDataStorage
com.webpagebytes.cms.exception.WPBIOException
public <T> void deleteAllRecords(Class<T> dataClass) throws com.webpagebytes.cms.exception.WPBIOException
deleteAllRecords
in interface com.webpagebytes.cms.WPBAdminDataStorage
com.webpagebytes.cms.exception.WPBIOException
Copyright © 2016. All rights reserved.