public abstract class DbSingleAttributeExportMapperBase<STATE extends DbExportStateBase<?,IExportTransformer>> extends CdmSingleAttributeMapperBase implements IDbExportMapper<STATE,IExportTransformer>
Modifier and Type | Field and Description |
---|---|
protected DbExportMapperBase<STATE> |
exportMapperHelper |
protected boolean |
notNull |
protected boolean |
obligatory |
defaultValue
Modifier | Constructor and Description |
---|---|
protected |
DbSingleAttributeExportMapperBase(java.lang.String cdmAttributeString,
java.lang.String dbAttributString,
java.lang.Object defaultValue) |
protected |
DbSingleAttributeExportMapperBase(java.lang.String cdmAttributeString,
java.lang.String dbAttributString,
java.lang.Object defaultValue,
boolean obligatory,
boolean notNull) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkSqlServerColumnExists() |
protected boolean |
doInvoke(CdmBase cdmBase) |
protected int |
getDbColumnIntegerInfo(java.lang.String selectPart) |
int |
getIndex() |
protected int |
getPrecision() |
java.sql.PreparedStatement |
getPreparedStatement() |
protected abstract int |
getSqlType() |
STATE |
getState() |
java.lang.String |
getTableName() |
protected java.lang.Object |
getValue(CdmBase cdmBase) |
void |
initialize(java.sql.PreparedStatement stmt,
IndexCounter index,
STATE state,
java.lang.String tableName) |
boolean |
invoke(CdmBase cdmBase) |
java.lang.String |
toString() |
getDestinationAttribute, getDestinationAttributeList, getDestinationAttributes, getSourceAttribute, getSourceAttributeList, getSourceAttributes, getTypeClass
protected DbExportMapperBase<STATE extends DbExportStateBase<?,IExportTransformer>> exportMapperHelper
protected boolean obligatory
protected boolean notNull
protected DbSingleAttributeExportMapperBase(java.lang.String cdmAttributeString, java.lang.String dbAttributString, java.lang.Object defaultValue)
protected DbSingleAttributeExportMapperBase(java.lang.String cdmAttributeString, java.lang.String dbAttributString, java.lang.Object defaultValue, boolean obligatory, boolean notNull)
cdmAttributeString
- source attribute (CDM)dbAttributString
- target attribute (export DB)defaultValue
- default value if source value is null
obligatory
- if the source attribute is obligatory, but value may be null
public void initialize(java.sql.PreparedStatement stmt, IndexCounter index, STATE state, java.lang.String tableName)
initialize
in interface IDbExportMapper<STATE extends DbExportStateBase<?,IExportTransformer>,IExportTransformer>
public boolean invoke(CdmBase cdmBase) throws java.sql.SQLException
invoke
in interface IDbExportMapper<STATE extends DbExportStateBase<?,IExportTransformer>,IExportTransformer>
java.sql.SQLException
protected boolean doInvoke(CdmBase cdmBase) throws java.sql.SQLException
java.sql.SQLException
protected java.lang.Object getValue(CdmBase cdmBase)
protected abstract int getSqlType()
public java.sql.PreparedStatement getPreparedStatement()
public int getIndex()
public STATE getState()
public java.lang.String getTableName()
protected boolean checkSqlServerColumnExists()
protected int getPrecision()
protected int getDbColumnIntegerInfo(java.lang.String selectPart)
public java.lang.String toString()
toString
in class CdmAttributeMapperBase
Copyright © 2007-2020 EDIT. All Rights Reserved.