[#1966] Add a Row[N].equal(Record[N]) and similar convenience methods

This commit is contained in:
Lukas Eder 2012-11-10 14:24:15 +01:00
parent 7f31b11909
commit 16b4c68a0e
10 changed files with 783 additions and 17 deletions

View File

@ -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 <code>1</code>
* <p>
@ -53,6 +55,7 @@ import java.util.Collection;
*
* @author Lukas Eder
*/
@Generated("This class was generated using jOOQ-tools")
public interface Row1<T1> extends Row {
// ------------------------------------------------------------------------
@ -278,7 +281,7 @@ public interface Row1<T1> extends Row {
* is equivalent to <code>(A = 1 AND B = 2) OR (A = 3 AND B = 4)</code>
*/
@Support
Condition in(Collection<? extends Row1<T1>> row);
Condition in(Collection<? extends Row1<T1>> rows);
/**
* Compare this row value expression with a set of row value expressions for
@ -317,7 +320,7 @@ public interface Row1<T1> extends Row {
* equivalent to <code>NOT((A = 1 AND B = 2) OR (A = 3 AND B = 4))</code>
*/
@Support
Condition notIn(Collection<? extends Row1<T1>> row);
Condition notIn(Collection<? extends Row1<T1>> rows);
/**
* Compare this row value expression with a set of row value expressions for

View File

@ -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 <code>2</code>
* <p>
@ -53,6 +55,7 @@ import java.util.Collection;
*
* @author Lukas Eder
*/
@Generated("This class was generated using jOOQ-tools")
public interface Row2<T1, T2> extends Row {
// ------------------------------------------------------------------------
@ -85,6 +88,14 @@ public interface Row2<T1, T2> extends Row {
@Support
Condition equal(Row2<T1, T2> row);
/**
* Compare this row value expression with a record for equality
*
* @see #equal(Row2)
*/
@Support
Condition equal(Record2<T1, T2> record);
/**
* Compare this row value expression with another row value expression for
* equality
@ -127,6 +138,14 @@ public interface Row2<T1, T2> extends Row {
@Support
Condition eq(Row2<T1, T2> row);
/**
* Compare this row value expression with a record for equality
*
* @see #eq(Row2)
*/
@Support
Condition eq(Record2<T1, T2> record);
/**
* Compare this row value expression with another row value expression for
* equality
@ -169,6 +188,14 @@ public interface Row2<T1, T2> extends Row {
@Support
Condition notEqual(Row2<T1, T2> row);
/**
* Compare this row value expression with a record for non-equality
*
* @see #notEqual(Row2)
*/
@Support
Condition notEqual(Record2<T1, T2> record);
/**
* Compare this row value expression with another row value expression for
* non-equality
@ -211,6 +238,14 @@ public interface Row2<T1, T2> extends Row {
@Support
Condition ne(Row2<T1, T2> row);
/**
* Compare this row value expression with a record for non-equality
*
* @see #ne(Row2)
*/
@Support
Condition ne(Record2<T1, T2> record);
/**
* Compare this row value expression with another row value expression for
* non-equality
@ -265,6 +300,14 @@ public interface Row2<T1, T2> extends Row {
@Support
Condition in(Row2<T1, T2>... rows);
/**
* Compare this row value expression with a set of records for equality
*
* @see #in(Row2[])
*/
@Support
Condition in(Record2<T1, T2>... record);
/**
* Compare this row value expression with a subselect for equality
*/
@ -297,6 +340,14 @@ public interface Row2<T1, T2> extends Row {
@Support
Condition notIn(Row2<T1, T2>... rows);
/**
* Compare this row value expression with a set of records for non-equality
*
* @see #notIn(Row2[])
*/
@Support
Condition notIn(Record2<T1, T2>... record);
/**
* Compare this row value expression with a subselect for non-equality
*/
@ -372,4 +423,5 @@ public interface Row2<T1, T2> extends Row {
*/
@Support
Condition overlaps(Row2<T1, T2> row);
}

View File

@ -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 <code>3</code>
* <p>
@ -53,6 +55,7 @@ import java.util.Collection;
*
* @author Lukas Eder
*/
@Generated("This class was generated using jOOQ-tools")
public interface Row3<T1, T2, T3> extends Row {
// ------------------------------------------------------------------------
@ -90,6 +93,14 @@ public interface Row3<T1, T2, T3> extends Row {
@Support
Condition equal(Row3<T1, T2, T3> row);
/**
* Compare this row value expression with a record for equality
*
* @see #equal(Row3)
*/
@Support
Condition equal(Record3<T1, T2, T3> record);
/**
* Compare this row value expression with another row value expression for
* equality
@ -132,6 +143,14 @@ public interface Row3<T1, T2, T3> extends Row {
@Support
Condition eq(Row3<T1, T2, T3> row);
/**
* Compare this row value expression with a record for equality
*
* @see #eq(Row3)
*/
@Support
Condition eq(Record3<T1, T2, T3> record);
/**
* Compare this row value expression with another row value expression for
* equality
@ -174,6 +193,14 @@ public interface Row3<T1, T2, T3> extends Row {
@Support
Condition notEqual(Row3<T1, T2, T3> row);
/**
* Compare this row value expression with a record for non-equality
*
* @see #notEqual(Row3)
*/
@Support
Condition notEqual(Record3<T1, T2, T3> record);
/**
* Compare this row value expression with another row value expression for
* non-equality
@ -216,6 +243,14 @@ public interface Row3<T1, T2, T3> extends Row {
@Support
Condition ne(Row3<T1, T2, T3> row);
/**
* Compare this row value expression with a record for non-equality
*
* @see #ne(Row3)
*/
@Support
Condition ne(Record3<T1, T2, T3> record);
/**
* Compare this row value expression with another row value expression for
* non-equality
@ -270,6 +305,14 @@ public interface Row3<T1, T2, T3> extends Row {
@Support
Condition in(Row3<T1, T2, T3>... rows);
/**
* Compare this row value expression with a set of records for equality
*
* @see #in(Row3[])
*/
@Support
Condition in(Record3<T1, T2, T3>... record);
/**
* Compare this row value expression with a subselect for equality
*/
@ -302,9 +345,18 @@ public interface Row3<T1, T2, T3> extends Row {
@Support
Condition notIn(Row3<T1, T2, T3>... rows);
/**
* Compare this row value expression with a set of records for non-equality
*
* @see #notIn(Row3[])
*/
@Support
Condition notIn(Record3<T1, T2, T3>... record);
/**
* Compare this row value expression with a subselect for non-equality
*/
@Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES })
Condition notIn(Select<? extends Record3<T1, T2, T3>> select);
}

View File

@ -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 <code>4</code>
* <p>
@ -53,6 +55,7 @@ import java.util.Collection;
*
* @author Lukas Eder
*/
@Generated("This class was generated using jOOQ-tools")
public interface Row4<T1, T2, T3, T4> extends Row {
// ------------------------------------------------------------------------
@ -95,6 +98,14 @@ public interface Row4<T1, T2, T3, T4> extends Row {
@Support
Condition equal(Row4<T1, T2, T3, T4> row);
/**
* Compare this row value expression with a record for equality
*
* @see #equal(Row4)
*/
@Support
Condition equal(Record4<T1, T2, T3, T4> record);
/**
* Compare this row value expression with another row value expression for
* equality
@ -137,6 +148,14 @@ public interface Row4<T1, T2, T3, T4> extends Row {
@Support
Condition eq(Row4<T1, T2, T3, T4> row);
/**
* Compare this row value expression with a record for equality
*
* @see #eq(Row4)
*/
@Support
Condition eq(Record4<T1, T2, T3, T4> record);
/**
* Compare this row value expression with another row value expression for
* equality
@ -179,6 +198,14 @@ public interface Row4<T1, T2, T3, T4> extends Row {
@Support
Condition notEqual(Row4<T1, T2, T3, T4> row);
/**
* Compare this row value expression with a record for non-equality
*
* @see #notEqual(Row4)
*/
@Support
Condition notEqual(Record4<T1, T2, T3, T4> record);
/**
* Compare this row value expression with another row value expression for
* non-equality
@ -221,6 +248,14 @@ public interface Row4<T1, T2, T3, T4> extends Row {
@Support
Condition ne(Row4<T1, T2, T3, T4> row);
/**
* Compare this row value expression with a record for non-equality
*
* @see #ne(Row4)
*/
@Support
Condition ne(Record4<T1, T2, T3, T4> record);
/**
* Compare this row value expression with another row value expression for
* non-equality
@ -275,6 +310,14 @@ public interface Row4<T1, T2, T3, T4> extends Row {
@Support
Condition in(Row4<T1, T2, T3, T4>... rows);
/**
* Compare this row value expression with a set of records for equality
*
* @see #in(Row4[])
*/
@Support
Condition in(Record4<T1, T2, T3, T4>... record);
/**
* Compare this row value expression with a subselect for equality
*/
@ -307,9 +350,18 @@ public interface Row4<T1, T2, T3, T4> extends Row {
@Support
Condition notIn(Row4<T1, T2, T3, T4>... rows);
/**
* Compare this row value expression with a set of records for non-equality
*
* @see #notIn(Row4[])
*/
@Support
Condition notIn(Record4<T1, T2, T3, T4>... record);
/**
* Compare this row value expression with a subselect for non-equality
*/
@Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES })
Condition notIn(Select<? extends Record4<T1, T2, T3, T4>> select);
}

View File

@ -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 <code>5</code>
* <p>
@ -53,6 +55,7 @@ import java.util.Collection;
*
* @author Lukas Eder
*/
@Generated("This class was generated using jOOQ-tools")
public interface Row5<T1, T2, T3, T4, T5> extends Row {
// ------------------------------------------------------------------------
@ -100,6 +103,14 @@ public interface Row5<T1, T2, T3, T4, T5> extends Row {
@Support
Condition equal(Row5<T1, T2, T3, T4, T5> row);
/**
* Compare this row value expression with a record for equality
*
* @see #equal(Row5)
*/
@Support
Condition equal(Record5<T1, T2, T3, T4, T5> record);
/**
* Compare this row value expression with another row value expression for
* equality
@ -142,6 +153,14 @@ public interface Row5<T1, T2, T3, T4, T5> extends Row {
@Support
Condition eq(Row5<T1, T2, T3, T4, T5> row);
/**
* Compare this row value expression with a record for equality
*
* @see #eq(Row5)
*/
@Support
Condition eq(Record5<T1, T2, T3, T4, T5> record);
/**
* Compare this row value expression with another row value expression for
* equality
@ -184,6 +203,14 @@ public interface Row5<T1, T2, T3, T4, T5> extends Row {
@Support
Condition notEqual(Row5<T1, T2, T3, T4, T5> row);
/**
* Compare this row value expression with a record for non-equality
*
* @see #notEqual(Row5)
*/
@Support
Condition notEqual(Record5<T1, T2, T3, T4, T5> record);
/**
* Compare this row value expression with another row value expression for
* non-equality
@ -226,6 +253,14 @@ public interface Row5<T1, T2, T3, T4, T5> extends Row {
@Support
Condition ne(Row5<T1, T2, T3, T4, T5> row);
/**
* Compare this row value expression with a record for non-equality
*
* @see #ne(Row5)
*/
@Support
Condition ne(Record5<T1, T2, T3, T4, T5> record);
/**
* Compare this row value expression with another row value expression for
* non-equality
@ -280,6 +315,14 @@ public interface Row5<T1, T2, T3, T4, T5> extends Row {
@Support
Condition in(Row5<T1, T2, T3, T4, T5>... rows);
/**
* Compare this row value expression with a set of records for equality
*
* @see #in(Row5[])
*/
@Support
Condition in(Record5<T1, T2, T3, T4, T5>... record);
/**
* Compare this row value expression with a subselect for equality
*/
@ -312,9 +355,18 @@ public interface Row5<T1, T2, T3, T4, T5> extends Row {
@Support
Condition notIn(Row5<T1, T2, T3, T4, T5>... rows);
/**
* Compare this row value expression with a set of records for non-equality
*
* @see #notIn(Row5[])
*/
@Support
Condition notIn(Record5<T1, T2, T3, T4, T5>... record);
/**
* Compare this row value expression with a subselect for non-equality
*/
@Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES })
Condition notIn(Select<? extends Record5<T1, T2, T3, T4, T5>> select);
}

View File

@ -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 <code>6</code>
* <p>
@ -53,6 +55,7 @@ import java.util.Collection;
*
* @author Lukas Eder
*/
@Generated("This class was generated using jOOQ-tools")
public interface Row6<T1, T2, T3, T4, T5, T6> extends Row {
// ------------------------------------------------------------------------
@ -105,6 +108,14 @@ public interface Row6<T1, T2, T3, T4, T5, T6> extends Row {
@Support
Condition equal(Row6<T1, T2, T3, T4, T5, T6> row);
/**
* Compare this row value expression with a record for equality
*
* @see #equal(Row6)
*/
@Support
Condition equal(Record6<T1, T2, T3, T4, T5, T6> record);
/**
* Compare this row value expression with another row value expression for
* equality
@ -132,7 +143,7 @@ public interface Row6<T1, T2, T3, T4, T5, T6> extends Row {
/**
* Compare this row value expression with a subselect for equality
*/
@Support
@Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES })
Condition equal(Select<? extends Record6<T1, T2, T3, T4, T5, T6>> select);
/**
@ -147,6 +158,14 @@ public interface Row6<T1, T2, T3, T4, T5, T6> extends Row {
@Support
Condition eq(Row6<T1, T2, T3, T4, T5, T6> row);
/**
* Compare this row value expression with a record for equality
*
* @see #eq(Row6)
*/
@Support
Condition eq(Record6<T1, T2, T3, T4, T5, T6> record);
/**
* Compare this row value expression with another row value expression for
* equality
@ -174,7 +193,7 @@ public interface Row6<T1, T2, T3, T4, T5, T6> extends Row {
/**
* Compare this row value expression with a subselect for equality
*/
@Support
@Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES })
Condition eq(Select<? extends Record6<T1, T2, T3, T4, T5, T6>> select);
/**
@ -189,6 +208,14 @@ public interface Row6<T1, T2, T3, T4, T5, T6> extends Row {
@Support
Condition notEqual(Row6<T1, T2, T3, T4, T5, T6> row);
/**
* Compare this row value expression with a record for non-equality
*
* @see #notEqual(Row6)
*/
@Support
Condition notEqual(Record6<T1, T2, T3, T4, T5, T6> record);
/**
* Compare this row value expression with another row value expression for
* non-equality
@ -216,7 +243,7 @@ public interface Row6<T1, T2, T3, T4, T5, T6> extends Row {
/**
* Compare this row value expression with a subselect for non-equality
*/
@Support
@Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES })
Condition notEqual(Select<? extends Record6<T1, T2, T3, T4, T5, T6>> select);
/**
@ -231,6 +258,14 @@ public interface Row6<T1, T2, T3, T4, T5, T6> extends Row {
@Support
Condition ne(Row6<T1, T2, T3, T4, T5, T6> row);
/**
* Compare this row value expression with a record for non-equality
*
* @see #ne(Row6)
*/
@Support
Condition ne(Record6<T1, T2, T3, T4, T5, T6> record);
/**
* Compare this row value expression with another row value expression for
* non-equality
@ -258,7 +293,7 @@ public interface Row6<T1, T2, T3, T4, T5, T6> extends Row {
/**
* Compare this row value expression with a subselect for non-equality
*/
@Support
@Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES })
Condition ne(Select<? extends Record6<T1, T2, T3, T4, T5, T6>> select);
/**
@ -285,6 +320,14 @@ public interface Row6<T1, T2, T3, T4, T5, T6> extends Row {
@Support
Condition in(Row6<T1, T2, T3, T4, T5, T6>... rows);
/**
* Compare this row value expression with a set of records for equality
*
* @see #in(Row6[])
*/
@Support
Condition in(Record6<T1, T2, T3, T4, T5, T6>... record);
/**
* Compare this row value expression with a subselect for equality
*/
@ -317,9 +360,18 @@ public interface Row6<T1, T2, T3, T4, T5, T6> extends Row {
@Support
Condition notIn(Row6<T1, T2, T3, T4, T5, T6>... rows);
/**
* Compare this row value expression with a set of records for non-equality
*
* @see #notIn(Row6[])
*/
@Support
Condition notIn(Record6<T1, T2, T3, T4, T5, T6>... record);
/**
* Compare this row value expression with a subselect for non-equality
*/
@Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES })
Condition notIn(Select<? extends Record6<T1, T2, T3, T4, T5, T6>> select);
}

