public class ChildrenDescriptor<PARENT,CHILD,PARENTBUILDER,CHILDBUILDER> extends Object
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() |
String |
parentChildColumnName() |
void |
populateChildren(Connection connection,
List<Envelope<PARENTBUILDER>> parentBuilders,
ChildrenSelector<CHILD,CHILDBUILDER> childrenSelector) |
void |
populateChildren(Connection connection,
PARENTBUILDER parentBuilder) |
void |
saveChildren(Connection connection,
Envelope<PARENT> envelope) |
String |
toString() |
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 populateChildren(Connection connection, List<Envelope<PARENTBUILDER>> parentBuilders, ChildrenSelector<CHILD,CHILDBUILDER> childrenSelector)
public void saveChildren(Connection connection, Envelope<PARENT> envelope)
public String parentChildColumnName()
public String childTableName()
Copyright © 2019. All rights reserved.