|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.cnes.sitools.persistence.Paginable<T>
fr.cnes.sitools.common.store.SitoolsStoreXML<Order>
fr.cnes.sitools.order.OrderStoreXML
public final class OrderStoreXML
Implementation of OrderStore with XStream FilePersistenceStrategy
| Constructor Summary | |
|---|---|
OrderStoreXML(org.restlet.Context context)
Default constructor |
|
OrderStoreXML(java.io.File location,
org.restlet.Context context)
Constructor with the XML file location |
|
| Method Summary | |
|---|---|
Order |
create(Order order)
Method for creating a object |
java.lang.String |
getCollectionName()
Method to implement for collection name |
java.util.List<Order> |
getList(ResourceCollectionFilter filter)
Method for getting objects with specific criteria |
void |
init(java.io.File location)
XStream FilePersistenceStrategy initialization |
java.util.List<Order> |
retrieveByParent(java.lang.String id)
Get the list of object by parent ID |
void |
sort(java.util.List<Order> result,
ResourceCollectionFilter filter)
Sort the list (by default on the name) |
Order |
update(Order order)
Method for updating a object |
| Methods inherited from class fr.cnes.sitools.common.store.SitoolsStoreXML |
|---|
delete, getArray, getArray, getArrayByXQuery, retrieve |
| Methods inherited from class fr.cnes.sitools.persistence.Paginable |
|---|
close, getList, getListByXQuery, getLog, getPage, getPaginableClass, getRawList, init, setList |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fr.cnes.sitools.common.store.SitoolsStore |
|---|
getList, getListByXQuery, getPage |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Constructor Detail |
|---|
public OrderStoreXML(java.io.File location,
org.restlet.Context context)
location - directory of FilePersistenceStrategycontext - the contextpublic OrderStoreXML(org.restlet.Context context)
context - the context| Method Detail |
|---|
public Order create(Order order)
SitoolsStore
create in interface SitoolsStore<Order>create in class SitoolsStoreXML<Order>order - input
public Order update(Order order)
SitoolsStore
order - input
public java.util.List<Order> getList(ResourceCollectionFilter filter)
SitoolsStore
getList in interface SitoolsStore<Order>getList in class SitoolsStoreXML<Order>filter - criteria (pagination, ...)
public void sort(java.util.List<Order> result,
ResourceCollectionFilter filter)
sort in class SitoolsStoreXML<Order>result - list to be sortedfilter - ResourceCollectionFilter with sort properties.public void init(java.io.File location)
init in class Paginable<Order>location - Directorypublic java.util.List<Order> retrieveByParent(java.lang.String id)
SitoolsStore
id - the parent ID
public java.lang.String getCollectionName()
SitoolsStoreXML
getCollectionName in class SitoolsStoreXML<Order>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||