eu.etaxonomy.cdm.io.common.mapping.out
Class DbSingleAttributeExportMapperBase<STATE extends DbExportStateBase<?,IExportTransformer>>
java.lang.Object
eu.etaxonomy.cdm.io.common.mapping.CdmMapperBase
eu.etaxonomy.cdm.io.common.mapping.CdmAttributeMapperBase
eu.etaxonomy.cdm.io.common.mapping.CdmSingleAttributeMapperBase
eu.etaxonomy.cdm.io.common.mapping.out.DbSingleAttributeExportMapperBase<STATE>
- All Implemented Interfaces:
- IDbExportMapper<STATE,IExportTransformer>
- Direct Known Subclasses:
- DbAnnotationMapper, DbAreaMapper, DbBooleanMapper, DbClobMapper, DbConstantMapper, DbDateMapper, DbDescriptionElementTaxonMapper, DbDistributionStatusMapper, DbExportIgnoreMapper, DbExportNotYetImplementedMapper, DbExtensionMapper, DbImageMapper, DbLanguageMapper, DbLastActionMapper, DbMarkerMapper, DbNullMapper, DbObjectMapper, DbOriginalNameMapper, DbSequenceMapper, DbSimpleFilterMapper, DbSingleSourceMapper, DbStringMapper, DbTextDataMapper, DbTimePeriodMapper, DbUriMapper, DbUserMapper, FactCategoryMapper, IdMapper, MethodMapper, RefDetailMapper
public abstract class DbSingleAttributeExportMapperBase<STATE extends DbExportStateBase<?,IExportTransformer>>
- extends CdmSingleAttributeMapperBase
- implements IDbExportMapper<STATE,IExportTransformer>
- Version:
- 1.0
- Author:
- a.mueller
exportMapperHelper
protected DbExportMapperBase<STATE extends DbExportStateBase<?,IExportTransformer>> exportMapperHelper
obligatory
protected boolean obligatory
DbSingleAttributeExportMapperBase
protected DbSingleAttributeExportMapperBase(String cdmAttributeString,
String dbAttributString,
Object defaultValue)
- Parameters:
dbAttributString - cdmAttributeString -
DbSingleAttributeExportMapperBase
protected DbSingleAttributeExportMapperBase(String cdmAttributeString,
String dbAttributString,
Object defaultValue,
boolean obligatory)
- Parameters:
dbAttributString - cdmAttributeString -
initialize
public void initialize(PreparedStatement stmt,
IndexCounter index,
STATE state,
String tableName)
- Specified by:
initialize in interface IDbExportMapper<STATE extends DbExportStateBase<?,IExportTransformer>,IExportTransformer>
invoke
public boolean invoke(CdmBase cdmBase)
throws SQLException
- Specified by:
invoke in interface IDbExportMapper<STATE extends DbExportStateBase<?,IExportTransformer>,IExportTransformer>
- Throws:
SQLException
doInvoke
protected boolean doInvoke(CdmBase cdmBase)
throws SQLException
- Throws:
SQLException
getValue
protected Object getValue(CdmBase cdmBase)
getSqlType
protected abstract int getSqlType()
getPreparedStatement
public PreparedStatement getPreparedStatement()
- Returns:
- the preparedStatement
getIndex
public int getIndex()
- Returns:
- the index
getState
public STATE getState()
- Returns:
- the state
getTableName
public String getTableName()
- Returns:
- the state
checkSqlServerColumnExists
protected boolean checkSqlServerColumnExists()
getPrecision
protected int getPrecision()
getDbColumnIntegerInfo
protected int getDbColumnIntegerInfo(String selectPart)
toString
public String toString()
- Overrides:
toString in class CdmAttributeMapperBase
Copyright © 2007-2013 EDIT. All Rights Reserved.