org.jooq.impl.RecordImpl Maven / Gradle / Ivy
/**
* Copyright (c) 2009-2014, Data Geekery GmbH (http://www.datageekery.com)
* All rights reserved.
*
* This work is dual-licensed
* - under the Apache Software License 2.0 (the "ASL")
* - under the jOOQ License and Maintenance Agreement (the "jOOQ License")
* =============================================================================
* You may choose which license applies to you:
*
* - If you're using this work with Open Source databases, you may choose
* either ASL or jOOQ License.
* - If you're using this work with at least one commercial database, you must
* choose jOOQ License
*
* For more information, please visit http://www.jooq.org/licenses
*
* Apache Software License 2.0:
* -----------------------------------------------------------------------------
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* jOOQ License and Maintenance Agreement:
* -----------------------------------------------------------------------------
* Data Geekery grants the Customer the non-exclusive, timely limited and
* non-transferable license to install and use the Software under the terms of
* the jOOQ License and Maintenance Agreement.
*
* This library is distributed with a LIMITED WARRANTY. See the jOOQ License
* and Maintenance Agreement for more details: http://www.jooq.org/licensing
*/
package org.jooq.impl;
import java.util.Collection;
import javax.annotation.Generated;
import org.jooq.Field;
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.Record9;
import org.jooq.Record10;
import org.jooq.Record11;
import org.jooq.Record12;
import org.jooq.Record13;
import org.jooq.Record14;
import org.jooq.Record15;
import org.jooq.Record16;
import org.jooq.Record17;
import org.jooq.Record18;
import org.jooq.Record19;
import org.jooq.Record20;
import org.jooq.Record21;
import org.jooq.Record22;
/**
* A general purpose record, typically used for ad-hoc types.
*
* This type implements both the general-purpose, type-unsafe {@link Record}
* interface, as well as the more specific, type-safe {@link Record1},
* {@link Record2} through {@link Record22} interfaces
*
* @author Lukas Eder
*/
@Generated("This class was generated using jOOQ-tools")
@SuppressWarnings({ "unchecked", "rawtypes" })
class RecordImpl extends AbstractRecord
implements
// This record implementation implements all record types. Type-safety is
// being checked through the type-safe API. No need for further checks here
Record1,
Record2,
Record3,
Record4,
Record5,
Record6,
Record7,
Record8,
Record9,
Record10,
Record11,
Record12,
Record13,
Record14,
Record15,
Record16,
Record17,
Record18,
Record19,
Record20,
Record21,
Record22 {
/**
* Generated UID
*/
private static final long serialVersionUID = -2201346180421463830L;
/**
* Create a new general purpose record
*/
public RecordImpl(Field>... fields) {
super(fields);
}
/**
* Create a new general purpose record
*/
public RecordImpl(Collection extends Field>> fields) {
super(fields);
}
// ------------------------------------------------------------------------
// XXX: Type-safe Record APIs
// ------------------------------------------------------------------------
@Override
public RowImpl fieldsRow() {
return fields;
}
@Override
public final RowImpl valuesRow() {
return new RowImpl(Utils.fields(intoArray(), fields.fields()));
}
@Override
public final Field field1() {
return fields.field(0);
}
@Override
public final Field field2() {
return fields.field(1);
}
@Override
public final Field field3() {
return fields.field(2);
}
@Override
public final Field field4() {
return fields.field(3);
}
@Override
public final Field field5() {
return fields.field(4);
}
@Override
public final Field field6() {
return fields.field(5);
}
@Override
public final Field field7() {
return fields.field(6);
}
@Override
public final Field field8() {
return fields.field(7);
}
@Override
public final Field field9() {
return fields.field(8);
}
@Override
public final Field field10() {
return fields.field(9);
}
@Override
public final Field field11() {
return fields.field(10);
}
@Override
public final Field field12() {
return fields.field(11);
}
@Override
public final Field field13() {
return fields.field(12);
}
@Override
public final Field field14() {
return fields.field(13);
}
@Override
public final Field field15() {
return fields.field(14);
}
@Override
public final Field field16() {
return fields.field(15);
}
@Override
public final Field field17() {
return fields.field(16);
}
@Override
public final Field field18() {
return fields.field(17);
}
@Override
public final Field field19() {
return fields.field(18);
}
@Override
public final Field field20() {
return fields.field(19);
}
@Override
public final Field field21() {
return fields.field(20);
}
@Override
public final Field field22() {
return fields.field(21);
}
@Override
public final T1 value1() {
return (T1) getValue(0);
}
@Override
public final T2 value2() {
return (T2) getValue(1);
}
@Override
public final T3 value3() {
return (T3) getValue(2);
}
@Override
public final T4 value4() {
return (T4) getValue(3);
}
@Override
public final T5 value5() {
return (T5) getValue(4);
}
@Override
public final T6 value6() {
return (T6) getValue(5);
}
@Override
public final T7 value7() {
return (T7) getValue(6);
}
@Override
public final T8 value8() {
return (T8) getValue(7);
}
@Override
public final T9 value9() {
return (T9) getValue(8);
}
@Override
public final T10 value10() {
return (T10) getValue(9);
}
@Override
public final T11 value11() {
return (T11) getValue(10);
}
@Override
public final T12 value12() {
return (T12) getValue(11);
}
@Override
public final T13 value13() {
return (T13) getValue(12);
}
@Override
public final T14 value14() {
return (T14) getValue(13);
}
@Override
public final T15 value15() {
return (T15) getValue(14);
}
@Override
public final T16 value16() {
return (T16) getValue(15);
}
@Override
public final T17 value17() {
return (T17) getValue(16);
}
@Override
public final T18 value18() {
return (T18) getValue(17);
}
@Override
public final T19 value19() {
return (T19) getValue(18);
}
@Override
public final T20 value20() {
return (T20) getValue(19);
}
@Override
public final T21 value21() {
return (T21) getValue(20);
}
@Override
public final T22 value22() {
return (T22) getValue(21);
}
@Override
public final RecordImpl value1(T1 value) {
setValue(0, value);
return this;
}
@Override
public final RecordImpl value2(T2 value) {
setValue(1, value);
return this;
}
@Override
public final RecordImpl value3(T3 value) {
setValue(2, value);
return this;
}
@Override
public final RecordImpl value4(T4 value) {
setValue(3, value);
return this;
}
@Override
public final RecordImpl value5(T5 value) {
setValue(4, value);
return this;
}
@Override
public final RecordImpl value6(T6 value) {
setValue(5, value);
return this;
}
@Override
public final RecordImpl value7(T7 value) {
setValue(6, value);
return this;
}
@Override
public final RecordImpl value8(T8 value) {
setValue(7, value);
return this;
}
@Override
public final RecordImpl value9(T9 value) {
setValue(8, value);
return this;
}
@Override
public final RecordImpl value10(T10 value) {
setValue(9, value);
return this;
}
@Override
public final RecordImpl value11(T11 value) {
setValue(10, value);
return this;
}
@Override
public final RecordImpl value12(T12 value) {
setValue(11, value);
return this;
}
@Override
public final RecordImpl value13(T13 value) {
setValue(12, value);
return this;
}
@Override
public final RecordImpl value14(T14 value) {
setValue(13, value);
return this;
}
@Override
public final RecordImpl value15(T15 value) {
setValue(14, value);
return this;
}
@Override
public final RecordImpl value16(T16 value) {
setValue(15, value);
return this;
}
@Override
public final RecordImpl value17(T17 value) {
setValue(16, value);
return this;
}
@Override
public final RecordImpl value18(T18 value) {
setValue(17, value);
return this;
}
@Override
public final RecordImpl value19(T19 value) {
setValue(18, value);
return this;
}
@Override
public final RecordImpl value20(T20 value) {
setValue(19, value);
return this;
}
@Override
public final RecordImpl value21(T21 value) {
setValue(20, value);
return this;
}
@Override
public final RecordImpl value22(T22 value) {
setValue(21, value);
return this;
}
@Override
public final RecordImpl values(T1 t1) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21) {
return null;
}
@Override
public final RecordImpl values(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22) {
return null;
}
}