fr.cnes.sitools.units.dimension
Class DimensionStoreXML

java.lang.Object
  extended by fr.cnes.sitools.persistence.Paginable<T>
      extended by fr.cnes.sitools.common.store.SitoolsStoreXML<SitoolsDimension>
          extended by fr.cnes.sitools.units.dimension.DimensionStoreXML
All Implemented Interfaces:
SitoolsStore<SitoolsDimension>, java.io.Closeable

public final class DimensionStoreXML
extends SitoolsStoreXML<SitoolsDimension>

Storage of dimensions

Author:
m.marseille (AKKA technologies)

Constructor Summary
DimensionStoreXML(org.restlet.Context context)
          Constructor without file
DimensionStoreXML(java.io.File location, org.restlet.Context context)
          Constructor with file location
 
Method Summary
 java.lang.String getCollectionName()
          Method to implement for collection name
 void init(java.io.File location)
          Initialization with location method to override
 java.util.List<SitoolsDimension> retrieveByParent(java.lang.String id)
          Get the list of object by parent ID
 SitoolsDimension update(SitoolsDimension resource)
          Method for updating a object
 
Methods inherited from class fr.cnes.sitools.common.store.SitoolsStoreXML
create, 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

DimensionStoreXML

public DimensionStoreXML(org.restlet.Context context)
Constructor without file

Parameters:
context - the Restlet Context

DimensionStoreXML

public DimensionStoreXML(java.io.File location,
                         org.restlet.Context context)
Constructor with file location

Parameters:
location - the file location
context - the Restlet Context
Method Detail

update

public SitoolsDimension update(SitoolsDimension resource)
Description copied from interface: SitoolsStore
Method for updating a object

Parameters:
resource - input
Returns:
updated object

retrieveByParent

public java.util.List<SitoolsDimension> retrieveByParent(java.lang.String id)
Description copied from interface: SitoolsStore
Get the list of object by parent ID

Parameters:
id - the parent ID
Returns:
the list of resource objects

init

public void init(java.io.File location)
Description copied from class: Paginable
Initialization with location method to override

Specified by:
init in class Paginable<SitoolsDimension>
Parameters:
location - the file location

getCollectionName

public java.lang.String getCollectionName()
Description copied from class: SitoolsStoreXML
Method to implement for collection name

Specified by:
getCollectionName in class SitoolsStoreXML<SitoolsDimension>
Returns:
the collection name


Copyright © 2010-2013 CNES. All Rights Reserved.