com.ebmwebsourcing.petalsview.service.dataloader
Class DataLoaderImpl

java.lang.Object
  extended by com.ebmwebsourcing.petalsview.service.dataloader.DataLoaderImpl
All Implemented Interfaces:
Dataloader

@Service(value="dataloader")
public class DataLoaderImpl
extends java.lang.Object
implements Dataloader


Constructor Summary
DataLoaderImpl()
           
 
Method Summary
 void loadDataset(java.io.InputStream datasetStream)
          Fill the database with information extracted from the given XML dataset, provided as an InputStream.
 void loadDataSet(java.lang.String xmlDataSetLocation)
          Fill the database with information extracted from the given XML dataset, referenced by the given URI String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataLoaderImpl

public DataLoaderImpl()
Method Detail

loadDataSet

public void loadDataSet(java.lang.String xmlDataSetLocation)
                 throws DataLoaderException
Description copied from interface: Dataloader
Fill the database with information extracted from the given XML dataset, referenced by the given URI String. The dataset schema (dragon-dataset.xsd) is included in the Dragon web app (in the 'WEB-INF/classes/dataset' folder).

Specified by:
loadDataSet in interface Dataloader
Parameters:
xmlDataSetLocation - an URI String pointing on a xml dataset.
Throws:
DataLoaderException - if an error occurs during dataset loading

loadDataset

public void loadDataset(java.io.InputStream datasetStream)
                 throws DataLoaderException
Description copied from interface: Dataloader
Fill the database with information extracted from the given XML dataset, provided as an InputStream. The dataset schema (dragon-dataset.xsd) is included in the Dragon web app (in the 'WEB-INF/classes/dataset' folder).

Specified by:
loadDataset in interface Dataloader
Throws:
DataLoaderException


Copyright © 2010 eBMWebsourcing. All Rights Reserved.