net.sf.imca.services
Class ImportData

java.lang.Object
  extended by net.sf.imca.services.Service
      extended by net.sf.imca.services.ImportData

public class ImportData
extends Service

Service for importing data into the IMCA. This is mainly used by test cases and to migrate data form the XML based site. It is not to be used by the Web Application.

Author:
dougculnane

Field Summary
static java.lang.String WEBSITE_HOST
           
static java.lang.String WEBSITE_PROTOCAL
           
 
Fields inherited from class net.sf.imca.services.Service
em
 
Constructor Summary
ImportData()
           
 
Method Summary
 boolean setUpMasterData()
          This reads the xml data files for the moth web site and imports the data into the database.
 
Methods inherited from class net.sf.imca.services.Service
destroyEntityManager, endTransaction, startTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEBSITE_PROTOCAL

public static java.lang.String WEBSITE_PROTOCAL

WEBSITE_HOST

public static java.lang.String WEBSITE_HOST
Constructor Detail

ImportData

public ImportData()
Method Detail

setUpMasterData

public boolean setUpMasterData()
This reads the xml data files for the moth web site and imports the data into the database. It is useful for providing test data and to to import the data into the new database.

Returns:
success


Copyright © 2007-2008 The International Moth Class Association (IMCA).. All Rights Reserved.