public class ChildrenDescriptor<PARENT,CHILD> extends Object
Most users of hrorm will have no need to directly use this.
| Constructor and Description | 
|---|
ChildrenDescriptor(Function<PARENT,List<CHILD>> getter,
                  BiConsumer<PARENT,List<CHILD>> setter,
                  DaoDescriptor<CHILD> daoDescriptor,
                  PrimaryKey<PARENT> parentPrimaryKey)  | 
| Modifier and Type | Method and Description | 
|---|---|
Set<Long> | 
findExistingChildrenIds(Connection connection,
                       Long parentId)  | 
void | 
populateChildren(Connection connection,
                PARENT item)  | 
void | 
saveChildren(Connection connection,
            PARENT item)  | 
public ChildrenDescriptor(Function<PARENT,List<CHILD>> getter, BiConsumer<PARENT,List<CHILD>> setter, DaoDescriptor<CHILD> daoDescriptor, PrimaryKey<PARENT> parentPrimaryKey)
public void populateChildren(Connection connection, PARENT item)
public void saveChildren(Connection connection, PARENT item)
public Set<Long> findExistingChildrenIds(Connection connection, Long parentId)
Copyright © 2018. All rights reserved.