Esempio n. 1
0
 private static void visitChildren(
     IFastOrmContainer fastOrm, IEntityDefn parent, IMakerAndEntityDefnVisitor visitor)
     throws Exception {
   for (IEntityDefn child : parent.getChildren()) {
     visitor.acceptChild(
         fastOrm
             .getTempTableMakerFactory()
             .findReaderMakerFor(parent.parameters(), child.parameters()),
         parent,
         child);
     visitChildren(fastOrm, child, visitor);
   }
 }
Esempio n. 2
0
 private static <To, From> void visitChildren(
     IFastOrmContainer fastOrm,
     IEntityDefn parent,
     IMakerAndEntityDefnFoldVisitor<From, To> visitor,
     IAggregator<From, To> aggregator) {
   for (IEntityDefn child : parent.getChildren()) {
     aggregator.add(
         visitor.acceptChild(
             fastOrm
                 .getTempTableMakerFactory()
                 .findReaderMakerFor(parent.parameters(), child.parameters()),
             parent,
             child));
     visitChildren(fastOrm, child, visitor, aggregator);
   }
 }