|
||||||||||
| 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<Dictionary>
fr.cnes.sitools.dictionary.DictionaryStoreXML
public final class DictionaryStoreXML
Implementation of DictionaryStore with XStream FilePersistenceStrategy
| Constructor Summary | |
|---|---|
DictionaryStoreXML(org.restlet.Context context)
Default Constructor |
|
DictionaryStoreXML(java.io.File location,
org.restlet.Context context)
Constructor with the XML file location |
|
| Method Summary | |
|---|---|
Dictionary |
create(Dictionary resource)
Method for creating a object |
java.lang.String |
getCollectionName()
Method to implement for collection name |
void |
init(java.io.File location)
XStream FilePersistenceStrategy initialization |
java.util.List<Dictionary> |
retrieveByParent(java.lang.String id)
Get the list of object by parent ID |
Dictionary |
update(Dictionary dictionary)
Method for updating a object |
| Methods inherited from class fr.cnes.sitools.common.store.SitoolsStoreXML |
|---|
delete, getArray, getArray, getArrayByXQuery, getList, retrieve, sort |
| 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 DictionaryStoreXML(java.io.File location,
org.restlet.Context context)
location - directory for file persistencecontext - the Restlet Contextpublic DictionaryStoreXML(org.restlet.Context context)
context - the Restlet Context| Method Detail |
|---|
public void init(java.io.File location)
init in class Paginable<Dictionary>location - Directorypublic Dictionary update(Dictionary dictionary)
SitoolsStore
dictionary - input
public Dictionary create(Dictionary resource)
SitoolsStore
create in interface SitoolsStore<Dictionary>create in class SitoolsStoreXML<Dictionary>resource - input
public java.util.List<Dictionary> retrieveByParent(java.lang.String id)
SitoolsStore
id - the parent ID
public java.lang.String getCollectionName()
SitoolsStoreXML
getCollectionName in class SitoolsStoreXML<Dictionary>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||