public class ApplElemAccessExampleAbstract extends AoSessionExampleAbstract
Modifier and Type | Field and Description |
---|---|
protected static AoSession |
aoSess |
protected static ApplicationStructureValue |
asv |
ODS_DATE_FORMAT, options, plumCorba, serviceName, userAuthentication
Constructor and Description |
---|
ApplElemAccessExampleAbstract() |
Modifier and Type | Method and Description |
---|---|
protected static void |
close()
Close the connection to the ODS Server
|
protected static QueryStructureExt |
createQueryStructureExt()
Create an empty query structure ext.
|
protected static SelAIDNameUnitId |
createSelAIDNameUnitId(T_LONGLONG aid,
java.lang.String aaName)
Create a SelAIDNameUnitId structure to request for the values of the attribute
with t he given name of the element with the given Id.
|
protected static T_LONGLONG |
getAidByBaseType(java.lang.String beType)
Get application element Id of the first element with the requested base type.
|
protected static T_LONGLONG |
getAidByName(java.lang.String aeName)
Get application element Id of the element with the requested name.
|
protected static ApplElemAccess |
getApplElemAccess()
Get the appl elem access object
|
protected static ApplicationStructureValue |
getApplicationStructureValue()
Get the application structure as a value.
|
protected static java.lang.String |
getAttributeNameByBaseName(T_LONGLONG aid,
java.lang.String baName)
Get application attribute name of the attribute derived from the requested base attribute
of element with the requested Id.
|
protected static T_LONGLONG[] |
getInstanceIds(T_LONGLONG aid)
Get the Id's of the instances of the element with the given application element Id.
|
protected static java.lang.String |
getRelationName(T_LONGLONG aid,
T_LONGLONG aidRel)
Get application relation name of the relation between the two elements, use the
relation name with the max relation range of 1, which is the relation attribute.
|
protected static java.lang.String |
getRelationNameByBaseName(T_LONGLONG aid,
java.lang.String brName)
Get application relation name of the relation derived from the requested base relation
of element with the requested Id.
|
protected static AoSession |
getSession()
Get the session.
|
connect
protected static AoSession aoSess
protected static ApplicationStructureValue asv
protected static ApplElemAccess getApplElemAccess() throws AoException
AoException
- any occurring ASAM ODS exception.protected static ApplicationStructureValue getApplicationStructureValue() throws AoException
AoException
- any occurring ASAM ODS exception.protected static T_LONGLONG getAidByName(java.lang.String aeName) throws AoException
aeName
- the requested name of the element.AoException
- any occurring ASAM ODS exception.protected static T_LONGLONG getAidByBaseType(java.lang.String beType) throws AoException
beType
- the requested base type of the element.AoException
- any occurring ASAM ODS exception.protected static java.lang.String getAttributeNameByBaseName(T_LONGLONG aid, java.lang.String baName) throws AoException
aid
- the requested Id of the element.baName
- the requested base attribute name.AoException
- any occurring ASAM ODS exception.protected static java.lang.String getRelationNameByBaseName(T_LONGLONG aid, java.lang.String brName) throws AoException
aid
- the requested Id of the element.brName
- the requested base relation name.AoException
- any occurring ASAM ODS exception.protected static java.lang.String getRelationName(T_LONGLONG aid, T_LONGLONG aidRel) throws AoException
aid
- the requested Id of the element.aidRel
- the id of the relation element.AoException
- any occurring ASAM ODS exception.protected static SelAIDNameUnitId createSelAIDNameUnitId(T_LONGLONG aid, java.lang.String aaName)
aid
- the Id of the element.aaName
- the name of the attributeprotected static QueryStructureExt createQueryStructureExt()
protected static void close() throws AoException
AoException
- any occurring ASAM ODS exception.protected static AoSession getSession() throws AoException
AoException
- any occurring ASAM ODS exception.protected static T_LONGLONG[] getInstanceIds(T_LONGLONG aid) throws AoException
aid
- the Id of the application element. Max 20 instances are returned.AoException
- any occurring ASAM ODS exception.