eu.etaxonomy.cdm.io.common.mapping
Class MultipleAttributeMapperBase<SINGLE_MAPPER extends CdmSingleAttributeMapperBase>

java.lang.Object
  extended by eu.etaxonomy.cdm.io.common.mapping.CdmMapperBase
      extended by eu.etaxonomy.cdm.io.common.mapping.CdmAttributeMapperBase
          extended by eu.etaxonomy.cdm.io.common.mapping.MultipleAttributeMapperBase<SINGLE_MAPPER>
Direct Known Subclasses:
CdmOneToManyMapper, CreatedAndNotesMapper, DbImportMultiAttributeMapperBase

public abstract class MultipleAttributeMapperBase<SINGLE_MAPPER extends CdmSingleAttributeMapperBase>
extends CdmAttributeMapperBase

Version:
1.0
Author:
a.mueller

Field Summary
protected  List<SINGLE_MAPPER> singleMappers
           
 
Constructor Summary
MultipleAttributeMapperBase()
           
 
Method Summary
 List<String> getDestinationAttributeList()
           
 Set<String> getDestinationAttributes()
           
 List<String> getSourceAttributeList()
           
 Set<String> getSourceAttributes()
           
protected  String getStringDbValue(ResultSet rs, String attribute)
          Returns the value of a result set attribute in its String representation.
 
Methods inherited from class eu.etaxonomy.cdm.io.common.mapping.CdmAttributeMapperBase
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

singleMappers

protected List<SINGLE_MAPPER extends CdmSingleAttributeMapperBase> singleMappers
Constructor Detail

MultipleAttributeMapperBase

public MultipleAttributeMapperBase()
Method Detail

getDestinationAttributeList

public List<String> getDestinationAttributeList()
Specified by:
getDestinationAttributeList in class CdmAttributeMapperBase

getDestinationAttributes

public Set<String> getDestinationAttributes()
Specified by:
getDestinationAttributes in class CdmAttributeMapperBase

getSourceAttributeList

public List<String> getSourceAttributeList()
Specified by:
getSourceAttributeList in class CdmAttributeMapperBase

getSourceAttributes

public Set<String> getSourceAttributes()
Specified by:
getSourceAttributes in class CdmAttributeMapperBase

getStringDbValue

protected String getStringDbValue(ResultSet rs,
                                  String attribute)
                           throws SQLException
Returns the value of a result set attribute in its String representation. Better move this to a subclass for DbImportMappers (does not exist yet)

Parameters:
rs -
attribute -
Returns:
Throws:
SQLException


Copyright © 2007-2013 EDIT. All Rights Reserved.