View File

@ -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 <code>7</code>
* <p>
@ -53,6 +55,7 @@ import java.util.Collection;
*
* @author Lukas Eder
*/
@Generated("This class was generated using jOOQ-tools")
public interface Row7<T1, T2, T3, T4, T5, T6, T7> extends Row {
// ------------------------------------------------------------------------
@ -110,6 +113,14 @@ public interface Row7<T1, T2, T3, T4, T5, T6, T7> extends Row {
@Support
Condition equal(Row7<T1, T2, T3, T4, T5, T6, T7> row);
/**
* Compare this row value expression with a record for equality
*
* @see #equal(Row7)
*/
@Support
Condition equal(Record7<T1, T2, T3, T4, T5, T6, T7> record);
/**
* Compare this row value expression with another row value expression for
* equality
@ -152,6 +163,14 @@ public interface Row7<T1, T2, T3, T4, T5, T6, T7> extends Row {
@Support
Condition eq(Row7<T1, T2, T3, T4, T5, T6, T7> row);
/**
* Compare this row value expression with a record for equality
*
* @see #eq(Row7)
*/
@Support
Condition eq(Record7<T1, T2, T3, T4, T5, T6, T7> record);
/**
* Compare this row value expression with another row value expression for
* equality
@ -194,6 +213,14 @@ public interface Row7<T1, T2, T3, T4, T5, T6, T7> extends Row {
@Support
Condition notEqual(Row7<T1, T2, T3, T4, T5, T6, T7> row);
/**
* Compare this row value expression with a record for non-equality
*
* @see #notEqual(Row7)
*/
@Support
Condition notEqual(Record7<T1, T2, T3, T4, T5, T6, T7> record);
/**
* Compare this row value expression with another row value expression for
* non-equality
@ -219,7 +246,7 @@ public interface Row7<T1, T2, T3, T4, T5, T6, T7> extends Row {
Condition notEqual(Field<T1> t1, Field<T2> t2, Field<T3> t3, Field<T4> t4, Field<T5> t5, Field<T6> t6, Field<T7> 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<? extends Record7<T1, T2, T3, T4, T5, T6, T7>> select);
@ -236,6 +263,14 @@ public interface Row7<T1, T2, T3, T4, T5, T6, T7> extends Row {
@Support
Condition ne(Row7<T1, T2, T3, T4, T5, T6, T7> row);
/**
* Compare this row value expression with a record for non-equality
*
* @see #ne(Row7)
*/
@Support
Condition ne(Record7<T1, T2, T3, T4, T5, T6, T7> record);
/**
* Compare this row value expression with another row value expression for
* non-equality
@ -261,7 +296,7 @@ public interface Row7<T1, T2, T3, T4, T5, T6, T7> extends Row {
Condition ne(Field<T1> t1, Field<T2> t2, Field<T3> t3, Field<T4> t4, Field<T5> t5, Field<T6> t6, Field<T7> 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<? extends Record7<T1, T2, T3, T4, T5, T6, T7>> select);
@ -290,6 +325,14 @@ public interface Row7<T1, T2, T3, T4, T5, T6, T7> extends Row {
@Support
Condition in(Row7<T1, T2, T3, T4, T5, T6, T7>... rows);
/**
* Compare this row value expression with a set of records for equality
*
* @see #in(Row7[])
*/
@Support
Condition in(Record7<T1, T2, T3, T4, T5, T6, T7>... record);
/**
* Compare this row value expression with a subselect for equality
*/
@ -322,9 +365,18 @@ public interface Row7<T1, T2, T3, T4, T5, T6, T7> extends Row {
@Support
Condition notIn(Row7<T1, T2, T3, T4, T5, T6, T7>... rows);
/**
* Compare this row value expression with a set of records for non-equality
*
* @see #notIn(Row7[])
*/
@Support
Condition notIn(Record7<T1, T2, T3, T4, T5, T6, T7>... record);
/**
* Compare this row value expression with a subselect for non-equality
*/
@Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES })
Condition notIn(Select<? extends Record7<T1, T2, T3, T4, T5, T6, T7>> select);
}

