eu.etaxonomy.cdm.io.berlinModel.out.mapper
Class DbSingleAttributeExportMapperBase<STATE extends DbExportStateBase<?>>
java.lang.Object
eu.etaxonomy.cdm.io.common.mapping.CdmAttributeMapperBase
eu.etaxonomy.cdm.io.common.mapping.CdmSingleAttributeMapperBase
eu.etaxonomy.cdm.io.berlinModel.out.mapper.DbSingleAttributeExportMapperBase<STATE>
- All Implemented Interfaces:
- IDbExportMapper<STATE>
- Direct Known Subclasses:
- DbAnnotationMapper, DbBooleanMapper, DbClobMapper, DbConstantMapper, DbDateMapper, DbExtensionMapper, DbMarkerMapper, DbNullMapper, DbObjectMapper, DbSequenceMapper, DbStringMapper, DbTimePeriodMapper, DbUserMapper, FactCategoryMapper, IdMapper, MethodMapper, RefDetailMapper
public abstract class DbSingleAttributeExportMapperBase<STATE extends DbExportStateBase<?>>
- extends CdmSingleAttributeMapperBase
- implements IDbExportMapper<STATE>
- Version:
- 1.0
- Author:
- a.mueller
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<?>>
invoke
public boolean invoke(CdmBase cdmBase)
throws SQLException
- Specified by:
invoke
in interface IDbExportMapper<STATE extends DbExportStateBase<?>>
- 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-2011 EDIT. All Rights Reserved.