public class AttributeMapMgr extends LoaderUtils<ModelProcessIntf>
Modifier and Type | Class and Description |
---|---|
static class |
AttributeMapMgr.SpecEntry |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
QUERY_MAP_LOOKUP |
static java.lang.String |
TYPE_ALN |
static java.lang.String |
TYPE_AMOUNT |
static java.lang.String |
TYPE_BIGINT |
static java.lang.String |
TYPE_BLOB |
static java.lang.String |
TYPE_CLOB |
static java.lang.String |
TYPE_CRYPTO |
static java.lang.String |
TYPE_CRYPTOX |
static java.lang.String |
TYPE_DATE |
static java.lang.String |
TYPE_DATETIME |
static java.lang.String |
TYPE_DECIMAL |
static java.lang.String |
TYPE_DURATION |
static java.lang.String |
TYPE_FLOAT |
static java.lang.String |
TYPE_GL |
static java.lang.String |
TYPE_INTEGER |
static java.lang.String |
TYPE_LONGALN |
static java.lang.String |
TYPE_LOWER |
static java.lang.String |
TYPE_SMALLINT |
static java.lang.String |
TYPE_TIME |
static java.lang.String |
TYPE_UPPER |
static java.lang.String |
TYPE_YORN |
Constructor and Description |
---|
AttributeMapMgr(ModelProcessIntf loader,
java.lang.String fieldMapName,
java.lang.String specMapName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeForSpec(java.lang.String attrId) |
java.util.Set<ItemATTRIBUTE> |
getMappedField(ItemBase item,
MboRemote mbo)
Use an attribute map for export to convert base Mbo fields to COBie attributes
|
AttributeMapMgr.SpecEntry |
getMappedSpec(java.lang.String attributeName)
Get the AssetAttrbute ID and description to which a COBie attibute is mapped
|
boolean |
isSkipAttribute(java.lang.String attribName,
java.lang.String sheetName)
Test if the attribute is mapped for this COBie table and should be skipped in
attribute processing
|
boolean |
isSkipAttributeForMbo(java.lang.String attribName,
java.lang.String mboName)
Test if the attribute is mapped for this mbo and should be skipped in
attribute processing
|
boolean |
isSkipAttributeType(ItemAttributeType attribType)
Test if the attribute is mapped for this object and should be skipped in
attribute processing
|
boolean |
setMappedField(ItemATTRIBUTE attrib,
java.lang.String tableName,
MboRemote mbo)
Get if the attribute is in the current attribute map.
|
void |
setMappedFields(java.util.Enumeration<ItemATTRIBUTE> attributes,
MboRemote mbo) |
arrayToCommaString, getFormater, getLoader, getUnitFieldLength, getUpdateMode, isNotInternetEmail, isValidDomainName, isValidEmail, logException, messageFromException, setDateValue, setDescriptionValue, setDurationValue, setTimestamp, setUnitValue, setUnitValue, valueHasContent
public static final java.lang.String QUERY_MAP_LOOKUP
public static final java.lang.String TYPE_ALN
public static final java.lang.String TYPE_AMOUNT
public static final java.lang.String TYPE_BIGINT
public static final java.lang.String TYPE_BLOB
public static final java.lang.String TYPE_CLOB
public static final java.lang.String TYPE_CRYPTO
public static final java.lang.String TYPE_CRYPTOX
public static final java.lang.String TYPE_DATE
public static final java.lang.String TYPE_DATETIME
public static final java.lang.String TYPE_DECIMAL
public static final java.lang.String TYPE_DURATION
public static final java.lang.String TYPE_FLOAT
public static final java.lang.String TYPE_GL
public static final java.lang.String TYPE_INTEGER
public static final java.lang.String TYPE_LONGALN
public static final java.lang.String TYPE_LOWER
public static final java.lang.String TYPE_SMALLINT
public static final java.lang.String TYPE_TIME
public static final java.lang.String TYPE_UPPER
public static final java.lang.String TYPE_YORN
public AttributeMapMgr(ModelProcessIntf loader, java.lang.String fieldMapName, java.lang.String specMapName) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public boolean isSkipAttributeType(ItemAttributeType attribType)
attrib
- COBie attributemboName
- Name of maximo tablepublic boolean isSkipAttribute(java.lang.String attribName, java.lang.String sheetName)
attrib
- COBie attributesheetName
- Name of maximo tablepublic boolean isSkipAttributeForMbo(java.lang.String attribName, java.lang.String mboName)
attrib
- COBie attributemboName
- Name of maximo tablepublic void setMappedFields(java.util.Enumeration<ItemATTRIBUTE> attributes, MboRemote mbo)
public boolean setMappedField(ItemATTRIBUTE attrib, java.lang.String tableName, MboRemote mbo)
attrib
- COBie attributemboName
- Name of maximo tablepublic AttributeMapMgr.SpecEntry getMappedSpec(java.lang.String attributeName)
attributeName
- public java.lang.String getAttributeForSpec(java.lang.String attrId)
public java.util.Set<ItemATTRIBUTE> getMappedField(ItemBase item, MboRemote mbo)
pageName
- mbo
-