org.molgenis.omx.observ.db
Class Protocol_SubprotocolsEntityImporter

java.lang.Object
  extended by org.molgenis.omx.observ.db.Protocol_SubprotocolsEntityImporter
All Implemented Interfaces:
EntityImporter

public class Protocol_SubprotocolsEntityImporter
extends Object
implements EntityImporter

Reads Protocol_Subprotocols from a delimited (csv) file, resolving xrefs to ids where needed, that is the tricky bit ;-)


Constructor Summary
Protocol_SubprotocolsEntityImporter()
           
 
Method Summary
 int importEntity(TupleReader reader, Database db, Database.DatabaseAction dbAction)
          Imports Protocol_Subprotocols from tab/comma delimited File
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Protocol_SubprotocolsEntityImporter

public Protocol_SubprotocolsEntityImporter()
Method Detail

importEntity

public int importEntity(TupleReader reader,
                        Database db,
                        Database.DatabaseAction dbAction)
                 throws IOException,
                        DatabaseException
Imports Protocol_Subprotocols from tab/comma delimited File

Specified by:
importEntity in interface EntityImporter
Parameters:
db - database to import into
reader - csv reader to load data from
defaults - to set default values for each row
dbAction - indicating wether to add,update,remove etc
missingValues - indicating what value in the csv is treated as 'null' (e.g. "" or "NA")
Returns:
number of elements imported
Throws:
IOException
DatabaseException


Copyright © 2013. All Rights Reserved.