Package com.im.df.api.dml
Class DFDeleteDescription
- java.lang.Object
-
- com.im.df.api.dml.DFDeleteDescription
-
public final class DFDeleteDescription extends java.lang.Object- Author:
- svata
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDFDeleteDescription.Type
-
Field Summary
Fields Modifier and Type Field Description static DFDeleteDescriptionDELETE_ALL_RELATEDAll related rows in the other Entity will be deleted.static DFDeleteDescriptionDELETE_NONEDo not delete any rows in the related entity.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDeleteRelated(DFRelationship.Direction rel, DFDeleteDescription disposition)intaddRows(java.util.Set<java.lang.Object> rows)static DFDeleteDescriptioncreate(DFEntity en, java.util.Set<java.lang.Object> idsToDelete)java.util.Map<DFRelationship.Direction,DFDeleteDescription>getAllRelations()DFRelationship.DirectiongetControllingRelation()java.util.Map<DFRelationship.Direction,DFDeleteDescription>getDeleteRelated()java.util.Set<DFDeleteDescription>getDeletionSet()com.im.commons.progress.DFLockgetLock()java.util.Set<DFRelationship.Direction>getRequiredRelations()java.util.Set<java.lang.Object>getRowIDs()DFEntitygetTargetEntity()DFDeleteDescription.TypegetType()voidjoin(DFDeleteDescription disposition)voidsetLock(com.im.commons.progress.DFLock lock)
-
-
-
Field Detail
-
DELETE_ALL_RELATED
public static final DFDeleteDescription DELETE_ALL_RELATED
All related rows in the other Entity will be deleted.
-
DELETE_NONE
public static final DFDeleteDescription DELETE_NONE
Do not delete any rows in the related entity.
-
-
Method Detail
-
getControllingRelation
public DFRelationship.Direction getControllingRelation()
-
getDeleteRelated
public java.util.Map<DFRelationship.Direction,DFDeleteDescription> getDeleteRelated()
-
getRowIDs
public java.util.Set<java.lang.Object> getRowIDs()
-
getTargetEntity
public DFEntity getTargetEntity()
-
getType
public DFDeleteDescription.Type getType()
-
addRows
public int addRows(java.util.Set<java.lang.Object> rows)
-
getLock
public com.im.commons.progress.DFLock getLock()
-
setLock
public void setLock(com.im.commons.progress.DFLock lock)
-
getDeletionSet
public java.util.Set<DFDeleteDescription> getDeletionSet()
-
getAllRelations
public java.util.Map<DFRelationship.Direction,DFDeleteDescription> getAllRelations()
-
join
public void join(DFDeleteDescription disposition)
-
addDeleteRelated
public void addDeleteRelated(DFRelationship.Direction rel, DFDeleteDescription disposition)
-
create
public static DFDeleteDescription create(DFEntity en, java.util.Set<java.lang.Object> idsToDelete)
-
getRequiredRelations
public java.util.Set<DFRelationship.Direction> getRequiredRelations()
-
-