eu.etaxonomy.cdm.io.common.mapping.out
Class MethodMapper

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<DbExportStateBase<?,IExportTransformer>>
                  extended by eu.etaxonomy.cdm.io.common.mapping.out.MethodMapper
All Implemented Interfaces:
IDbExportMapper<DbExportStateBase<?,IExportTransformer>,IExportTransformer>

public class MethodMapper
extends DbSingleAttributeExportMapperBase<DbExportStateBase<?,IExportTransformer>>
implements IDbExportMapper<DbExportStateBase<?,IExportTransformer>,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
 
Constructor Summary
protected MethodMapper(String dbAttributeString, Class<?> clazz, String methodName, Class<?>... parameterTypes)
           
 
Method Summary
protected  int getSqlType()
           
 Class<?> getTypeClass()
           
protected  Object getValue(CdmBase cdmBase)
           
static
<T extends DbExportBase>
MethodMapper
NewInstance(String dbAttributeString, Class<?> clazz, String methodName, Class<?>... parameterTypes)
           
static
<T extends DbExportBase>
MethodMapper
NewInstance(String dbAttributeString, Class<?> clazz, String methodName, Class<?> parameterType1, Class<?> parameterType2)
           
static
<T extends DbExportBase>
MethodMapper
NewInstance(String dbAttributeString, DbExportBase exportBase)
           
static
<T extends DbExportBase>
MethodMapper
NewInstance(String dbAttributeString, DbExportBase exportBase, Class<?>... parameterTypes)
           
static
<T extends DbExportBase>
MethodMapper
NewInstance(String dbAttributeString, DbExportBase exportBase, String methodName)
           
 
Methods inherited from class eu.etaxonomy.cdm.io.common.mapping.out.DbSingleAttributeExportMapperBase
checkSqlServerColumnExists, doInvoke, getDbColumnIntegerInfo, getIndex, getPrecision, getPreparedStatement, getState, getTableName, initialize, 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
initialize, invoke
 

Constructor Detail

MethodMapper

protected MethodMapper(String dbAttributeString,
                       Class<?> clazz,
                       String methodName,
                       Class<?>... parameterTypes)
Parameters:
parameterTypes -
dbIdAttributString -
Method Detail

NewInstance

public static <T extends DbExportBase> MethodMapper NewInstance(String dbAttributeString,
                                                                DbExportBase exportBase)

NewInstance

public static <T extends DbExportBase> MethodMapper NewInstance(String dbAttributeString,
                                                                DbExportBase exportBase,
                                                                Class<?>... parameterTypes)

NewInstance

public static <T extends DbExportBase> MethodMapper NewInstance(String dbAttributeString,
                                                                DbExportBase exportBase,
                                                                String methodName)

NewInstance

public static <T extends DbExportBase> MethodMapper NewInstance(String dbAttributeString,
                                                                Class<?> clazz,
                                                                String methodName,
                                                                Class<?>... parameterTypes)

NewInstance

public static <T extends DbExportBase> MethodMapper NewInstance(String dbAttributeString,
                                                                Class<?> clazz,
                                                                String methodName,
                                                                Class<?> parameterType1,
                                                                Class<?> parameterType2)

getTypeClass

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

getValue

protected Object getValue(CdmBase cdmBase)
Overrides:
getValue in class DbSingleAttributeExportMapperBase<DbExportStateBase<?,IExportTransformer>>

getSqlType

protected int getSqlType()
Specified by:
getSqlType in class DbSingleAttributeExportMapperBase<DbExportStateBase<?,IExportTransformer>>


Copyright © 2007-2013 EDIT. All Rights Reserved.