org.equanda.ymport
Class FieldMapAdapter

java.lang.Object
  extended by org.equanda.ymport.FieldMapAdapter
All Implemented Interfaces:
FieldMap

public abstract class FieldMapAdapter
extends Object
implements FieldMap

Adapter for FieldMap objects. Only needs initialisation of static variables.

Author:
Joachim Van der Auwera

Constructor Summary
FieldMapAdapter()
           
 
Method Summary
 FieldHandler getFieldHandler(DatabaseMap dbMap, String name)
          Get the FieldHandler for a specific field
protected abstract  HashMap<String,FieldHandler> getFieldsMap()
          get fieldsMap for this class, to be overwritten
protected abstract  HashMap<String,String> getTablesMap()
          get tablesMap for this class, to be overwritten
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldMapAdapter

public FieldMapAdapter()
Method Detail

getFieldsMap

protected abstract HashMap<String,FieldHandler> getFieldsMap()
get fieldsMap for this class, to be overwritten

Returns:
fieldhandler list

getTablesMap

protected abstract HashMap<String,String> getTablesMap()
get tablesMap for this class, to be overwritten

Returns:
fieldhandler list

getFieldHandler

public FieldHandler getFieldHandler(DatabaseMap dbMap,
                                    String name)
                             throws ImportHandlerException
Get the FieldHandler for a specific field

Specified by:
getFieldHandler in interface FieldMap
Parameters:
name - name of the field
Returns:
FieldHandler which handles setting this field in the ImportObjectValue
Throws:
ImportHandlerException


Copyright © 2007-2009. All Rights Reserved.