private static class TableMapper.PermanentTableMapper extends TableMapper<java.lang.String>
TableMapper.LegacyFieldInfo
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Class<?>,TableMapper.LegacyTableInfo> |
j2p
Mapping of DMO interfaces to
TableMapper.LegacyTableInfo instances |
private java.util.Map<java.lang.String,TableMapper.LegacyTableInfo> |
p2j
Mapping of the legacy table names to
TableMapper.LegacyTableInfo instances. |
Modifier | Constructor and Description |
---|---|
private |
PermanentTableMapper(java.lang.String schema)
Default c'tor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Class<?> |
getDMOClass(java.lang.String legacyKey)
Get the DMO class for the legacy table identified with the specified
legacyKey . |
protected java.util.Map<java.lang.Class<?>,TableMapper.LegacyTableInfo> |
j2p()
Get the mapping of DMO implementation classes to
TableMapper.LegacyTableInfo instances. |
protected void |
mapClass(java.lang.Class<?> dmoIface,
java.lang.Class<?> dmoClass)
Register the mappings for the specified permanent DMO.
|
protected void |
mapClass(java.lang.String legacyKey,
java.lang.Class<?> dmoIface,
java.lang.Class<?> dmoClass)
Map the specified DMO implementation class using the specified
legacyKey . |
protected java.util.Map<java.lang.String,TableMapper.LegacyTableInfo> |
p2j()
Get the mapping of legacy table names to
TableMapper.LegacyTableInfo instances. |
clear, denormalizedProperty, findJoiningIndex, getAllLegacyFieldInfo, getCommonFields, getDenormalizedProperty, getDMOClass, getDMOClass, getExtent4GLName, getExtentValue, getFieldValue, getIndexFieldNames, getIndexName, getIndexName, getIndexName, getLegacyFieldColumnLabel, getLegacyFieldFormat, getLegacyFieldId, getLegacyFieldInfo, getLegacyFieldInfo, getLegacyFieldInitial, getLegacyFieldLabel, getLegacyFieldLiteralQuestion, getLegacyFieldName, getLegacyFieldName, getLegacyFieldName, getLegacyFieldNameMap, getLegacyFieldPosition, getLegacyFieldValidateExpression, getLegacyFieldValidateMessage, getLegacyIndexInfo, getLegacyIndexInfo, getLegacyIndexInfo, getLegacyIndexInfoString, getLegacyIndexName, getLegacyIndexName, getLegacyIndexName, getLegacyName, getLegacyName, getLegacyName, getLegacyPositionalList, getLegacyProperties, getNumFields, getNumFields, getNumFields, getPropertyName, getPropertyName, getPropertyName, getPropertyName, getPropertyName, getPropertyName, getPropertyName, getPropertyName, getPropertyName, getPropertyName, getPropertyName, getPropertyName, getSerializeOptions, getSerializeOptions, getSerializeOptions, hasValidation, isLegacyFieldMandatory, legacyFieldInfo, legacyFieldName, legacyIndexInfo, legacyIndexName, legacyName, mapPermanentDMO, mapTemporaryTable, propertyName, removeClass, removeDynamicTempTables, removePermanentSchema, removeTemporaryTable, setFieldLabelQuirk, setLegacyFieldColumnLabel, setLegacyFieldFormat, setLegacyFieldLabel, setLegacyFieldLiteralQuestion, setLegacyFieldValidateExpression, setLegacyFieldValidateMessage, validation
private final java.util.Map<java.lang.Class<?>,TableMapper.LegacyTableInfo> j2p
TableMapper.LegacyTableInfo
instancesprivate final java.util.Map<java.lang.String,TableMapper.LegacyTableInfo> p2j
TableMapper.LegacyTableInfo
instances.private PermanentTableMapper(java.lang.String schema)
schema
- The schema name.protected void mapClass(java.lang.Class<?> dmoIface, java.lang.Class<?> dmoClass)
dmoIface
- The DMO interface.dmoClass
- The DMO implementation class.java.lang.NullPointerException
- if the DMO class does not have a LegacyTable
annotation.protected void mapClass(java.lang.String legacyKey, java.lang.Class<?> dmoIface, java.lang.Class<?> dmoClass)
legacyKey
.
Before calling this method, make sure the passed DMO has a LegacyTable
annotation.
legacyKey
- The legacy key to identify this DMO implementation class.dmoIface
- The DMO interface.dmoClass
- The DMO implementation class.protected java.lang.Class<?> getDMOClass(java.lang.String legacyKey)
legacyKey
.legacyKey
- The key used to identify the TableMapper.LegacyTableInfo
.null
if there is no class
corresponding the given key.protected java.util.Map<java.lang.String,TableMapper.LegacyTableInfo> p2j()
TableMapper.LegacyTableInfo
instances.p2j
in class TableMapper<java.lang.String>
protected java.util.Map<java.lang.Class<?>,TableMapper.LegacyTableInfo> j2p()
TableMapper.LegacyTableInfo
instances.j2p
in class TableMapper<java.lang.String>