public class DbTextDataMapper extends DbSingleAttributeExportMapperBase<DbExportStateBase<?,IExportTransformer>> implements IDbExportMapper<DbExportStateBase<?,IExportTransformer>,IExportTransformer>
exportMapperHelper, notNull, obligatory
defaultValue
Modifier | Constructor and Description |
---|---|
protected |
DbTextDataMapper(java.util.List<Language> languages,
java.lang.String dbAttributeString,
boolean restrictToGivenLanguages,
java.lang.Object defaultValue) |
Modifier and Type | Method and Description |
---|---|
protected int |
getSqlType() |
java.lang.Class<?> |
getTypeClass() |
protected java.lang.Object |
getValue(CdmBase cdmBase) |
static DbTextDataMapper |
NewDefaultInstance(java.lang.String dbAttributeString)
Returns a mapper that uses the default language representation first.
|
static DbTextDataMapper |
NewInstance(java.lang.String dbAttributeString,
Language language)
Returns a mapper that uses the given language representation first.
|
static DbTextDataMapper |
NewInstance(java.lang.String dbAttributeString,
Language language,
java.lang.String defaultValue)
Returns a mapper that uses the given language representation.
|
static DbTextDataMapper |
NewInstance(java.lang.String dbAttributeString,
java.util.List<Language> languages,
boolean restrictToGivenLanguages,
java.lang.String defaultValue)
Returns a mapper that returns a representation according to the
language priorisation of the *languages* attribute.
|
checkSqlServerColumnExists, doInvoke, getDbColumnIntegerInfo, getIndex, getPrecision, getPreparedStatement, getState, getTableName, initialize, invoke, toString
getDestinationAttribute, getDestinationAttributeList, getDestinationAttributes, getSourceAttribute, getSourceAttributeList, getSourceAttributes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initialize, invoke
protected DbTextDataMapper(java.util.List<Language> languages, java.lang.String dbAttributeString, boolean restrictToGivenLanguages, java.lang.Object defaultValue)
public static DbTextDataMapper NewDefaultInstance(java.lang.String dbAttributeString)
dbAttributeString
- the target column namepublic static DbTextDataMapper NewInstance(java.lang.String dbAttributeString, Language language)
dbAttributeString
- the target column namelanguage
- the preferred language of the representation to usepublic static DbTextDataMapper NewInstance(java.lang.String dbAttributeString, Language language, java.lang.String defaultValue)
dbAttributeString
- the target column namelanguage
- the ONLY language of the representation to usepublic static DbTextDataMapper NewInstance(java.lang.String dbAttributeString, java.util.List<Language> languages, boolean restrictToGivenLanguages, java.lang.String defaultValue)
false
first the
any other representation is returned with the applications default
language having priority.
If still no representation exists or if *restrictToGivenLanguages*
is true
the *defaultValue* is returned.dbAttributeString
- the target column namelanguages
- the sorted list of (preferred) languagesrestrictToGivenLanguages
- flag wether to restrict to given languages or notdefaultValue
- the default valueprotected java.lang.Object getValue(CdmBase cdmBase)
getValue
in class DbSingleAttributeExportMapperBase<DbExportStateBase<?,IExportTransformer>>
protected int getSqlType()
getSqlType
in class DbSingleAttributeExportMapperBase<DbExportStateBase<?,IExportTransformer>>
public java.lang.Class<?> getTypeClass()
getTypeClass
in class CdmSingleAttributeMapperBase
Copyright © 2007-2020 EDIT. All Rights Reserved.