private static class TableMapper.TempTableMapper extends TableMapper<TempTable>
TableMapper.LegacyFieldInfo, TableMapper.LegacyIndexComponentInfo, TableMapper.LegacyIndexInfo
Modifier and Type | Field and Description |
---|---|
private java.util.Map<TempTable,TableMapper.LegacyTableInfo> |
p2j
Mapping of the legacy table IDs to their
TableMapper.LegacyTableInfo instances |
Constructor and Description |
---|
TempTableMapper()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
(package private) TableMapper.LegacyTableInfo |
byKey(TempTable key)
Get the
TableMapper.LegacyTableInfo instance mapped to a specific key . |
(package private) void |
clear()
Clear all the mappings.
|
java.lang.String |
denormalizedProperty(TempTable tt,
java.lang.String property,
java.lang.Integer index)
Get new field name for denormalized legacy field name and index.
|
private TableMapper.LegacyFieldInfo |
legacyFieldInfoImpl(TempTable tt,
java.lang.String property)
Get the legacy field name for given property defined by the specified temp table.
|
private TableMapper.LegacyIndexInfo |
legacyIndexInfo(TempTable tt,
int indexNum)
Get information about the index associated with the given temporary table.
|
private java.lang.String |
legacyIndexNameImpl(TempTable tt,
java.lang.String idx)
Get the legacy index name of converted index, which is defined by the specified backing
temp table.
|
(package private) java.lang.String |
legacyName(TempTable tt)
Get the legacy table name associated with the given temp table.
|
(package private) TableMapper.LegacyTableInfo |
legacyTableInfo(TempTable tt)
Get the legacy table information for the given temp-table.
|
(package private) void |
mapClass(TempTable tt)
Register the mappings for the specified temp table.
|
(package private) void |
removeClass(TempTable tt)
Remove the mappings for the specified temp table.
|
(package private) void |
removeTable(TempTable key)
Remove the mappings for the specified key.
|
findJoiningIndex, getAllLegacyFieldInfo, getCommonFields, getDenormalizedProperty, getDMOClass, getExtent4GLName, getIndexFieldNames, getIndexName, getIndexName, getIndexNameImpl, getLegacyFieldColumnLabel, getLegacyFieldDecimals, getLegacyFieldFormat, getLegacyFieldHelp, getLegacyFieldId, getLegacyFieldInfo, getLegacyFieldInfo, getLegacyFieldInfo, getLegacyFieldInitial, getLegacyFieldLabel, getLegacyFieldLiteralQuestion, getLegacyFieldName, getLegacyFieldName, getLegacyFieldName, getLegacyFieldNameMap, getLegacyFieldPosition, getLegacyFieldValidateExpression, getLegacyFieldValidateMessage, getLegacyIndexInfo, getLegacyIndexInfo, getLegacyIndexInfo, getLegacyIndexInfo, getLegacyIndexInfoString, getLegacyIndexName, getLegacyIndexName, getLegacyIndexName, getLegacyName, getLegacyOrderedList, getLegacyProperties, getLegacySchemaName, getLegacyTriggerInfo, getLegacyTriggerProcedure, getNumFields, getNumFields, getNumFieldsImpl, getPropertyName, getPropertyName, getPropertyName, getPropertyName, getPropertyName, getPropertyName, getPropertyName, getPropertyName, getPropertyName, getPropertyName, getPropertyNameImpl, getPropertyNameImpl, hasValidation, isLegacyFieldMandatory, isLegacyTriggerOverrideable, mapPermanentDMO, mapTemporaryTable, removePermanentSchema, removeTemporaryTable, setFieldLabelQuirk, setLegacyFieldColumnLabel, setLegacyFieldFormat, setLegacyFieldHelp, setLegacyFieldLabel, setLegacyFieldLiteralQuestion, setLegacyFieldValidateExpression, setLegacyFieldValidateMessage
private final java.util.Map<TempTable,TableMapper.LegacyTableInfo> p2j
TableMapper.LegacyTableInfo
instancesvoid mapClass(TempTable tt)
tt
- The temp-table which needs to be mapped.java.lang.NullPointerException
- If the associated DMO class does not have a Table
annotation.public java.lang.String denormalizedProperty(TempTable tt, java.lang.String property, java.lang.Integer index)
denormalizedProperty
in class TableMapper<TempTable>
tt
- The temp table whose denormalized property is requested.property
- The DMO property name.index
- zero-based index of this property in denormalization hints.void removeClass(TempTable tt)
tt
- Temp table object.java.lang.String legacyName(TempTable tt)
tt
- Temp table object.TableMapper.LegacyTableInfo byKey(TempTable key)
TableMapper.LegacyTableInfo
instance mapped to a specific key
. The type of key
is implementation specific.byKey
in class TableMapper<TempTable>
TableMapper.LegacyTableInfo
instance if one exists.private TableMapper.LegacyFieldInfo legacyFieldInfoImpl(TempTable tt, java.lang.String property)
tt
- Temp table object.property
- The DMO property name.null
if there is no such field.private TableMapper.LegacyIndexInfo legacyIndexInfo(TempTable tt, int indexNum)
tt
- Temp table object.indexNum
- 0-based index number in the index definition order.null
if there is no index
with the given number.private java.lang.String legacyIndexNameImpl(TempTable tt, java.lang.String idx)
tt
- Temp table object.idx
- The converted index name.null
if there is no such index defined.TableMapper.LegacyTableInfo legacyTableInfo(TempTable tt)
tt
- Temp table object.void removeTable(TempTable key)
removeTable
in class TableMapper<TempTable>
key
- The key to be removed.void clear()
clear
in class TableMapper<TempTable>