public abstract class DbSingleAttributeImportMapperBase<STATE extends DbImportStateBase<?,?>,CDM_BASE extends CdmBase> extends CdmSingleAttributeMapperBase implements IDbImportMapper<STATE,CDM_BASE>
Modifier and Type | Field and Description |
---|---|
protected java.lang.reflect.Method |
destinationMethod |
protected boolean |
ignore |
protected DbImportMapperBase<STATE> |
importMapperHelper |
protected boolean |
obligatory |
protected java.lang.Class<?> |
targetClass |
defaultValue
Modifier | Constructor and Description |
---|---|
protected |
DbSingleAttributeImportMapperBase(java.lang.String dbAttributString,
java.lang.String cdmAttributeString) |
protected |
DbSingleAttributeImportMapperBase(java.lang.String dbAttributString,
java.lang.String cdmAttributeString,
java.lang.Object defaultValue) |
protected |
DbSingleAttributeImportMapperBase(java.lang.String dbAttributeString,
java.lang.String cdmAttributeString,
java.lang.Object defaultValue,
boolean obligatory) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkDbColumnExists() |
protected CDM_BASE |
doInvoke(CDM_BASE cdmBase,
java.lang.Object value) |
protected int |
getDbColumnIntegerInfo(java.lang.String selectPart) |
protected java.lang.Object |
getDbValue(java.sql.ResultSet rs)
Returns the database value for the attribute
|
protected STATE |
getState() |
protected java.lang.String |
getStringDbValue(java.sql.ResultSet rs,
java.lang.String attribute) |
protected java.lang.String |
getTableName() |
protected java.lang.Class |
getTargetClass(java.lang.Class<?> destinationClass) |
protected java.lang.Object |
getValue(java.sql.ResultSet rs) |
void |
initialize(STATE state,
java.lang.Class<? extends CdmBase> destinationClass) |
CDM_BASE |
invoke(java.sql.ResultSet rs,
CDM_BASE cdmBase) |
getDestinationAttribute, getDestinationAttributeList, getDestinationAttributes, getSourceAttribute, getSourceAttributeList, getSourceAttributes, getTypeClass
toString
protected DbImportMapperBase<STATE extends DbImportStateBase<?,?>> importMapperHelper
protected boolean obligatory
protected boolean ignore
protected java.lang.reflect.Method destinationMethod
protected java.lang.Class<?> targetClass
protected DbSingleAttributeImportMapperBase(java.lang.String dbAttributString, java.lang.String cdmAttributeString)
protected DbSingleAttributeImportMapperBase(java.lang.String dbAttributString, java.lang.String cdmAttributeString, java.lang.Object defaultValue)
protected DbSingleAttributeImportMapperBase(java.lang.String dbAttributeString, java.lang.String cdmAttributeString, java.lang.Object defaultValue, boolean obligatory)
public void initialize(STATE state, java.lang.Class<? extends CdmBase> destinationClass)
initialize
in interface IDbImportMapper<STATE extends DbImportStateBase<?,?>,CDM_BASE extends CdmBase>
protected java.lang.Class getTargetClass(java.lang.Class<?> destinationClass) throws java.lang.SecurityException, java.lang.NoSuchMethodException
destinationClass
- java.lang.NoSuchMethodException
java.lang.SecurityException
java.lang.NoSuchMethodException
public CDM_BASE invoke(java.sql.ResultSet rs, CDM_BASE cdmBase) throws java.sql.SQLException
invoke
in interface IDbImportMapper<STATE extends DbImportStateBase<?,?>,CDM_BASE extends CdmBase>
java.sql.SQLException
protected java.lang.Object getValue(java.sql.ResultSet rs) throws java.sql.SQLException
java.sql.SQLException
protected java.lang.Object getDbValue(java.sql.ResultSet rs) throws java.sql.SQLException
rs
- java.sql.SQLException
protected STATE getState()
protected java.lang.String getTableName()
protected boolean checkDbColumnExists() throws DatabaseTypeNotSupportedException
protected int getDbColumnIntegerInfo(java.lang.String selectPart)
protected java.lang.String getStringDbValue(java.sql.ResultSet rs, java.lang.String attribute) throws java.sql.SQLException
rs
- java.sql.SQLException
Copyright © 2007-2020 EDIT. All Rights Reserved.