public class ChildrenDescriptor<PARENT,CHILD> extends Object
Most users of hrorm will have no need to directly use this.
| Constructor and Description | 
|---|
| ChildrenDescriptor(String parentChildColumnName,
                  BiConsumer<CHILD,Long> parentSetter,
                  Function<PARENT,List<CHILD>> getter,
                  BiConsumer<PARENT,List<CHILD>> setter,
                  DaoDescriptor<CHILD> daoDescriptor,
                  PrimaryKey<PARENT> primaryKey) | 
| 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(String parentChildColumnName, BiConsumer<CHILD,Long> parentSetter, Function<PARENT,List<CHILD>> getter, BiConsumer<PARENT,List<CHILD>> setter, DaoDescriptor<CHILD> daoDescriptor, PrimaryKey<PARENT> primaryKey)
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.