[#2118] Let Row extend Iterable<Field<?>>
This commit is contained in:
parent
5a63eaaa03
commit
7d00425231
@ -1117,11 +1117,13 @@ class Rows extends Generators {
|
||||
«classHeader»
|
||||
package org.jooq.impl;
|
||||
|
||||
import static java.util.Arrays.asList;
|
||||
import static org.jooq.impl.Factory.row;
|
||||
import static org.jooq.impl.Factory.vals;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@ -2114,6 +2116,14 @@ class Rows extends Generators {
|
||||
public final Condition overlaps(Row2<T1, T2> row) {
|
||||
return new RowOverlapsCondition(this, row);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// XXX: Other
|
||||
// ------------------------------------------------------------------------
|
||||
@Override
|
||||
public final Iterator<Field<?>> iterator() {
|
||||
return asList(fields).iterator();
|
||||
}
|
||||
}
|
||||
''');
|
||||
|
||||
|
||||
@ -44,7 +44,7 @@ package org.jooq;
|
||||
*
|
||||
* @author Lukas Eder
|
||||
*/
|
||||
public interface Row extends QueryPart {
|
||||
public interface Row extends QueryPart, Iterable<Field<?>> {
|
||||
|
||||
/**
|
||||
* Get the degree of this row value expression
|
||||
|
||||
@ -35,11 +35,13 @@
|
||||
*/
|
||||
package org.jooq.impl;
|
||||
|
||||
import static java.util.Arrays.asList;
|
||||
import static org.jooq.impl.Factory.row;
|
||||
import static org.jooq.impl.Factory.vals;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@ -9508,4 +9510,12 @@ implements
|
||||
public final Condition overlaps(Row2<T1, T2> row) {
|
||||
return new RowOverlapsCondition(this, row);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// XXX: Other
|
||||
// ------------------------------------------------------------------------
|
||||
@Override
|
||||
public final Iterator<Field<?>> iterator() {
|
||||
return asList(fields).iterator();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user