private static class TableMapper.LegacyTableInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,TableMapper.LegacyFieldInfo>> |
denorm2j
Indexed map of new field names for denormalized legacy field name.
|
private java.lang.Class<?> |
dmoClass
The DMO implementation class.
|
private java.lang.Class<?> |
dmoIface
The DMO interface.
|
private java.util.Map<java.lang.String,TableMapper.LegacyFieldInfo> |
extents
Field info about extent fields kept by associated DMO property name.
|
private java.util.List<TableMapper.LegacyIndexInfo> |
idx
Index info kept by index number.
|
private java.util.Map<java.lang.String,TableMapper.LegacyIndexInfo> |
idxj2p
Index info kept by converted index name.
|
private java.util.Map<java.lang.String,TableMapper.LegacyIndexInfo> |
idxp2j
Index info kept by legacy index name.
|
private java.util.Map<java.lang.Integer,TableMapper.LegacyFieldInfo> |
ip2j
Field info kept by legacy buffer field sequence index in progress.
|
private java.util.Map<java.lang.String,TableMapper.LegacyFieldInfo> |
j2p
Field info kept by associated DMO property name.
|
private java.lang.String |
legacyName
The legacy table name.
|
private java.util.Map<java.lang.String,TableMapper.LegacyFieldInfo> |
p2j
Field info kept by legacy name in progress.
|
private boolean |
validation
Determines if the table has table-level delete validation.
|
Constructor and Description |
---|
LegacyTableInfo(java.lang.Class<?> dmoIface,
java.lang.Class<?> dmoClass)
Initialize the legacy info for a table by reading the
LegacyTable and
LegacyField annotation from the DMO implementation class. |
Modifier and Type | Method and Description |
---|---|
private void |
loadFields(java.lang.Class<?> cls)
Load all fields from the specified class and add their mappings.
|
private final java.util.Map<java.lang.String,TableMapper.LegacyFieldInfo> p2j
private final java.util.Map<java.lang.Integer,TableMapper.LegacyFieldInfo> ip2j
private final java.util.Map<java.lang.String,TableMapper.LegacyFieldInfo> j2p
private final java.util.Map<java.lang.String,TableMapper.LegacyFieldInfo> extents
private final java.util.Map<java.lang.String,TableMapper.LegacyIndexInfo> idxp2j
private final java.util.Map<java.lang.String,TableMapper.LegacyIndexInfo> idxj2p
private final java.util.List<TableMapper.LegacyIndexInfo> idx
private final java.lang.String legacyName
private final boolean validation
private final java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,TableMapper.LegacyFieldInfo>> denorm2j
private final java.lang.Class<?> dmoIface
private final java.lang.Class<?> dmoClass
public LegacyTableInfo(java.lang.Class<?> dmoIface, java.lang.Class<?> dmoClass)
LegacyTable
and
LegacyField
annotation from the DMO implementation class.dmoClass
- The DMO class from where the annotations will be read.loadFields(Class)
private void loadFields(java.lang.Class<?> cls)
cls
- The DMO class or a composite class with the extent fields.java.lang.NullPointerException
- If a DMO property does not have a LegacyField
annotation.