fr.cnes.sitools.datasource.jdbc
Class JDBCDataSourceStoreXML

java.lang.Object
  extended by fr.cnes.sitools.persistence.Paginable<T>
      extended by fr.cnes.sitools.common.store.SitoolsStoreXML<JDBCDataSource>
          extended by fr.cnes.sitools.datasource.jdbc.JDBCDataSourceStoreXML
All Implemented Interfaces:
SitoolsStore<JDBCDataSource>, java.io.Closeable

public final class JDBCDataSourceStoreXML
extends SitoolsStoreXML<JDBCDataSource>

TODO Voir comment faire un store AbstractDataSource et un store de JDBCDataSource

Author:
AKKA

Constructor Summary
JDBCDataSourceStoreXML(org.restlet.Context context)
          Default constructor
JDBCDataSourceStoreXML(java.io.File location, org.restlet.Context context)
          Constructor with the XML file location
 
Method Summary
 java.lang.String getCollectionName()
          Method to implement for collection name
 void init(java.io.File location)
          XStream FilePersistenceStrategy initialization
 java.util.List<JDBCDataSource> retrieveByParent(java.lang.String id)
          Get the list of object by parent ID
 JDBCDataSource update(JDBCDataSource datasource)
          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

JDBCDataSourceStoreXML

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

Parameters:
location - Directory for file persistence
context - the Restlet Context

JDBCDataSourceStoreXML

public JDBCDataSourceStoreXML(org.restlet.Context context)
Default constructor

Parameters:
context - the Restlet Context
Method Detail

update

public JDBCDataSource update(JDBCDataSource datasource)
Description copied from interface: SitoolsStore
Method for updating a object

Parameters:
datasource - input
Returns:
updated object

init

public void init(java.io.File location)
XStream FilePersistenceStrategy initialization

Specified by:
init in class Paginable<JDBCDataSource>
Parameters:
location - Directory

retrieveByParent

public java.util.List<JDBCDataSource> 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

getCollectionName

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

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


Copyright © 2010-2013 CNES. All Rights Reserved.