diff --git a/jOOQ/src/main/java/org/jooq/Row1.java b/jOOQ/src/main/java/org/jooq/Row1.java index 4deaa8c8be..2c661e6162 100644 --- a/jOOQ/src/main/java/org/jooq/Row1.java +++ b/jOOQ/src/main/java/org/jooq/Row1.java @@ -44,6 +44,8 @@ import static org.jooq.SQLDialect.POSTGRES; import java.util.Collection; +import javax.annotation.Generated; + /** * A model type for a row value expression with degree 1 *

@@ -53,6 +55,7 @@ import java.util.Collection; * * @author Lukas Eder */ +@Generated("This class was generated using jOOQ-tools") public interface Row1 extends Row { // ------------------------------------------------------------------------ @@ -278,7 +281,7 @@ public interface Row1 extends Row { * is equivalent to (A = 1 AND B = 2) OR (A = 3 AND B = 4) */ @Support - Condition in(Collection> row); + Condition in(Collection> rows); /** * Compare this row value expression with a set of row value expressions for @@ -317,7 +320,7 @@ public interface Row1 extends Row { * equivalent to NOT((A = 1 AND B = 2) OR (A = 3 AND B = 4)) */ @Support - Condition notIn(Collection> row); + Condition notIn(Collection> rows); /** * Compare this row value expression with a set of row value expressions for diff --git a/jOOQ/src/main/java/org/jooq/Row2.java b/jOOQ/src/main/java/org/jooq/Row2.java index fa630e23ae..e8af344704 100644 --- a/jOOQ/src/main/java/org/jooq/Row2.java +++ b/jOOQ/src/main/java/org/jooq/Row2.java @@ -44,6 +44,8 @@ import static org.jooq.SQLDialect.POSTGRES; import java.util.Collection; +import javax.annotation.Generated; + /** * A model type for a row value expression with degree 2 *

@@ -53,6 +55,7 @@ import java.util.Collection; * * @author Lukas Eder */ +@Generated("This class was generated using jOOQ-tools") public interface Row2 extends Row { // ------------------------------------------------------------------------ @@ -85,6 +88,14 @@ public interface Row2 extends Row { @Support Condition equal(Row2 row); + /** + * Compare this row value expression with a record for equality + * + * @see #equal(Row2) + */ + @Support + Condition equal(Record2 record); + /** * Compare this row value expression with another row value expression for * equality @@ -127,6 +138,14 @@ public interface Row2 extends Row { @Support Condition eq(Row2 row); + /** + * Compare this row value expression with a record for equality + * + * @see #eq(Row2) + */ + @Support + Condition eq(Record2 record); + /** * Compare this row value expression with another row value expression for * equality @@ -169,6 +188,14 @@ public interface Row2 extends Row { @Support Condition notEqual(Row2 row); + /** + * Compare this row value expression with a record for non-equality + * + * @see #notEqual(Row2) + */ + @Support + Condition notEqual(Record2 record); + /** * Compare this row value expression with another row value expression for * non-equality @@ -211,6 +238,14 @@ public interface Row2 extends Row { @Support Condition ne(Row2 row); + /** + * Compare this row value expression with a record for non-equality + * + * @see #ne(Row2) + */ + @Support + Condition ne(Record2 record); + /** * Compare this row value expression with another row value expression for * non-equality @@ -265,6 +300,14 @@ public interface Row2 extends Row { @Support Condition in(Row2... rows); + /** + * Compare this row value expression with a set of records for equality + * + * @see #in(Row2[]) + */ + @Support + Condition in(Record2... record); + /** * Compare this row value expression with a subselect for equality */ @@ -297,6 +340,14 @@ public interface Row2 extends Row { @Support Condition notIn(Row2... rows); + /** + * Compare this row value expression with a set of records for non-equality + * + * @see #notIn(Row2[]) + */ + @Support + Condition notIn(Record2... record); + /** * Compare this row value expression with a subselect for non-equality */ @@ -372,4 +423,5 @@ public interface Row2 extends Row { */ @Support Condition overlaps(Row2 row); + } diff --git a/jOOQ/src/main/java/org/jooq/Row3.java b/jOOQ/src/main/java/org/jooq/Row3.java index 2e71aec35e..48c0cdba48 100644 --- a/jOOQ/src/main/java/org/jooq/Row3.java +++ b/jOOQ/src/main/java/org/jooq/Row3.java @@ -44,6 +44,8 @@ import static org.jooq.SQLDialect.POSTGRES; import java.util.Collection; +import javax.annotation.Generated; + /** * A model type for a row value expression with degree 3 *

@@ -53,6 +55,7 @@ import java.util.Collection; * * @author Lukas Eder */ +@Generated("This class was generated using jOOQ-tools") public interface Row3 extends Row { // ------------------------------------------------------------------------ @@ -90,6 +93,14 @@ public interface Row3 extends Row { @Support Condition equal(Row3 row); + /** + * Compare this row value expression with a record for equality + * + * @see #equal(Row3) + */ + @Support + Condition equal(Record3 record); + /** * Compare this row value expression with another row value expression for * equality @@ -132,6 +143,14 @@ public interface Row3 extends Row { @Support Condition eq(Row3 row); + /** + * Compare this row value expression with a record for equality + * + * @see #eq(Row3) + */ + @Support + Condition eq(Record3 record); + /** * Compare this row value expression with another row value expression for * equality @@ -174,6 +193,14 @@ public interface Row3 extends Row { @Support Condition notEqual(Row3 row); + /** + * Compare this row value expression with a record for non-equality + * + * @see #notEqual(Row3) + */ + @Support + Condition notEqual(Record3 record); + /** * Compare this row value expression with another row value expression for * non-equality @@ -216,6 +243,14 @@ public interface Row3 extends Row { @Support Condition ne(Row3 row); + /** + * Compare this row value expression with a record for non-equality + * + * @see #ne(Row3) + */ + @Support + Condition ne(Record3 record); + /** * Compare this row value expression with another row value expression for * non-equality @@ -270,6 +305,14 @@ public interface Row3 extends Row { @Support Condition in(Row3... rows); + /** + * Compare this row value expression with a set of records for equality + * + * @see #in(Row3[]) + */ + @Support + Condition in(Record3... record); + /** * Compare this row value expression with a subselect for equality */ @@ -302,9 +345,18 @@ public interface Row3 extends Row { @Support Condition notIn(Row3... rows); + /** + * Compare this row value expression with a set of records for non-equality + * + * @see #notIn(Row3[]) + */ + @Support + Condition notIn(Record3... record); + /** * Compare this row value expression with a subselect for non-equality */ @Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES }) Condition notIn(Select> select); + } diff --git a/jOOQ/src/main/java/org/jooq/Row4.java b/jOOQ/src/main/java/org/jooq/Row4.java index 8190ea8cc6..451c81daae 100644 --- a/jOOQ/src/main/java/org/jooq/Row4.java +++ b/jOOQ/src/main/java/org/jooq/Row4.java @@ -44,6 +44,8 @@ import static org.jooq.SQLDialect.POSTGRES; import java.util.Collection; +import javax.annotation.Generated; + /** * A model type for a row value expression with degree 4 *

@@ -53,6 +55,7 @@ import java.util.Collection; * * @author Lukas Eder */ +@Generated("This class was generated using jOOQ-tools") public interface Row4 extends Row { // ------------------------------------------------------------------------ @@ -95,6 +98,14 @@ public interface Row4 extends Row { @Support Condition equal(Row4 row); + /** + * Compare this row value expression with a record for equality + * + * @see #equal(Row4) + */ + @Support + Condition equal(Record4 record); + /** * Compare this row value expression with another row value expression for * equality @@ -137,6 +148,14 @@ public interface Row4 extends Row { @Support Condition eq(Row4 row); + /** + * Compare this row value expression with a record for equality + * + * @see #eq(Row4) + */ + @Support + Condition eq(Record4 record); + /** * Compare this row value expression with another row value expression for * equality @@ -179,6 +198,14 @@ public interface Row4 extends Row { @Support Condition notEqual(Row4 row); + /** + * Compare this row value expression with a record for non-equality + * + * @see #notEqual(Row4) + */ + @Support + Condition notEqual(Record4 record); + /** * Compare this row value expression with another row value expression for * non-equality @@ -221,6 +248,14 @@ public interface Row4 extends Row { @Support Condition ne(Row4 row); + /** + * Compare this row value expression with a record for non-equality + * + * @see #ne(Row4) + */ + @Support + Condition ne(Record4 record); + /** * Compare this row value expression with another row value expression for * non-equality @@ -275,6 +310,14 @@ public interface Row4 extends Row { @Support Condition in(Row4... rows); + /** + * Compare this row value expression with a set of records for equality + * + * @see #in(Row4[]) + */ + @Support + Condition in(Record4... record); + /** * Compare this row value expression with a subselect for equality */ @@ -307,9 +350,18 @@ public interface Row4 extends Row { @Support Condition notIn(Row4... rows); + /** + * Compare this row value expression with a set of records for non-equality + * + * @see #notIn(Row4[]) + */ + @Support + Condition notIn(Record4... record); + /** * Compare this row value expression with a subselect for non-equality */ @Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES }) Condition notIn(Select> select); + } diff --git a/jOOQ/src/main/java/org/jooq/Row5.java b/jOOQ/src/main/java/org/jooq/Row5.java index 3238023436..e1ee109fd7 100644 --- a/jOOQ/src/main/java/org/jooq/Row5.java +++ b/jOOQ/src/main/java/org/jooq/Row5.java @@ -44,6 +44,8 @@ import static org.jooq.SQLDialect.POSTGRES; import java.util.Collection; +import javax.annotation.Generated; + /** * A model type for a row value expression with degree 5 *

@@ -53,6 +55,7 @@ import java.util.Collection; * * @author Lukas Eder */ +@Generated("This class was generated using jOOQ-tools") public interface Row5 extends Row { // ------------------------------------------------------------------------ @@ -100,6 +103,14 @@ public interface Row5 extends Row { @Support Condition equal(Row5 row); + /** + * Compare this row value expression with a record for equality + * + * @see #equal(Row5) + */ + @Support + Condition equal(Record5 record); + /** * Compare this row value expression with another row value expression for * equality @@ -142,6 +153,14 @@ public interface Row5 extends Row { @Support Condition eq(Row5 row); + /** + * Compare this row value expression with a record for equality + * + * @see #eq(Row5) + */ + @Support + Condition eq(Record5 record); + /** * Compare this row value expression with another row value expression for * equality @@ -184,6 +203,14 @@ public interface Row5 extends Row { @Support Condition notEqual(Row5 row); + /** + * Compare this row value expression with a record for non-equality + * + * @see #notEqual(Row5) + */ + @Support + Condition notEqual(Record5 record); + /** * Compare this row value expression with another row value expression for * non-equality @@ -226,6 +253,14 @@ public interface Row5 extends Row { @Support Condition ne(Row5 row); + /** + * Compare this row value expression with a record for non-equality + * + * @see #ne(Row5) + */ + @Support + Condition ne(Record5 record); + /** * Compare this row value expression with another row value expression for * non-equality @@ -280,6 +315,14 @@ public interface Row5 extends Row { @Support Condition in(Row5... rows); + /** + * Compare this row value expression with a set of records for equality + * + * @see #in(Row5[]) + */ + @Support + Condition in(Record5... record); + /** * Compare this row value expression with a subselect for equality */ @@ -312,9 +355,18 @@ public interface Row5 extends Row { @Support Condition notIn(Row5... rows); + /** + * Compare this row value expression with a set of records for non-equality + * + * @see #notIn(Row5[]) + */ + @Support + Condition notIn(Record5... record); + /** * Compare this row value expression with a subselect for non-equality */ @Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES }) Condition notIn(Select> select); + } diff --git a/jOOQ/src/main/java/org/jooq/Row6.java b/jOOQ/src/main/java/org/jooq/Row6.java index 8dbcf6cf4f..c94d667960 100644 --- a/jOOQ/src/main/java/org/jooq/Row6.java +++ b/jOOQ/src/main/java/org/jooq/Row6.java @@ -44,6 +44,8 @@ import static org.jooq.SQLDialect.POSTGRES; import java.util.Collection; +import javax.annotation.Generated; + /** * A model type for a row value expression with degree 6 *

@@ -53,6 +55,7 @@ import java.util.Collection; * * @author Lukas Eder */ +@Generated("This class was generated using jOOQ-tools") public interface Row6 extends Row { // ------------------------------------------------------------------------ @@ -105,6 +108,14 @@ public interface Row6 extends Row { @Support Condition equal(Row6 row); + /** + * Compare this row value expression with a record for equality + * + * @see #equal(Row6) + */ + @Support + Condition equal(Record6 record); + /** * Compare this row value expression with another row value expression for * equality @@ -132,7 +143,7 @@ public interface Row6 extends Row { /** * Compare this row value expression with a subselect for equality */ - @Support + @Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES }) Condition equal(Select> select); /** @@ -147,6 +158,14 @@ public interface Row6 extends Row { @Support Condition eq(Row6 row); + /** + * Compare this row value expression with a record for equality + * + * @see #eq(Row6) + */ + @Support + Condition eq(Record6 record); + /** * Compare this row value expression with another row value expression for * equality @@ -174,7 +193,7 @@ public interface Row6 extends Row { /** * Compare this row value expression with a subselect for equality */ - @Support + @Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES }) Condition eq(Select> select); /** @@ -189,6 +208,14 @@ public interface Row6 extends Row { @Support Condition notEqual(Row6 row); + /** + * Compare this row value expression with a record for non-equality + * + * @see #notEqual(Row6) + */ + @Support + Condition notEqual(Record6 record); + /** * Compare this row value expression with another row value expression for * non-equality @@ -216,7 +243,7 @@ public interface Row6 extends Row { /** * Compare this row value expression with a subselect for non-equality */ - @Support + @Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES }) Condition notEqual(Select> select); /** @@ -231,6 +258,14 @@ public interface Row6 extends Row { @Support Condition ne(Row6 row); + /** + * Compare this row value expression with a record for non-equality + * + * @see #ne(Row6) + */ + @Support + Condition ne(Record6 record); + /** * Compare this row value expression with another row value expression for * non-equality @@ -258,7 +293,7 @@ public interface Row6 extends Row { /** * Compare this row value expression with a subselect for non-equality */ - @Support + @Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES }) Condition ne(Select> select); /** @@ -285,6 +320,14 @@ public interface Row6 extends Row { @Support Condition in(Row6... rows); + /** + * Compare this row value expression with a set of records for equality + * + * @see #in(Row6[]) + */ + @Support + Condition in(Record6... record); + /** * Compare this row value expression with a subselect for equality */ @@ -317,9 +360,18 @@ public interface Row6 extends Row { @Support Condition notIn(Row6... rows); + /** + * Compare this row value expression with a set of records for non-equality + * + * @see #notIn(Row6[]) + */ + @Support + Condition notIn(Record6... record); + /** * Compare this row value expression with a subselect for non-equality */ @Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES }) Condition notIn(Select> select); + } diff --git a/jOOQ/src/main/java/org/jooq/Row7.java b/jOOQ/src/main/java/org/jooq/Row7.java index f4b3412212..1c869f4ae3 100644 --- a/jOOQ/src/main/java/org/jooq/Row7.java +++ b/jOOQ/src/main/java/org/jooq/Row7.java @@ -44,6 +44,8 @@ import static org.jooq.SQLDialect.POSTGRES; import java.util.Collection; +import javax.annotation.Generated; + /** * A model type for a row value expression with degree 7 *

@@ -53,6 +55,7 @@ import java.util.Collection; * * @author Lukas Eder */ +@Generated("This class was generated using jOOQ-tools") public interface Row7 extends Row { // ------------------------------------------------------------------------ @@ -110,6 +113,14 @@ public interface Row7 extends Row { @Support Condition equal(Row7 row); + /** + * Compare this row value expression with a record for equality + * + * @see #equal(Row7) + */ + @Support + Condition equal(Record7 record); + /** * Compare this row value expression with another row value expression for * equality @@ -152,6 +163,14 @@ public interface Row7 extends Row { @Support Condition eq(Row7 row); + /** + * Compare this row value expression with a record for equality + * + * @see #eq(Row7) + */ + @Support + Condition eq(Record7 record); + /** * Compare this row value expression with another row value expression for * equality @@ -194,6 +213,14 @@ public interface Row7 extends Row { @Support Condition notEqual(Row7 row); + /** + * Compare this row value expression with a record for non-equality + * + * @see #notEqual(Row7) + */ + @Support + Condition notEqual(Record7 record); + /** * Compare this row value expression with another row value expression for * non-equality @@ -219,7 +246,7 @@ public interface Row7 extends Row { Condition notEqual(Field t1, Field t2, Field t3, Field t4, Field t5, Field t6, Field t7); /** - * Compare this row value expression with a subselect for not-equality + * Compare this row value expression with a subselect for non-equality */ @Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES }) Condition notEqual(Select> select); @@ -236,6 +263,14 @@ public interface Row7 extends Row { @Support Condition ne(Row7 row); + /** + * Compare this row value expression with a record for non-equality + * + * @see #ne(Row7) + */ + @Support + Condition ne(Record7 record); + /** * Compare this row value expression with another row value expression for * non-equality @@ -261,7 +296,7 @@ public interface Row7 extends Row { Condition ne(Field t1, Field t2, Field t3, Field t4, Field t5, Field t6, Field t7); /** - * Compare this row value expression with a subselect for not-equality + * Compare this row value expression with a subselect for non-equality */ @Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES }) Condition ne(Select> select); @@ -290,6 +325,14 @@ public interface Row7 extends Row { @Support Condition in(Row7... rows); + /** + * Compare this row value expression with a set of records for equality + * + * @see #in(Row7[]) + */ + @Support + Condition in(Record7... record); + /** * Compare this row value expression with a subselect for equality */ @@ -322,9 +365,18 @@ public interface Row7 extends Row { @Support Condition notIn(Row7... rows); + /** + * Compare this row value expression with a set of records for non-equality + * + * @see #notIn(Row7[]) + */ + @Support + Condition notIn(Record7... record); + /** * Compare this row value expression with a subselect for non-equality */ @Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES }) Condition notIn(Select> select); + } diff --git a/jOOQ/src/main/java/org/jooq/Row8.java b/jOOQ/src/main/java/org/jooq/Row8.java index 54dc2d5a65..323b4a41d5 100644 --- a/jOOQ/src/main/java/org/jooq/Row8.java +++ b/jOOQ/src/main/java/org/jooq/Row8.java @@ -44,6 +44,8 @@ import static org.jooq.SQLDialect.POSTGRES; import java.util.Collection; +import javax.annotation.Generated; + /** * A model type for a row value expression with degree 8 *

@@ -53,6 +55,7 @@ import java.util.Collection; * * @author Lukas Eder */ +@Generated("This class was generated using jOOQ-tools") public interface Row8 extends Row { // ------------------------------------------------------------------------ @@ -95,7 +98,7 @@ public interface Row8 extends Row { Field field7(); /** - * Get the eight field + * Get the eighth field */ Field field8(); @@ -115,6 +118,14 @@ public interface Row8 extends Row { @Support Condition equal(Row8 row); + /** + * Compare this row value expression with a record for equality + * + * @see #equal(Row8) + */ + @Support + Condition equal(Record8 record); + /** * Compare this row value expression with another row value expression for * equality @@ -137,8 +148,7 @@ public interface Row8 extends Row { * A = 1 AND B = 2 */ @Support - Condition equal(Field t1, Field t2, Field t3, Field t4, Field t5, Field t6, Field t7, - Field t8); + Condition equal(Field t1, Field t2, Field t3, Field t4, Field t5, Field t6, Field t7, Field t8); /** * Compare this row value expression with a subselect for equality @@ -158,6 +168,14 @@ public interface Row8 extends Row { @Support Condition eq(Row8 row); + /** + * Compare this row value expression with a record for equality + * + * @see #eq(Row8) + */ + @Support + Condition eq(Record8 record); + /** * Compare this row value expression with another row value expression for * equality @@ -180,8 +198,7 @@ public interface Row8 extends Row { * A = 1 AND B = 2 */ @Support - Condition eq(Field t1, Field t2, Field t3, Field t4, Field t5, Field t6, Field t7, - Field t8); + Condition eq(Field t1, Field t2, Field t3, Field t4, Field t5, Field t6, Field t7, Field t8); /** * Compare this row value expression with a subselect for equality @@ -201,6 +218,14 @@ public interface Row8 extends Row { @Support Condition notEqual(Row8 row); + /** + * Compare this row value expression with a record for non-equality + * + * @see #notEqual(Row8) + */ + @Support + Condition notEqual(Record8 record); + /** * Compare this row value expression with another row value expression for * non-equality @@ -223,8 +248,7 @@ public interface Row8 extends Row { * NOT(A = 1 AND B = 2) */ @Support - Condition notEqual(Field t1, Field t2, Field t3, Field t4, Field t5, Field t6, - Field t7, Field t8); + Condition notEqual(Field t1, Field t2, Field t3, Field t4, Field t5, Field t6, Field t7, Field t8); /** * Compare this row value expression with a subselect for non-equality @@ -244,6 +268,14 @@ public interface Row8 extends Row { @Support Condition ne(Row8 row); + /** + * Compare this row value expression with a record for non-equality + * + * @see #ne(Row8) + */ + @Support + Condition ne(Record8 record); + /** * Compare this row value expression with another row value expression for * non-equality @@ -266,8 +298,7 @@ public interface Row8 extends Row { * NOT(A = 1 AND B = 2) */ @Support - Condition ne(Field t1, Field t2, Field t3, Field t4, Field t5, Field t6, Field t7, - Field t8); + Condition ne(Field t1, Field t2, Field t3, Field t4, Field t5, Field t6, Field t7, Field t8); /** * Compare this row value expression with a subselect for non-equality @@ -299,6 +330,14 @@ public interface Row8 extends Row { @Support Condition in(Row8... rows); + /** + * Compare this row value expression with a set of records for equality + * + * @see #in(Row8[]) + */ + @Support + Condition in(Record8... record); + /** * Compare this row value expression with a subselect for equality */ @@ -331,9 +370,18 @@ public interface Row8 extends Row { @Support Condition notIn(Row8... rows); + /** + * Compare this row value expression with a set of records for non-equality + * + * @see #notIn(Row8[]) + */ + @Support + Condition notIn(Record8... record); + /** * Compare this row value expression with a subselect for non-equality */ @Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES }) Condition notIn(Select> select); + } diff --git a/jOOQ/src/main/java/org/jooq/RowN.java b/jOOQ/src/main/java/org/jooq/RowN.java index 8787323fea..08f7dc91b1 100644 --- a/jOOQ/src/main/java/org/jooq/RowN.java +++ b/jOOQ/src/main/java/org/jooq/RowN.java @@ -67,6 +67,14 @@ public interface RowN extends Row { @Support Condition equal(RowN row); + /** + * Compare this row value expression with a record for equality + * + * @see #equal(RowN) + */ + @Support + Condition equal(Record record); + /** * Compare this row value expression with another row value expression for * equality @@ -103,6 +111,14 @@ public interface RowN extends Row { @Support Condition eq(RowN row); + /** + * Compare this row value expression with a record for equality + * + * @see #eq(RowN) + */ + @Support + Condition eq(Record record); + /** * Compare this row value expression with another row value expression for * equality @@ -139,6 +155,14 @@ public interface RowN extends Row { @Support Condition notEqual(RowN row); + /** + * Compare this row value expression with a record for non-equality + * + * @see #notEqual(RowN) + */ + @Support + Condition notEqual(Record record); + /** * Compare this row value expression with another row value expression for * non-equality @@ -175,6 +199,14 @@ public interface RowN extends Row { @Support Condition ne(RowN row); + /** + * Compare this row value expression with a record for non-equality + * + * @see #ne(RowN) + */ + @Support + Condition ne(Record record); + /** * Compare this row value expression with another row value expression for * non-equality @@ -223,6 +255,14 @@ public interface RowN extends Row { @Support Condition in(RowN... rows); + /** + * Compare this row value expression with a set of records for equality + * + * @see #in(RowN[]) + */ + @Support + Condition in(Record... records); + /** * Compare this row value expression with a set of row value expressions for * equality @@ -249,6 +289,14 @@ public interface RowN extends Row { @Support Condition notIn(RowN... rows); + /** + * Compare this row value expression with a set of records for non-equality + * + * @see #notIn(RowN[]) + */ + @Support + Condition notIn(Record... records); + /** * Compare this row value expression with a subselect for equality *

diff --git a/jOOQ/src/main/java/org/jooq/impl/RowImpl.java b/jOOQ/src/main/java/org/jooq/impl/RowImpl.java index af0d79f871..5efdb06811 100644 --- a/jOOQ/src/main/java/org/jooq/impl/RowImpl.java +++ b/jOOQ/src/main/java/org/jooq/impl/RowImpl.java @@ -52,6 +52,7 @@ import static org.jooq.SQLDialect.SQLITE; import static org.jooq.SQLDialect.SQLSERVER; import static org.jooq.SQLDialect.SYBASE; import static org.jooq.impl.Factory.row; +import static org.jooq.impl.Factory.vals; import static org.jooq.impl.SubqueryOperator.NOT_IN; import java.util.ArrayList; @@ -59,6 +60,8 @@ import java.util.Arrays; import java.util.Collection; import java.util.List; +import javax.annotation.Generated; + import org.jooq.BindContext; import org.jooq.Comparator; import org.jooq.Condition; @@ -68,8 +71,17 @@ import org.jooq.Field; import org.jooq.Operator; import org.jooq.QueryPart; import org.jooq.QueryPartInternal; +import org.jooq.Record; import org.jooq.Record1; +import org.jooq.Record2; +import org.jooq.Record3; +import org.jooq.Record4; +import org.jooq.Record5; +import org.jooq.Record6; +import org.jooq.Record7; +import org.jooq.Record8; import org.jooq.RenderContext; +import org.jooq.Row; import org.jooq.Row1; import org.jooq.Row2; import org.jooq.Row3; @@ -84,6 +96,7 @@ import org.jooq.Select; /** * @author Lukas Eder */ +@Generated("This class was generated using jOOQ-tools") @SuppressWarnings({ "rawtypes", "unchecked" }) class RowImpl extends AbstractQueryPart implements @@ -256,6 +269,48 @@ implements return new Compare(record.valuesRow(), Comparator.EQUALS); } + @Override + public final Condition equal(Record2 record) { + return new Compare(record.valuesRow(), Comparator.EQUALS); + } + + @Override + public final Condition equal(Record3 record) { + return new Compare(record.valuesRow(), Comparator.EQUALS); + } + + @Override + public final Condition equal(Record4 record) { + return new Compare(record.valuesRow(), Comparator.EQUALS); + } + + @Override + public final Condition equal(Record5 record) { + return new Compare(record.valuesRow(), Comparator.EQUALS); + } + + @Override + public final Condition equal(Record6 record) { + return new Compare(record.valuesRow(), Comparator.EQUALS); + } + + @Override + public final Condition equal(Record7 record) { + return new Compare(record.valuesRow(), Comparator.EQUALS); + } + + @Override + public final Condition equal(Record8 record) { + return new Compare(record.valuesRow(), Comparator.EQUALS); + } + + @Override + public final Condition equal(Record record) { + List> f = record.getFields(); + Row row = new RowImpl(vals(record.intoArray(), f.toArray(new Field[f.size()]))); + return new Compare(row, Comparator.EQUALS); + } + @Override public final Condition equal(T1 t1) { return equal(row(t1)); @@ -396,6 +451,46 @@ implements return equal(record); } + @Override + public final Condition eq(Record2 record) { + return equal(record); + } + + @Override + public final Condition eq(Record3 record) { + return equal(record); + } + + @Override + public final Condition eq(Record4 record) { + return equal(record); + } + + @Override + public final Condition eq(Record5 record) { + return equal(record); + } + + @Override + public final Condition eq(Record6 record) { + return equal(record); + } + + @Override + public final Condition eq(Record7 record) { + return equal(record); + } + + @Override + public final Condition eq(Record8 record) { + return equal(record); + } + + @Override + public final Condition eq(Record record) { + return equal(record); + } + @Override public final Condition eq(T1 t1) { return equal(t1); @@ -536,6 +631,48 @@ implements return new Compare(record.valuesRow(), Comparator.NOT_EQUALS); } + @Override + public final Condition notEqual(Record2 record) { + return new Compare(record.valuesRow(), Comparator.NOT_EQUALS); + } + + @Override + public final Condition notEqual(Record3 record) { + return new Compare(record.valuesRow(), Comparator.NOT_EQUALS); + } + + @Override + public final Condition notEqual(Record4 record) { + return new Compare(record.valuesRow(), Comparator.NOT_EQUALS); + } + + @Override + public final Condition notEqual(Record5 record) { + return new Compare(record.valuesRow(), Comparator.NOT_EQUALS); + } + + @Override + public final Condition notEqual(Record6 record) { + return new Compare(record.valuesRow(), Comparator.NOT_EQUALS); + } + + @Override + public final Condition notEqual(Record7 record) { + return new Compare(record.valuesRow(), Comparator.NOT_EQUALS); + } + + @Override + public final Condition notEqual(Record8 record) { + return new Compare(record.valuesRow(), Comparator.NOT_EQUALS); + } + + @Override + public final Condition notEqual(Record record) { + List> f = record.getFields(); + Row row = new RowImpl(vals(record.intoArray(), f.toArray(new Field[f.size()]))); + return new Compare(row, Comparator.NOT_EQUALS); + } + @Override public final Condition notEqual(T1 t1) { return notEqual(row(t1)); @@ -676,6 +813,46 @@ implements return notEqual(record); } + @Override + public final Condition ne(Record2 record) { + return notEqual(record); + } + + @Override + public final Condition ne(Record3 record) { + return notEqual(record); + } + + @Override + public final Condition ne(Record4 record) { + return notEqual(record); + } + + @Override + public final Condition ne(Record5 record) { + return notEqual(record); + } + + @Override + public final Condition ne(Record6 record) { + return notEqual(record); + } + + @Override + public final Condition ne(Record7 record) { + return notEqual(record); + } + + @Override + public final Condition ne(Record8 record) { + return notEqual(record); + } + + @Override + public final Condition ne(Record record) { + return notEqual(record); + } + @Override public final Condition ne(T1 t1) { return notEqual(t1); @@ -822,6 +999,95 @@ implements return in(rows); } + @Override + public final Condition in(Record2... records) { + Row2[] rows = new Row2[records.length]; + + for (int i = 0; i < records.length; i++) { + rows[i] = records[i].valuesRow(); + } + + return in(rows); + } + + @Override + public final Condition in(Record3... records) { + Row3[] rows = new Row3[records.length]; + + for (int i = 0; i < records.length; i++) { + rows[i] = records[i].valuesRow(); + } + + return in(rows); + } + + @Override + public final Condition in(Record4... records) { + Row4[] rows = new Row4[records.length]; + + for (int i = 0; i < records.length; i++) { + rows[i] = records[i].valuesRow(); + } + + return in(rows); + } + + @Override + public final Condition in(Record5... records) { + Row5[] rows = new Row5[records.length]; + + for (int i = 0; i < records.length; i++) { + rows[i] = records[i].valuesRow(); + } + + return in(rows); + } + + @Override + public final Condition in(Record6... records) { + Row6[] rows = new Row6[records.length]; + + for (int i = 0; i < records.length; i++) { + rows[i] = records[i].valuesRow(); + } + + return in(rows); + } + + @Override + public final Condition in(Record7... records) { + Row7[] rows = new Row7[records.length]; + + for (int i = 0; i < records.length; i++) { + rows[i] = records[i].valuesRow(); + } + + return in(rows); + } + + @Override + public final Condition in(Record8... records) { + Row8[] rows = new Row8[records.length]; + + for (int i = 0; i < records.length; i++) { + rows[i] = records[i].valuesRow(); + } + + return in(rows); + } + + @Override + public final Condition in(Record... records) { + RowN[] rows = new RowN[records.length]; + + for (int i = 0; i < records.length; i++) { + List> f = records[i].getFields(); + rows[i] = new RowImpl(vals(records[i].intoArray(), f.toArray(new Field[f.size()]))); + } + + return in(rows); + } + @Override public final Condition notIn(Row1... rows) { return notIn(Arrays.asList(rows)); @@ -878,6 +1144,95 @@ implements return notIn(rows); } + @Override + public final Condition notIn(Record2... records) { + Row2[] rows = new Row2[records.length]; + + for (int i = 0; i < records.length; i++) { + rows[i] = records[i].valuesRow(); + } + + return notIn(rows); + } + + @Override + public final Condition notIn(Record3... records) { + Row3[] rows = new Row3[records.length]; + + for (int i = 0; i < records.length; i++) { + rows[i] = records[i].valuesRow(); + } + + return notIn(rows); + } + + @Override + public final Condition notIn(Record4... records) { + Row4[] rows = new Row4[records.length]; + + for (int i = 0; i < records.length; i++) { + rows[i] = records[i].valuesRow(); + } + + return notIn(rows); + } + + @Override + public final Condition notIn(Record5... records) { + Row5[] rows = new Row5[records.length]; + + for (int i = 0; i < records.length; i++) { + rows[i] = records[i].valuesRow(); + } + + return notIn(rows); + } + + @Override + public final Condition notIn(Record6... records) { + Row6[] rows = new Row6[records.length]; + + for (int i = 0; i < records.length; i++) { + rows[i] = records[i].valuesRow(); + } + + return notIn(rows); + } + + @Override + public final Condition notIn(Record7... records) { + Row7[] rows = new Row7[records.length]; + + for (int i = 0; i < records.length; i++) { + rows[i] = records[i].valuesRow(); + } + + return notIn(rows); + } + + @Override + public final Condition notIn(Record8... records) { + Row8[] rows = new Row8[records.length]; + + for (int i = 0; i < records.length; i++) { + rows[i] = records[i].valuesRow(); + } + + return notIn(rows); + } + + @Override + public final Condition notIn(Record... records) { + RowN[] rows = new RowN[records.length]; + + for (int i = 0; i < records.length; i++) { + List> f = records[i].getFields(); + rows[i] = new RowImpl(vals(records[i].intoArray(), f.toArray(new Field[f.size()]))); + } + + return notIn(rows); + } + @Override public final Condition in(Collection rows) { QueryPartList> list = new QueryPartList>(rows);