public class DbImportTruncatedStringMapper extends DbSingleAttributeImportMapperBase<DbImportStateBase<?,?>,CdmBase>
destinationMethod, ignore, importMapperHelper, obligatory, targetClass
defaultValue
Modifier | Constructor and Description |
---|---|
protected |
DbImportTruncatedStringMapper(java.lang.String dbAttributeString,
java.lang.String cdmAttributeString,
java.lang.Object defaultValue,
boolean obligatory,
java.lang.String longTextAttribute,
ExtensionType extensionType,
java.lang.Integer truncatedLength,
boolean isProtectedTitleCache) |
Modifier and Type | Method and Description |
---|---|
protected CdmBase |
doInvoke(CdmBase cdmBase,
java.lang.Object value) |
java.lang.Class |
getTypeClass() |
void |
initialize(DbImportStateBase<?,?> state,
java.lang.Class<? extends CdmBase> destinationClass) |
static DbImportTruncatedStringMapper |
NewInstance(java.lang.String dbAttributeString,
java.lang.String cdmAttributeString,
ExtensionType truncatedExtentionType,
java.lang.Integer truncatedLength,
boolean isProtectedTitleCache)
Creates an instance using a "truncated extension type" extension to store the complete
text.
|
static DbImportTruncatedStringMapper |
NewInstance(java.lang.String dbAttributeString,
java.lang.String cdmAttributeString,
java.lang.String longTextAttribute,
java.lang.Integer truncatedLength) |
checkDbColumnExists, getDbColumnIntegerInfo, getDbValue, getState, getStringDbValue, getTableName, getTargetClass, getValue, invoke
getDestinationAttribute, getDestinationAttributeList, getDestinationAttributes, getSourceAttribute, getSourceAttributeList, getSourceAttributes
toString
protected DbImportTruncatedStringMapper(java.lang.String dbAttributeString, java.lang.String cdmAttributeString, java.lang.Object defaultValue, boolean obligatory, java.lang.String longTextAttribute, ExtensionType extensionType, java.lang.Integer truncatedLength, boolean isProtectedTitleCache)
public static DbImportTruncatedStringMapper NewInstance(java.lang.String dbAttributeString, java.lang.String cdmAttributeString, java.lang.String longTextAttribute, java.lang.Integer truncatedLength)
public static DbImportTruncatedStringMapper NewInstance(java.lang.String dbAttributeString, java.lang.String cdmAttributeString, ExtensionType truncatedExtentionType, java.lang.Integer truncatedLength, boolean isProtectedTitleCache)
true
and the object is an identifiable entity
the value is stored in the titleCache field with protected flag = true
public void initialize(DbImportStateBase<?,?> state, java.lang.Class<? extends CdmBase> destinationClass)
initialize
in interface IDbImportMapper<DbImportStateBase<?,?>,CdmBase>
initialize
in class DbSingleAttributeImportMapperBase<DbImportStateBase<?,?>,CdmBase>
protected CdmBase doInvoke(CdmBase cdmBase, java.lang.Object value)
doInvoke
in class DbSingleAttributeImportMapperBase<DbImportStateBase<?,?>,CdmBase>
public java.lang.Class getTypeClass()
getTypeClass
in class CdmSingleAttributeMapperBase
Copyright © 2007-2020 EDIT. All Rights Reserved.