View File

@ -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 <code>8</code>
* <p>
@ -53,6 +55,7 @@ import java.util.Collection;
*
* @author Lukas Eder
*/
@Generated("This class was generated using jOOQ-tools")
public interface Row8<T1, T2, T3, T4, T5, T6, T7, T8> extends Row {
// ------------------------------------------------------------------------
@ -95,7 +98,7 @@ public interface Row8<T1, T2, T3, T4, T5, T6, T7, T8> extends Row {
Field<T7> field7();
/**
* Get the eight field
* Get the eighth field
*/
Field<T8> field8();
@ -115,6 +118,14 @@ public interface Row8<T1, T2, T3, T4, T5, T6, T7, T8> extends Row {
@Support
Condition equal(Row8<T1, T2, T3, T4, T5, T6, T7, T8> row);
/**
* Compare this row value expression with a record for equality
*
* @see #equal(Row8)
*/
@Support
Condition equal(Record8<T1, T2, T3, T4, T5, T6, T7, T8> record);
/**
* Compare this row value expression with another row value expression for
* equality
@ -137,8 +148,7 @@ public interface Row8<T1, T2, T3, T4, T5, T6, T7, T8> extends Row {
* <code>A = 1 AND B = 2</code>
*/
@Support
Condition equal(Field<T1> t1, Field<T2> t2, Field<T3> t3, Field<T4> t4, Field<T5> t5, Field<T6> t6, Field<T7> t7,
Field<T8> t8);
Condition equal(Field<T1> t1, Field<T2> t2, Field<T3> t3, Field<T4> t4, Field<T5> t5, Field<T6> t6, Field<T7> t7, Field<T8> t8);
/**
* Compare this row value expression with a subselect for equality
@ -158,6 +168,14 @@ public interface Row8<T1, T2, T3, T4, T5, T6, T7, T8> extends Row {
@Support
Condition eq(Row8<T1, T2, T3, T4, T5, T6, T7, T8> row);
/**
* Compare this row value expression with a record for equality
*
* @see #eq(Row8)
*/
@Support
Condition eq(Record8<T1, T2, T3, T4, T5, T6, T7, T8> record);
/**
* Compare this row value expression with another row value expression for
* equality
@ -180,8 +198,7 @@ public interface Row8<T1, T2, T3, T4, T5, T6, T7, T8> extends Row {
* <code>A = 1 AND B = 2</code>
*/
@Support
Condition eq(Field<T1> t1, Field<T2> t2, Field<T3> t3, Field<T4> t4, Field<T5> t5, Field<T6> t6, Field<T7> t7,
Field<T8> t8);
Condition eq(Field<T1> t1, Field<T2> t2, Field<T3> t3, Field<T4> t4, Field<T5> t5, Field<T6> t6, Field<T7> t7, Field<T8> t8);
/**
* Compare this row value expression with a subselect for equality
@ -201,6 +218,14 @@ public interface Row8<T1, T2, T3, T4, T5, T6, T7, T8> extends Row {
@Support
Condition notEqual(Row8<T1, T2, T3, T4, T5, T6, T7, T8> row);
/**
* Compare this row value expression with a record for non-equality
*
* @see #notEqual(Row8)
*/
@Support
Condition notEqual(Record8<T1, T2, T3, T4, T5, T6, T7, T8> record);
/**
* Compare this row value expression with another row value expression for
* non-equality
@ -223,8 +248,7 @@ public interface Row8<T1, T2, T3, T4, T5, T6, T7, T8> extends Row {
* <code>NOT(A = 1 AND B = 2)</code>
*/
@Support
Condition notEqual(Field<T1> t1, Field<T2> t2, Field<T3> t3, Field<T4> t4, Field<T5> t5, Field<T6> t6,
Field<T7> t7, Field<T8> t8);
Condition notEqual(Field<T1> t1, Field<T2> t2, Field<T3> t3, Field<T4> t4, Field<T5> t5, Field<T6> t6, Field<T7> t7, Field<T8> t8);
/**
* Compare this row value expression with a subselect for non-equality
@ -244,6 +268,14 @@ public interface Row8<T1, T2, T3, T4, T5, T6, T7, T8> extends Row {
@Support
Condition ne(Row8<T1, T2, T3, T4, T5, T6, T7, T8> row);
/**
* Compare this row value expression with a record for non-equality
*
* @see #ne(Row8)
*/
@Support
Condition ne(Record8<T1, T2, T3, T4, T5, T6, T7, T8> record);
/**
* Compare this row value expression with another row value expression for
* non-equality
@ -266,8 +298,7 @@ public interface Row8<T1, T2, T3, T4, T5, T6, T7, T8> extends Row {
* <code>NOT(A = 1 AND B = 2)</code>
*/
@Support
Condition ne(Field<T1> t1, Field<T2> t2, Field<T3> t3, Field<T4> t4, Field<T5> t5, Field<T6> t6, Field<T7> t7,
Field<T8> t8);
Condition ne(Field<T1> t1, Field<T2> t2, Field<T3> t3, Field<T4> t4, Field<T5> t5, Field<T6> t6, Field<T7> t7, Field<T8> t8);
/**
* Compare this row value expression with a subselect for non-equality
@ -299,6 +330,14 @@ public interface Row8<T1, T2, T3, T4, T5, T6, T7, T8> extends Row {
@Support
Condition in(Row8<T1, T2, T3, T4, T5, T6, T7, T8>... rows);
/**
* Compare this row value expression with a set of records for equality
*
* @see #in(Row8[])
*/
@Support
Condition in(Record8<T1, T2, T3, T4, T5, T6, T7, T8>... record);
/**
* Compare this row value expression with a subselect for equality
*/
@ -331,9 +370,18 @@ public interface Row8<T1, T2, T3, T4, T5, T6, T7, T8> extends Row {
@Support
Condition notIn(Row8<T1, T2, T3, T4, T5, T6, T7, T8>... rows);
/**
* Compare this row value expression with a set of records for non-equality
*
* @see #notIn(Row8[])
*/
@Support
Condition notIn(Record8<T1, T2, T3, T4, T5, T6, T7, T8>... record);
/**
* Compare this row value expression with a subselect for non-equality
*/
@Support({ CUBRID, DB2, HSQLDB, MYSQL, ORACLE, POSTGRES })
Condition notIn(Select<? extends Record8<T1, T2, T3, T4, T5, T6, T7, T8>> select);
}

View File

@ -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
* <p>

View File

@ -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<T1, T2, T3, T4, T5, T6, T7, T8> extends AbstractQueryPart
implements
@ -256,6 +269,48 @@ implements
return new Compare(record.valuesRow(), Comparator.EQUALS);
}
@Override
public final Condition equal(Record2<T1, T2> record) {
return new Compare(record.valuesRow(), Comparator.EQUALS);
}
@Override
public final Condition equal(Record3<T1, T2, T3> record) {
return new Compare(record.valuesRow(), Comparator.EQUALS);
}
@Override
public final Condition equal(Record4<T1, T2, T3, T4> record) {
return new Compare(record.valuesRow(), Comparator.EQUALS);
}
@Override
public final Condition equal(Record5<T1, T2, T3, T4, T5> record) {
return new Compare(record.valuesRow(), Comparator.EQUALS);
}
@Override
public final Condition equal(Record6<T1, T2, T3, T4, T5, T6> record) {
return new Compare(record.valuesRow(), Comparator.EQUALS);
}
@Override
public final Condition equal(Record7<T1, T2, T3, T4, T5, T6, T7> record) {
return new Compare(record.valuesRow(), Comparator.EQUALS);
}
@Override
public final Condition equal(Record8<T1, T2, T3, T4, T5, T6, T7, T8> record) {
return new Compare(record.valuesRow(), Comparator.EQUALS);
}
@Override
public final Condition equal(Record record) {
List<Field<?>> 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<T1, T2> record) {
return equal(record);
}
@Override
public final Condition eq(Record3<T1, T2, T3> record) {
return equal(record);
}
@Override
public final Condition eq(Record4<T1, T2, T3, T4> record) {
return equal(record);
}
@Override
public final Condition eq(Record5<T1, T2, T3, T4, T5> record) {
return equal(record);
}
@Override
public final Condition eq(Record6<T1, T2, T3, T4, T5, T6> record) {
return equal(record);
}
@Override
public final Condition eq(Record7<T1, T2, T3, T4, T5, T6, T7> record) {
return equal(record);
}
@Override
public final Condition eq(Record8<T1, T2, T3, T4, T5, T6, T7, T8> 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<T1, T2> record) {
return new Compare(record.valuesRow(), Comparator.NOT_EQUALS);
}
@Override
public final Condition notEqual(Record3<T1, T2, T3> record) {
return new Compare(record.valuesRow(), Comparator.NOT_EQUALS);
}
@Override
public final Condition notEqual(Record4<T1, T2, T3, T4> record) {
return new Compare(record.valuesRow(), Comparator.NOT_EQUALS);
}
@Override
public final Condition notEqual(Record5<T1, T2, T3, T4, T5> record) {
return new Compare(record.valuesRow(), Comparator.NOT_EQUALS);
}
@Override
public final Condition notEqual(Record6<T1, T2, T3, T4, T5, T6> record) {
return new Compare(record.valuesRow(), Comparator.NOT_EQUALS);
}
@Override
public final Condition notEqual(Record7<T1, T2, T3, T4, T5, T6, T7> record) {
return new Compare(record.valuesRow(), Comparator.NOT_EQUALS);
}
@Override
public final Condition notEqual(Record8<T1, T2, T3, T4, T5, T6, T7, T8> record) {
return new Compare(record.valuesRow(), Comparator.NOT_EQUALS);
}
@Override
public final Condition notEqual(Record record) {
List<Field<?>> 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<T1, T2> record) {
return notEqual(record);
}
@Override
public final Condition ne(Record3<T1, T2, T3> record) {
return notEqual(record);
}
@Override
public final Condition ne(Record4<T1, T2, T3, T4> record) {
return notEqual(record);
}
@Override
public final Condition ne(Record5<T1, T2, T3, T4, T5> record) {
return notEqual(record);
}
@Override
public final Condition ne(Record6<T1, T2, T3, T4, T5, T6> record) {
return notEqual(record);
}
@Override
public final Condition ne(Record7<T1, T2, T3, T4, T5, T6, T7> record) {
return notEqual(record);
}
@Override
public final Condition ne(Record8<T1, T2, T3, T4, T5, T6, T7, T8> 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<T1, T2>... records) {
Row2<T1, T2>[] 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<T1, T2, T3>... records) {
Row3<T1, T2, T3>[] 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<T1, T2, T3, T4>... records) {
Row4<T1, T2, T3, T4>[] 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<T1, T2, T3, T4, T5>... records) {
Row5<T1, T2, T3, T4, T5>[] 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<T1, T2, T3, T4, T5, T6>... records) {
Row6<T1, T2, T3, T4, T5, T6>[] 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<T1, T2, T3, T4, T5, T6, T7>... records) {
Row7<T1, T2, T3, T4, T5, T6, T7>[] 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<T1, T2, T3, T4, T5, T6, T7, T8>... records) {
Row8<T1, T2, T3, T4, T5, T6, T7, T8>[] 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<Field<?>> 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<T1>... rows) {
return notIn(Arrays.asList(rows));
@ -878,6 +1144,95 @@ implements
return notIn(rows);
}
@Override
public final Condition notIn(Record2<T1, T2>... records) {
Row2<T1, T2>[] 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<T1, T2, T3>... records) {
Row3<T1, T2, T3>[] 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<T1, T2, T3, T4>... records) {
Row4<T1, T2, T3, T4>[] 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<T1, T2, T3, T4, T5>... records) {
Row5<T1, T2, T3, T4, T5>[] 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<T1, T2, T3, T4, T5, T6>... records) {
Row6<T1, T2, T3, T4, T5, T6>[] 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<T1, T2, T3, T4, T5, T6, T7>... records) {
Row7<T1, T2, T3, T4, T5, T6, T7>[] 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<T1, T2, T3, T4, T5, T6, T7, T8>... records) {
Row8<T1, T2, T3, T4, T5, T6, T7, T8>[] 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<Field<?>> 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<RowImpl<T1, T2, T3, T4, T5, T6, T7, T8>> list = new QueryPartList<RowImpl<T1, T2, T3, T4, T5, T6, T7, T8>>(rows);