eu.etaxonomy.cdm.io.berlinModel.out.mapper
Class RefDetailMapper

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.CdmSingleAttributeMapperBase
              extended by eu.etaxonomy.cdm.io.common.mapping.out.DbSingleAttributeExportMapperBase<BerlinModelExportState>
                  extended by eu.etaxonomy.cdm.io.berlinModel.out.mapper.RefDetailMapper
All Implemented Interfaces:
IDbExportMapper<BerlinModelExportState,IExportTransformer>

public class RefDetailMapper
extends DbSingleAttributeExportMapperBase<BerlinModelExportState>
implements IDbExportMapper<BerlinModelExportState,IExportTransformer>

Version:
1.0
Author:
a.mueller

Field Summary
 
Fields inherited from class eu.etaxonomy.cdm.io.common.mapping.out.DbSingleAttributeExportMapperBase
exportMapperHelper, obligatory
 
Fields inherited from class eu.etaxonomy.cdm.io.common.mapping.CdmSingleAttributeMapperBase
defaultValue
 
Method Summary
protected  Integer getId(CdmBase cdmBase)
           
protected  int getSqlType()
           
 Class<?> getTypeClass()
           
protected  Object getValue(CdmBase cdmBase)
           
 void initialize(PreparedStatement stmt, IndexCounter index, BerlinModelExportState state, String tableName)
           
protected  Integer makeRefDetail(String microRef, Reference<?> ref)
           
static RefDetailMapper NewInstance(String cdmAttributeString, String cdmRefAttributeString, String dbAttributeString)
           
 
Methods inherited from class eu.etaxonomy.cdm.io.common.mapping.out.DbSingleAttributeExportMapperBase
checkSqlServerColumnExists, doInvoke, getDbColumnIntegerInfo, getIndex, getPrecision, getPreparedStatement, getState, getTableName, invoke, toString
 
Methods inherited from class eu.etaxonomy.cdm.io.common.mapping.CdmSingleAttributeMapperBase
getDestinationAttribute, getDestinationAttributeList, getDestinationAttributes, getSourceAttribute, getSourceAttributeList, getSourceAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface eu.etaxonomy.cdm.io.common.mapping.out.IDbExportMapper
invoke
 

Method Detail

NewInstance

public static RefDetailMapper NewInstance(String cdmAttributeString,
                                          String cdmRefAttributeString,
                                          String dbAttributeString)

initialize

public void initialize(PreparedStatement stmt,
                       IndexCounter index,
                       BerlinModelExportState state,
                       String tableName)
Specified by:
initialize in interface IDbExportMapper<BerlinModelExportState,IExportTransformer>
Overrides:
initialize in class DbSingleAttributeExportMapperBase<BerlinModelExportState>

getValue

protected Object getValue(CdmBase cdmBase)
Overrides:
getValue in class DbSingleAttributeExportMapperBase<BerlinModelExportState>

makeRefDetail

protected Integer makeRefDetail(String microRef,
                                Reference<?> ref)

getId

protected Integer getId(CdmBase cdmBase)

getSqlType

protected int getSqlType()
Specified by:
getSqlType in class DbSingleAttributeExportMapperBase<BerlinModelExportState>

getTypeClass

public Class<?> getTypeClass()
Specified by:
getTypeClass in class CdmSingleAttributeMapperBase


Copyright © 2007-2013 EDIT. All Rights Reserved.