public class NMRelationCollector
extends java.lang.Object
| Constructor and Description |
|---|
NMRelationCollector(ElemId element)
Create the object by giving the relation attribute to be reset.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(long ieID,
java.lang.String relName)
Add an instance id to the collection.
|
void |
add(T_LONGLONG ieID,
java.lang.String relName)
Add an instance id to the collection.
|
T_LONGLONG[] |
createDropSequence(java.lang.String relName)
Create the sequence for dropping.
|
void |
drop(OdsCacheIF cache)
Drop the collection.
|
boolean |
equals(java.lang.Object o) |
ElemId |
getElemId()
Get the element id.
|
int |
hashCode() |
java.util.Iterator<java.lang.String> |
relIterator()
Get the relation names that are collected.
|
int |
size()
Get the total number of collected elements.
|
public NMRelationCollector(ElemId element)
element - the element id that is.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic ElemId getElemId()
public void add(T_LONGLONG ieID, java.lang.String relName)
ieID - the instance element id.relName - the name of the relation to be dropped.public void add(long ieID,
java.lang.String relName)
ieID - the instance element id.relName - the name of the relation 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> relIterator()
public T_LONGLONG[] createDropSequence(java.lang.String relName)
ApplElemAccess.setRelInst() call.relName - The name of the relation attribute that should be dropped.public int size()