public interface OdsCacheIF
Modifier and Type | Method and Description |
---|---|
AIDName |
getAIDName(java.lang.String element,
java.lang.String attr)
Create a AIDName structure.
|
ApplElemAccess |
getApplElemAccess()
Get the appl elem access object from cache.
|
ApplicationRelation |
getApplicationRelationByBaseRelName(T_LONGLONG aid,
java.lang.String brName)
Get the application relation of the element specified by the base relation name.
|
ApplicationRelation |
getApplicationRelationByRelName(java.lang.String elementName,
java.lang.String arName)
Get the application relation of the element specified by the relation name.
|
ApplicationStructure |
getApplicationStructure()
Get the application structure object from cache.
|
ApplAttr |
getAttributeByBaseName(java.lang.String elementName,
java.lang.String baName)
Get the attribute of the element specified by the base attribute name.
|
ApplAttr |
getAttributeByBaseName(T_LONGLONG aid,
java.lang.String baName)
Get the attribute of the element specified by the base attribute name.
|
java.util.HashMap<java.lang.String,ApplAttr> |
getAttributes(java.lang.String elementName)
Get the attributes of the element.
|
java.util.HashMap<java.lang.Long,java.lang.String> |
getCatalog(java.lang.Long id) |
java.util.HashMap<java.lang.Long,java.lang.String> |
getCatalog(T_LONGLONG id) |
T_LONGLONG |
getCatalogItem(java.lang.String name,
java.lang.String key)
Get the id of the instance.
|
java.lang.String |
getCatalogItem(java.lang.String name,
T_LONGLONG id)
Get the name of the instance.
|
T_LONGLONG |
getCatalogItem(T_LONGLONG elementId,
java.lang.String name)
Get the name of the instance.
|
java.lang.String |
getCatalogItem(T_LONGLONG elementId,
T_LONGLONG id)
Get the name of the instance.
|
ApplicationElement |
getElement(java.lang.Long aid)
Get the name of the application element defined by the application element Id.
|
ApplicationElement |
getElement(java.lang.String elementName)
Get the application element belongs to the given name.
|
ApplicationElement |
getElement(T_LONGLONG aid)
Get the name of the application element defined by the application element Id.
|
T_LONGLONG |
getElementId(java.lang.String elementName)
Get the Id of the application element defined by the application element name.
|
java.lang.String |
getElementName(java.lang.Long aid)
Get the name of the application element defined by the application element Id.
|
java.lang.String |
getElementName(T_LONGLONG aid)
Get the name of the application element defined by the application element Id.
|
java.lang.String[] |
getElementNamesByBaseType(java.lang.String beType)
Get the names of the application element defined by base element name .
|
java.util.HashMap<java.lang.String,java.lang.Integer> |
getEnumDef(java.lang.String identifier)
Get the enumeration definition for the identifier.
|
java.util.HashMap<java.lang.String,java.lang.Integer> |
getEnumDef(java.lang.String aeName,
java.lang.String aaName)
Get the enumeration definition for the attribute of the element.
|
DataType |
getIdDataType()
Get the datatype of the Id.
|
InstanceElement |
getInstance(java.lang.String key)
get the instance belongs to the given instance key.
|
ElemId |
getInstanceId(java.lang.String key)
get the instance ID belongs to the given instance key.
|
ApplRel |
getRelationByBaseRelName(java.lang.String elementName,
java.lang.String brName)
Get the relation of the element specified by the base relation name.
|
ApplRel |
getRelationByBaseRelName(T_LONGLONG aid,
java.lang.String brName)
Get the relation of the element specified by the base relation name.
|
java.util.HashMap<java.lang.String,ApplRel> |
getRelations(java.lang.String elementName)
Get the relations of the element.
|
ApplRel[] |
getRelations(java.lang.String elementName,
java.lang.String relElement)
Get the relations of an element to another element.
|
AoSession |
getSession()
Get the ASAM ODS session.
|
ElemId |
getTargetElemId(java.lang.String identifier)
Get the element Id from the target from the identifier.
|
ElemId |
getTargetElemId(java.lang.String aeName,
java.lang.String id)
Get the element Id from the target from the application element name and instance Id.
|
boolean |
isTopElement(java.lang.String elementName)
Get if the application element is a top level element.
|
java.lang.String[] |
listAttributes(java.lang.String elementName)
List the attributes from the element, in the list are all attributes given except the id, values, flags and
generation_parameters attribute.
|
java.lang.String[] |
listRelation(java.lang.String elementName,
boolean onlyNtoM)
List the relations from the element, not the forwards relations are reported.
|
java.lang.String |
makeIdentifier(java.lang.String aeName,
java.lang.String id)
Make an identifier from the application element name and the instance element Id.
|
void |
putEnumDef(java.lang.String identifier,
java.util.HashMap<java.lang.String,java.lang.Integer> enumDefMap)
Put the enumeration definition for an identifier in the map.
|
void |
putEnumDef(java.lang.String aeName,
java.lang.String aaName,
java.util.HashMap<java.lang.String,java.lang.Integer> enumDefMap)
Put the enumeration definition for an attribute of an element in the map.
|
void |
putTargetElemId(java.lang.String identifier,
ElemId iid)
Put the element Id from the target in the map for the given identifier.
|
void |
putTargetElemId(java.lang.String aeName,
java.lang.String id,
ElemId iid)
Put the element Id from the target in the map for the given application element name and instance Id.
|
DataType getIdDataType()
java.lang.String getElementName(T_LONGLONG aid)
aid
- -
the application element Id.java.lang.String getElementName(java.lang.Long aid)
aid
- -
the application element Id as long variablejava.lang.String[] getElementNamesByBaseType(java.lang.String beType)
beType
- -
the base element name.InstanceElement getInstance(java.lang.String key) throws AoException, java.text.ParseException
key
- the instance keyAoException
java.text.ParseException
ElemId getInstanceId(java.lang.String key) throws AoException, java.text.ParseException
key
- the instance keyAoException
java.text.ParseException
ApplicationElement getElement(java.lang.String elementName)
elementName
- the application element name.ApplicationElement getElement(T_LONGLONG aid)
aid
- -
the application element Id.ApplicationElement getElement(java.lang.Long aid)
aid
- -
the application element Id as long variableAIDName getAIDName(java.lang.String element, java.lang.String attr)
element
- the application element nameattr
- the attribute name.T_LONGLONG getElementId(java.lang.String elementName)
elementName
- -
the application element name.java.util.HashMap<java.lang.String,ApplAttr> getAttributes(java.lang.String elementName)
elementName
- -
the name of the element.ApplAttr getAttributeByBaseName(java.lang.String elementName, java.lang.String baName)
elementName
- the name of the element.baName
- the name of the base attribute.ApplAttr getAttributeByBaseName(T_LONGLONG aid, java.lang.String baName)
aid
- the Id of the element.baName
- the name of the base attribute.ApplRel getRelationByBaseRelName(java.lang.String elementName, java.lang.String brName)
elementName
- -
the name of the element.brName
- the name of the base relationApplRel getRelationByBaseRelName(T_LONGLONG aid, java.lang.String brName)
aid
- -
the id of the element.brName
- the name of the base relationjava.util.HashMap<java.lang.String,ApplRel> getRelations(java.lang.String elementName)
elementName
- -
the name of the element.ApplRel[] getRelations(java.lang.String elementName, java.lang.String relElement)
elementName
- -
the name of the element.relElement
- -
the name of the related element.ElemId getTargetElemId(java.lang.String identifier)
identifier
- -
the identifierElemId getTargetElemId(java.lang.String aeName, java.lang.String id)
aeName
- -
the application element nameid
- -
the instance element Id.void putTargetElemId(java.lang.String identifier, ElemId iid)
identifier
- -
the identifieriid
- -
the instance element Id.void putTargetElemId(java.lang.String aeName, java.lang.String id, ElemId iid)
aeName
- -
the application element nameid
- -
the instance element Id.iid
- -
the instance element Id.java.lang.String makeIdentifier(java.lang.String aeName, java.lang.String id)
aeName
- -
the application element nameid
- -
the instance element Id.boolean isTopElement(java.lang.String elementName)
ElementName
- the name of the elementvoid putEnumDef(java.lang.String aeName, java.lang.String aaName, java.util.HashMap<java.lang.String,java.lang.Integer> enumDefMap)
aeName
- -
the application element nameaaName
- -
the application attribute nameenumDefMap
- -
the map with the enumeration definition.void putEnumDef(java.lang.String identifier, java.util.HashMap<java.lang.String,java.lang.Integer> enumDefMap)
identifier
- -
the application element nameenumDefMap
- -
the map with the enumeration definition.java.util.HashMap<java.lang.String,java.lang.Integer> getEnumDef(java.lang.String aeName, java.lang.String aaName)
aeName
- -
the name of the application element.aaName
- -
the name of the application attributejava.util.HashMap<java.lang.String,java.lang.Integer> getEnumDef(java.lang.String identifier)
identifier
- the identifier.ApplElemAccess getApplElemAccess()
ApplicationStructure getApplicationStructure() throws AoException
AoException
AoSession getSession()
java.lang.String[] listAttributes(java.lang.String elementName)
elementName
- -
the element namejava.lang.String[] listRelation(java.lang.String elementName, boolean onlyNtoM)
elementName
- -
the element nameonlyNtoM
- -
list only the names of the N:M relations.java.util.HashMap<java.lang.Long,java.lang.String> getCatalog(T_LONGLONG id)
java.util.HashMap<java.lang.Long,java.lang.String> getCatalog(java.lang.Long id)
java.lang.String getCatalogItem(T_LONGLONG elementId, T_LONGLONG id)
elementId
- the id of the application element.id
- the Id of the instance.java.lang.String getCatalogItem(java.lang.String name, T_LONGLONG id)
name
- the Name of the application element.id
- the Id of the instance.T_LONGLONG getCatalogItem(T_LONGLONG elementId, java.lang.String name)
elementId
- the id of the application element.name
- the name of the catalog instance.T_LONGLONG getCatalogItem(java.lang.String name, java.lang.String key)
name
- the Name of the application element.key
- the name of the instance.ApplicationRelation getApplicationRelationByRelName(java.lang.String elementName, java.lang.String arName) throws AoException
elementName
- -
the name of the element.brName
- the name of the relationAoException
- any occurring ASAM ODS Exception.ApplicationRelation getApplicationRelationByBaseRelName(T_LONGLONG aid, java.lang.String brName) throws AoException
aid
- -
the id of the element.brName
- the name of the base relationAoException
- any occurring ASAM ODS Exception.