Exemplo n.º 1
0
 public void close() {
   for (Column pkColumn : table.getPrimaryKeyIncludingInternal().getColumns()) {
     inIndex.set(pkColumn.getPosition(), true);
   }
   if (table.getParentJoin() != null) {
     for (JoinColumn joinColumn : table.getParentJoin().getJoinColumns()) {
       inIndex.set(joinColumn.getChild().getPosition(), true);
     }
   }
 }
Exemplo n.º 2
0
 private static int columnPosition(
     Map<? extends Table, Integer> flattenedRowOffsets, Column column) {
   int position = column.getPosition();
   Integer offset = flattenedRowOffsets.get(column.getTable());
   if (offset == null) {
     throw new NullPointerException(
         "no offset for " + column.getTable() + " in " + flattenedRowOffsets);
   }
   position += offset;
   return position;
 }
Exemplo n.º 3
0
 public void markInvolvedInIndex(Column column) {
   assert column.getTable() == table;
   inIndex.set(column.getPosition(), true);
 }