public class N1RelationCollector
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected T_LONGLONG |
aeID |
protected java.lang.String |
idAttr |
Constructor and Description |
---|
N1RelationCollector(T_LONGLONG aeID,
java.lang.String idAttr)
Create the object by giving the relation attribute to be reset.
|
Modifier and Type | Method and Description |
---|---|
void |
add(long ieID,
java.lang.String relAttr)
Add an instance id to the collection.
|
void |
add(T_LONGLONG ieID,
java.lang.String relAttr)
Add an instance id to the collection.
|
java.util.Iterator<java.lang.String> |
attrIterator()
Get the relation attribute names that are collected.
|
AIDNameValueSeqUnitId[] |
createDropSequence(java.lang.String attrName)
Create the sequence for dropping.
|
void |
drop(OdsCacheIF cache)
Drop the collection.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
int |
size()
Get the total number of collected elements.
|
protected T_LONGLONG aeID
protected java.lang.String idAttr
public N1RelationCollector(T_LONGLONG aeID, java.lang.String idAttr)
aeID
- the application element id.idAttr
- the ID attribute namepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void add(T_LONGLONG ieID, java.lang.String relAttr)
ieID
- the instance element id.relAttr
- the name of the relation attribute to be dropped.public void add(long ieID, java.lang.String relAttr)
ieID
- the instance element id.relAttr
- the name of the relation attribute to be dropped.public void drop(OdsCacheIF cache) throws AoException
cache
- the ASAM ODS cache.AoException
- when ASAM ODS fails.public java.util.Iterator<java.lang.String> attrIterator()
public AIDNameValueSeqUnitId[] createDropSequence(java.lang.String attrName)
ApplElemAccess.updateInstance()
call.attrName
- The name of the relation attribute that should be dropped.public int size()