public class ChildrenDescriptor<PARENT,CHILD,PARENTBUILDER,CHILDBUILDER> extends Object
Most users of hrorm will have no need to directly use this.
| Constructor and Description | 
|---|
| ChildrenDescriptor(Function<PARENT,List<CHILD>> getter,
                  BiConsumer<PARENTBUILDER,List<CHILD>> setter,
                  DaoDescriptor<CHILD,CHILDBUILDER> childDaoDescriptor,
                  PrimaryKey<PARENT,PARENTBUILDER> parentPrimaryKey,
                  Function<PARENTBUILDER,PARENT> parentBuildFunction) | 
| Modifier and Type | Method and Description | 
|---|---|
| String | childTableName() | 
| Set<Long> | findExistingChildrenIds(Connection connection,
                       Long parentId) | 
| String | parentChildColumnName() | 
| void | populateChildren(Connection connection,
                PARENTBUILDER parentBuilder) | 
| void | saveChildren(Connection connection,
            Envelope<PARENT> envelope) | 
public ChildrenDescriptor(Function<PARENT,List<CHILD>> getter, BiConsumer<PARENTBUILDER,List<CHILD>> setter, DaoDescriptor<CHILD,CHILDBUILDER> childDaoDescriptor, PrimaryKey<PARENT,PARENTBUILDER> parentPrimaryKey, Function<PARENTBUILDER,PARENT> parentBuildFunction)
public void populateChildren(Connection connection, PARENTBUILDER parentBuilder)
public void saveChildren(Connection connection, Envelope<PARENT> envelope)
public Set<Long> findExistingChildrenIds(Connection connection, Long parentId)
public String parentChildColumnName()
public String childTableName()
Copyright © 2019. All rights reserved.