org.equanda.ymport
Class ImportHandler

java.lang.Object
  extended by org.equanda.ymport.ImportHandler

public class ImportHandler
extends Object

Import handler, actually do the import

Author:
Joachim Van der Auwera

Constructor Summary
ImportHandler(TableHandler table, Collection fields)
           
 
Method Summary
static Collection buildFieldList(DatabaseMap databaseMap, FieldMap fieldMap, String line)
          Build a collection of FieldHandlers for a table.
static ImportHandler buildImportHandler(DatabaseMap databaseMap, String line)
          Build an importhandler for a definition
 Object ymport(Collection data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportHandler

public ImportHandler(TableHandler table,
                     Collection fields)
Method Detail

ymport

public Object ymport(Collection data)
              throws ImportHandlerException
Throws:
ImportHandlerException

buildImportHandler

public static ImportHandler buildImportHandler(DatabaseMap databaseMap,
                                               String line)
                                        throws ImportHandlerException
Build an importhandler for a definition

Parameters:
databaseMap - database map
line - line to handle
Returns:
import handler
Throws:
ImportHandlerException - oops

buildFieldList

public static Collection buildFieldList(DatabaseMap databaseMap,
                                        FieldMap fieldMap,
                                        String line)
                                 throws ImportHandlerException
Build a collection of FieldHandlers for a table.

Parameters:
databaseMap - database map
fieldMap - field map
line - definition of fields
Returns:
@class Collection of @class FieldHandler to import the data
Throws:
ImportHandlerException - oops


Copyright © 2007-2009. All Rights Reserved.