public class TargetElement
extends java.lang.Object
ImplementationIF
Constructor and Description |
---|
TargetElement(java.lang.String elemName,
ElemId elemId,
boolean recursive,
boolean delete,
boolean deletefiles,
boolean deleterefs)
Create the object.
|
TargetElement(java.lang.String elemName,
ElemId elemId,
ElemId relId,
java.lang.String relName,
boolean recursive,
boolean delete,
boolean deletefiles,
boolean deleterefs)
Create the object.
|
TargetElement(java.lang.String elemName,
ElemId elemId,
java.lang.String relAttr,
boolean recursive,
boolean delete,
boolean deletefiles,
boolean deleterefs)
Create the object.
|
Modifier and Type | Method and Description |
---|---|
void |
addToCollection(OdsCacheIF cache,
ElementCollector elemCollector,
ElementRecursionCollector elemRecursionCollector,
N1RelationCollectorList n1List,
NMRelationCollectorList nmList)
Put an entry to the collection maps.
|
boolean |
deleteFiles()
Get a boolean whether to delete files.
|
boolean |
deleteRefs()
Get a boolean whether to delete references.
|
boolean |
equals(java.lang.Object o) |
ElemId |
getElemId()
Get the element id of the target.
|
java.lang.String |
getName()
Get the element name of the target.
|
int |
hashCode() |
java.lang.String |
toString()
Get an informational string presentation of the object.
|
public TargetElement(java.lang.String elemName, ElemId elemId, boolean recursive, boolean delete, boolean deletefiles, boolean deleterefs)
elemName
- the element name.elemId
- the id of the element.recursive
- the recursive flag.delete
- true, if element should be deleted.
If the recursive flag is AUTO, this flag will be set to
true automatically.deletefiles
- true, if referenced files should be deleted.deleterefs
- true, if cold references should be deleted.public TargetElement(java.lang.String elemName, ElemId elemId, java.lang.String relAttr, boolean recursive, boolean delete, boolean deletefiles, boolean deleterefs)
elemName
- the element name.elemId
- the id of the element.relAttr
- the name of the relation attribute.
This is meaningful to delete 1:n relations.recursive
- the recursive flag.delete
- true, if element should be deleted.
If the recursive flag is AUTO, this flag will be
set to true automatically.deletefiles
- true, if referenced files should be deleted.deleterefs
- true, if cold references should be deleted.public TargetElement(java.lang.String elemName, ElemId elemId, ElemId relId, java.lang.String relName, boolean recursive, boolean delete, boolean deletefiles, boolean deleterefs)
elemName
- the element name.elemId
- the id of the element.relId
- the element id of the related instance.
This is meaningful to delete m:n relations only.relName
- the name of the relation.
This is meaningful to delete m:n relations.recursive
- the recursive flag.delete
- true, if element should be deleted.
If the recursive flag is AUTO, this flag will
be set to true automatically.deletefiles
- true, if referenced files should be deleted.deleterefs
- true, if cold references should be deleted.public java.lang.String getName()
public ElemId getElemId()
public boolean deleteFiles()
public boolean deleteRefs()
public java.lang.String toString()
toString
in class java.lang.Object
public void addToCollection(OdsCacheIF cache, ElementCollector elemCollector, ElementRecursionCollector elemRecursionCollector, N1RelationCollectorList n1List, NMRelationCollectorList nmList)
cache
- the ASAM ODS cacheelemCollector
- the collector for the element to be dropped without recursion.elemRecursionCollector
- the collector for the element to be dropped with recursion.n1Map
- the map containing the 1:n relation collectors.nmMap
- the map containing the n:m relation collectors.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object