| 533 | // ------------------------------------------------------------------------- |
| 534 | |
| 535 | @Override |
| 536 | public final LoaderImpl<R> fields(Field<?>... f) { |
| 537 | this.fields = f; |
| 538 | this.primaryKey = new BitSet(f.length); |
| 539 | |
| 540 | if (table.getPrimaryKey() != null) |
| 541 | for (int i = 0; i < fields.length; i++) |
| 542 | if (fields[i] != null && table.getPrimaryKey().getFields().contains(fields[i])) |
| 543 | primaryKey.set(i); |
| 544 | |
| 545 | return this; |
| 546 | } |
| 547 | |
| 548 | @Override |
| 549 | public final LoaderImpl<R> fields(Collection<? extends Field<?>> f) { |