|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RelatedEntityDao<PK,P extends Entity,T extends Entity,U>
A common interface for DAOs which handle an AO record T
which has a relationship with parent record P
.
Method Summary | |
---|---|
void |
deleteForParent(P parent)
Delete all records for specified parent. |
T[] |
getForParent(P parent)
Return all the records for the specified parent. |
T[] |
getForParent(PK primaryKey)
Return all the records for the specified parent. |
java.util.List<T> |
updateForParent(P parent,
java.util.List<U> models)
Set the list of domain objects onto the parent record. |
Method Detail |
---|
@NotNull T[] getForParent(P parent)
parent
-
@NotNull T[] getForParent(PK primaryKey)
primaryKey
-
@NotNull java.util.List<T> updateForParent(P parent, java.util.List<U> models)
parent
- models
-
void deleteForParent(P parent)
parent
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |