From f4e7c5773296ef02cc26e3b2cb4b1682920e3582 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Fri, 26 Oct 2012 18:25:34 +0200 Subject: [PATCH] [#1887] Remove all deprecated code --- .../java/org/jooq/util/DefaultGenerator.java | 37 +- .../org/jooq/test/_/testcases/CRUDTests.java | 67 - .../test/_/testcases/InsertUpdateTests.java | 22 - .../tables/records/XUnusedRecord.java | 10 +- .../tables/records/XTestCase_64_69Record.java | 4 +- .../tables/records/XTestCase_71Record.java | 6 +- .../tables/records/XTestCase_64_69Record.java | 4 +- .../tables/records/XTestCase_71Record.java | 6 +- .../tables/records/XTestCase_85Record.java | 6 +- .../tables/records/XUnusedRecord.java | 14 +- .../tables/records/XTestCase_64_69Record.java | 4 +- .../tables/records/XTestCase_71Record.java | 6 +- .../tables/records/XTestCase_64_69Record.java | 4 +- .../tables/records/XTestCase_71Record.java | 6 +- .../src/org/jooq/test/jOOQAbstractTest.java | 5 - .../tables/records/XTestCase_64_69Record.java | 4 +- .../tables/records/XTestCase_71Record.java | 6 +- .../tables/records/X_TEST_CASE_64_69.java | 4 +- .../tables/records/X_TEST_CASE_71.java | 6 +- .../tables/records/XTestCase_64_69Record.java | 4 +- .../tables/records/XTestCase_71Record.java | 6 +- .../tables/records/XTestCase_64_69Record.java | 4 +- .../tables/records/XTestCase_71Record.java | 6 +- jOOQ/src/main/java/org/jooq/Adapter.java | 71 - jOOQ/src/main/java/org/jooq/Attachable.java | 3 +- jOOQ/src/main/java/org/jooq/Package.java | 3 +- .../main/java/org/jooq/QueryPartInternal.java | 13 - jOOQ/src/main/java/org/jooq/Record.java | 1026 --------- jOOQ/src/main/java/org/jooq/Result.java | 1907 ----------------- jOOQ/src/main/java/org/jooq/Routine.java | 3 +- jOOQ/src/main/java/org/jooq/Schema.java | 15 - .../main/java/org/jooq/SchemaProvider.java | 57 - jOOQ/src/main/java/org/jooq/Table.java | 1 - jOOQ/src/main/java/org/jooq/TableRecord.java | 208 -- jOOQ/src/main/java/org/jooq/Type.java | 2 +- jOOQ/src/main/java/org/jooq/UDT.java | 1 - .../impl/AbstractFieldProviderQueryPart.java | 7 +- .../java/org/jooq/impl/AbstractQueryPart.java | 23 - .../java/org/jooq/impl/AbstractRecord.java | 284 --- .../java/org/jooq/impl/AbstractRoutine.java | 11 +- .../impl/AbstractSchemaProviderQueryPart.java | 63 - .../java/org/jooq/impl/AbstractStore.java | 5 - .../java/org/jooq/impl/AbstractTable.java | 11 +- .../main/java/org/jooq/impl/BatchStore.java | 6 +- .../main/java/org/jooq/impl/PackageImpl.java | 13 +- .../main/java/org/jooq/impl/ResultImpl.java | 668 ------ .../main/java/org/jooq/impl/SchemaImpl.java | 21 - .../java/org/jooq/impl/SubQueryOperator.java | 12 - .../java/org/jooq/impl/TableRecordImpl.java | 384 +--- jOOQ/src/main/java/org/jooq/impl/UDTImpl.java | 19 +- .../org/jooq/impl/UpdatableRecordImpl.java | 358 +++- .../java/org/jooq/tools/unsigned/UByte.java | 31 +- .../org/jooq/tools/unsigned/UInteger.java | 185 +- .../java/org/jooq/tools/unsigned/ULong.java | 16 +- .../java/org/jooq/tools/unsigned/UShort.java | 16 +- 55 files changed, 651 insertions(+), 5033 deletions(-) delete mode 100644 jOOQ/src/main/java/org/jooq/Adapter.java delete mode 100644 jOOQ/src/main/java/org/jooq/SchemaProvider.java delete mode 100644 jOOQ/src/main/java/org/jooq/impl/AbstractSchemaProviderQueryPart.java diff --git a/jOOQ-codegen/src/main/java/org/jooq/util/DefaultGenerator.java b/jOOQ-codegen/src/main/java/org/jooq/util/DefaultGenerator.java index 853acecc6d..78de652b26 100644 --- a/jOOQ-codegen/src/main/java/org/jooq/util/DefaultGenerator.java +++ b/jOOQ-codegen/src/main/java/org/jooq/util/DefaultGenerator.java @@ -2783,21 +2783,21 @@ public class DefaultGenerator extends AbstractGenerator { ColumnDefinition referencingColumn = foreignKey.getKeyColumns().get(i); ColumnDefinition referencedColumn = foreignKey.getReferencedColumns().get(i); + out.print("\t\t\tsetValue("); + out.print(getStrategy().getFullJavaIdentifier(referencingColumn)); + out.print(", value.getValue("); + out.print(strategy.getFullJavaIdentifier(referencedColumn)); + + // Convert foreign key value, if there is a type mismatch DataTypeDefinition foreignType = referencingColumn.getType(); DataTypeDefinition primaryType = referencedColumn.getType(); - out.print("\t\t\tsetValue("); - out.print(getStrategy().getFullJavaIdentifier(referencingColumn)); - out.print(", value.getValue"); - - // Convert foreign key value, if there is a type mismatch if (!match(foreignType, primaryType)) { - out.print("As"); + out.print(", "); out.print(getSimpleJavaType(referencingColumn.getType())); + out.print(".class"); } - out.print("("); - out.print(strategy.getFullJavaIdentifier(referencedColumn)); out.println("));"); } @@ -2834,19 +2834,19 @@ public class DefaultGenerator extends AbstractGenerator { for (int i = 0; i < foreignKey.getReferencedColumns().size(); i++) { out.print(connector); out.print(strategy.getFullJavaIdentifier(foreignKey.getReferencedColumns().get(i))); - out.print(".equal(getValue"); + out.print(".equal(getValue("); + out.print(strategy.getFullJavaIdentifier(foreignKey.getKeyColumns().get(i))); + // Convert foreign key value, if there is a type mismatch DataTypeDefinition foreignType = foreignKey.getKeyColumns().get(i).getType(); DataTypeDefinition primaryType = foreignKey.getReferencedColumns().get(i).getType(); - // Convert foreign key value, if there is a type mismatch if (!match(foreignType, primaryType)) { - out.print("As"); + out.print(", "); out.print(getSimpleJavaType(foreignKey.getReferencedColumns().get(i).getType())); + out.print(".class"); } - out.print("("); - out.print(strategy.getFullJavaIdentifier(foreignKey.getKeyColumns().get(i))); out.println(")))"); connector = "\t\t\t.and("; @@ -2911,21 +2911,20 @@ public class DefaultGenerator extends AbstractGenerator { for (int i = 0; i < foreignKey.getReferencedColumns().size(); i++) { out.print(connector); out.print(strategy.getFullJavaIdentifier(foreignKey.getKeyColumns().get(i))); - out.print(".equal(getValue"); + out.print(".equal(getValue("); + out.print(strategy.getFullJavaIdentifier(uniqueKey.getKeyColumns().get(i))); + // Convert foreign key value, if there is a type mismatch DataTypeDefinition foreignType = foreignKey.getKeyColumns().get(i).getType(); DataTypeDefinition primaryType = uniqueKey.getKeyColumns().get(i).getType(); - // Convert foreign key value, if there is a type mismatch if (!match(foreignType, primaryType)) { - out.print("As"); + out.print(", "); out.print(getSimpleJavaType(foreignKey.getKeyColumns().get(i).getType())); + out.print(".class"); } - out.print("("); - out.print(strategy.getFullJavaIdentifier(uniqueKey.getKeyColumns().get(i))); out.println(")))"); - connector = "\t\t\t.and("; } diff --git a/jOOQ-test/src/org/jooq/test/_/testcases/CRUDTests.java b/jOOQ-test/src/org/jooq/test/_/testcases/CRUDTests.java index f0cfb34803..04afbc0c3a 100644 --- a/jOOQ-test/src/org/jooq/test/_/testcases/CRUDTests.java +++ b/jOOQ-test/src/org/jooq/test/_/testcases/CRUDTests.java @@ -638,73 +638,6 @@ extends BaseTest> void testInsertIdentity0(Table table, TableField id, TableField val) throws Exception { // Plain insert @@ -196,22 +195,6 @@ extends BaseTest { - private static final long serialVersionUID = -1752803977; + private static final long serialVersionUID = -854431573; /** * The table column DBA.x_unused.id @@ -50,8 +50,8 @@ public class XUnusedRecord extends org.jooq.impl.UpdatableRecordImpl fetchXUnusedList() { return create() .selectFrom(org.jooq.test.cubrid.generatedclasses.tables.XUnused.X_UNUSED) - .where(org.jooq.test.cubrid.generatedclasses.tables.XUnused.NAME_REF.equal(getValueAsString(org.jooq.test.cubrid.generatedclasses.tables.XUnused.ID))) - .and(org.jooq.test.cubrid.generatedclasses.tables.XUnused.ID_REF.equal(getValueAsInteger(org.jooq.test.cubrid.generatedclasses.tables.XUnused.NAME))) + .where(org.jooq.test.cubrid.generatedclasses.tables.XUnused.NAME_REF.equal(getValue(org.jooq.test.cubrid.generatedclasses.tables.XUnused.ID, String.class))) + .and(org.jooq.test.cubrid.generatedclasses.tables.XUnused.ID_REF.equal(getValue(org.jooq.test.cubrid.generatedclasses.tables.XUnused.NAME, Integer.class))) .fetch(); } @@ -125,8 +125,8 @@ public class XUnusedRecord extends org.jooq.impl.UpdatableRecordImpl { - private static final long serialVersionUID = 1317544343; + private static final long serialVersionUID = 276189173; /** * The table column LUKAS.X_TEST_CASE_64_69.ID @@ -37,7 +37,7 @@ public class XTestCase_64_69Record extends org.jooq.impl.UpdatableRecordImpl fetchXTestCase_71List() { return create() .selectFrom(org.jooq.test.db2.generatedclasses.tables.XTestCase_71.X_TEST_CASE_71) - .where(org.jooq.test.db2.generatedclasses.tables.XTestCase_71.TEST_CASE_64_69_ID.equal(getValueAsShort(org.jooq.test.db2.generatedclasses.tables.XTestCase_64_69.ID))) + .where(org.jooq.test.db2.generatedclasses.tables.XTestCase_71.TEST_CASE_64_69_ID.equal(getValue(org.jooq.test.db2.generatedclasses.tables.XTestCase_64_69.ID, Short.class))) .fetch(); } diff --git a/jOOQ-test/src/org/jooq/test/db2/generatedclasses/tables/records/XTestCase_71Record.java b/jOOQ-test/src/org/jooq/test/db2/generatedclasses/tables/records/XTestCase_71Record.java index 231b1b5a59..f1ecb163f2 100644 --- a/jOOQ-test/src/org/jooq/test/db2/generatedclasses/tables/records/XTestCase_71Record.java +++ b/jOOQ-test/src/org/jooq/test/db2/generatedclasses/tables/records/XTestCase_71Record.java @@ -9,7 +9,7 @@ package org.jooq.test.db2.generatedclasses.tables.records; @java.lang.SuppressWarnings("all") public class XTestCase_71Record extends org.jooq.impl.UpdatableRecordImpl { - private static final long serialVersionUID = 529613240; + private static final long serialVersionUID = -1081115366; /** * The table column LUKAS.X_TEST_CASE_71.ID @@ -64,7 +64,7 @@ public class XTestCase_71Record extends org.jooq.impl.UpdatableRecordImpl implements org.jooq.test.firebird.generatedclasses.tables.interfaces.IXTestCase_64_69 { - private static final long serialVersionUID = -1957510094; + private static final long serialVersionUID = 1991131320; /** * The table column X_TEST_CASE_64_69.ID @@ -39,7 +39,7 @@ public class XTestCase_64_69Record extends org.jooq.impl.UpdatableRecordImpl fetchXTestCase_71List() { return create() .selectFrom(org.jooq.test.firebird.generatedclasses.tables.XTestCase_71.X_TEST_CASE_71) - .where(org.jooq.test.firebird.generatedclasses.tables.XTestCase_71.X_TEST_CASE_71.TEST_CASE_64_69_ID.equal(getValueAsShort(org.jooq.test.firebird.generatedclasses.tables.XTestCase_64_69.X_TEST_CASE_64_69.ID))) + .where(org.jooq.test.firebird.generatedclasses.tables.XTestCase_71.X_TEST_CASE_71.TEST_CASE_64_69_ID.equal(getValue(org.jooq.test.firebird.generatedclasses.tables.XTestCase_64_69.X_TEST_CASE_64_69.ID, Short.class))) .fetch(); } diff --git a/jOOQ-test/src/org/jooq/test/firebird/generatedclasses/tables/records/XTestCase_71Record.java b/jOOQ-test/src/org/jooq/test/firebird/generatedclasses/tables/records/XTestCase_71Record.java index 71a9b3f192..c3052524bd 100644 --- a/jOOQ-test/src/org/jooq/test/firebird/generatedclasses/tables/records/XTestCase_71Record.java +++ b/jOOQ-test/src/org/jooq/test/firebird/generatedclasses/tables/records/XTestCase_71Record.java @@ -9,7 +9,7 @@ package org.jooq.test.firebird.generatedclasses.tables.records; @java.lang.SuppressWarnings("all") public class XTestCase_71Record extends org.jooq.impl.UpdatableRecordImpl implements org.jooq.test.firebird.generatedclasses.tables.interfaces.IXTestCase_71 { - private static final long serialVersionUID = 1617435860; + private static final long serialVersionUID = -1060983750; /** * The table column X_TEST_CASE_71.ID @@ -68,7 +68,7 @@ public class XTestCase_71Record extends org.jooq.impl.UpdatableRecordImpl implements org.jooq.test.firebird.generatedclasses.tables.interfaces.IXTestCase_85 { - private static final long serialVersionUID = -677441195; + private static final long serialVersionUID = -338310955; /** * The table column X_TEST_CASE_85.ID @@ -71,8 +71,8 @@ public class XTestCase_85Record extends org.jooq.impl.UpdatableRecordImpl implements org.jooq.test.firebird.generatedclasses.tables.interfaces.IXUnused { - private static final long serialVersionUID = 942475728; + private static final long serialVersionUID = -1102619090; /** * The table column X_UNUSED.ID @@ -39,8 +39,8 @@ public class XUnusedRecord extends org.jooq.impl.UpdatableRecordImpl fetchXTestCase_85List() { return create() .selectFrom(org.jooq.test.firebird.generatedclasses.tables.XTestCase_85.X_TEST_CASE_85) - .where(org.jooq.test.firebird.generatedclasses.tables.XTestCase_85.X_TEST_CASE_85.X_UNUSED_ID.equal(getValueAsInteger(org.jooq.test.firebird.generatedclasses.tables.XUnused.X_UNUSED.NAME))) - .and(org.jooq.test.firebird.generatedclasses.tables.XTestCase_85.X_TEST_CASE_85.X_UNUSED_NAME.equal(getValueAsString(org.jooq.test.firebird.generatedclasses.tables.XUnused.X_UNUSED.ID))) + .where(org.jooq.test.firebird.generatedclasses.tables.XTestCase_85.X_TEST_CASE_85.X_UNUSED_ID.equal(getValue(org.jooq.test.firebird.generatedclasses.tables.XUnused.X_UNUSED.NAME, Integer.class))) + .and(org.jooq.test.firebird.generatedclasses.tables.XTestCase_85.X_TEST_CASE_85.X_UNUSED_NAME.equal(getValue(org.jooq.test.firebird.generatedclasses.tables.XUnused.X_UNUSED.ID, String.class))) .fetch(); } @@ -52,8 +52,8 @@ public class XUnusedRecord extends org.jooq.impl.UpdatableRecordImpl fetchXUnusedList() { return create() .selectFrom(org.jooq.test.firebird.generatedclasses.tables.XUnused.X_UNUSED) - .where(org.jooq.test.firebird.generatedclasses.tables.XUnused.X_UNUSED.ID_REF.equal(getValueAsInteger(org.jooq.test.firebird.generatedclasses.tables.XUnused.X_UNUSED.NAME))) - .and(org.jooq.test.firebird.generatedclasses.tables.XUnused.X_UNUSED.NAME_REF.equal(getValueAsString(org.jooq.test.firebird.generatedclasses.tables.XUnused.X_UNUSED.ID))) + .where(org.jooq.test.firebird.generatedclasses.tables.XUnused.X_UNUSED.ID_REF.equal(getValue(org.jooq.test.firebird.generatedclasses.tables.XUnused.X_UNUSED.NAME, Integer.class))) + .and(org.jooq.test.firebird.generatedclasses.tables.XUnused.X_UNUSED.NAME_REF.equal(getValue(org.jooq.test.firebird.generatedclasses.tables.XUnused.X_UNUSED.ID, String.class))) .fetch(); } @@ -145,8 +145,8 @@ public class XUnusedRecord extends org.jooq.impl.UpdatableRecordImpl implements org.jooq.test.h2.generatedclasses.tables.interfaces.IXTestCase_64_69 { - private static final long serialVersionUID = -374768472; + private static final long serialVersionUID = -2081892290; /** * The table column PUBLIC.X_TEST_CASE_64_69.ID @@ -39,7 +39,7 @@ public class XTestCase_64_69Record extends org.jooq.impl.UpdatableRecordImpl fetchXTestCase_71List() { return create() .selectFrom(org.jooq.test.h2.generatedclasses.tables.XTestCase_71.X_TEST_CASE_71) - .where(org.jooq.test.h2.generatedclasses.tables.XTestCase_71.TEST_CASE_64_69_ID.equal(getValueAsShort(org.jooq.test.h2.generatedclasses.tables.XTestCase_64_69.ID))) + .where(org.jooq.test.h2.generatedclasses.tables.XTestCase_71.TEST_CASE_64_69_ID.equal(getValue(org.jooq.test.h2.generatedclasses.tables.XTestCase_64_69.ID, Short.class))) .fetch(); } diff --git a/jOOQ-test/src/org/jooq/test/h2/generatedclasses/tables/records/XTestCase_71Record.java b/jOOQ-test/src/org/jooq/test/h2/generatedclasses/tables/records/XTestCase_71Record.java index 148780ad8c..a2e27082a7 100644 --- a/jOOQ-test/src/org/jooq/test/h2/generatedclasses/tables/records/XTestCase_71Record.java +++ b/jOOQ-test/src/org/jooq/test/h2/generatedclasses/tables/records/XTestCase_71Record.java @@ -9,7 +9,7 @@ package org.jooq.test.h2.generatedclasses.tables.records; @java.lang.SuppressWarnings("all") public class XTestCase_71Record extends org.jooq.impl.UpdatableRecordImpl implements org.jooq.test.h2.generatedclasses.tables.interfaces.IXTestCase_71 { - private static final long serialVersionUID = 1656252666; + private static final long serialVersionUID = 1107662452; /** * The table column PUBLIC.X_TEST_CASE_71.ID @@ -68,7 +68,7 @@ public class XTestCase_71Record extends org.jooq.impl.UpdatableRecordImpl implements org.jooq.test.hsqldb.generatedclasses.tables.interfaces.IXTestCase_64_69 { - private static final long serialVersionUID = 1004455768; + private static final long serialVersionUID = -899928748; /** * The table column PUBLIC.X_TEST_CASE_64_69.ID @@ -39,7 +39,7 @@ public class XTestCase_64_69Record extends org.jooq.impl.UpdatableRecordImpl fetchXTestCase_71List() { return create() .selectFrom(org.jooq.test.hsqldb.generatedclasses.tables.XTestCase_71.X_TEST_CASE_71) - .where(org.jooq.test.hsqldb.generatedclasses.tables.XTestCase_71.X_TEST_CASE_71.TEST_CASE_64_69_ID.equal(getValueAsShort(org.jooq.test.hsqldb.generatedclasses.tables.XTestCase_64_69.X_TEST_CASE_64_69.ID))) + .where(org.jooq.test.hsqldb.generatedclasses.tables.XTestCase_71.X_TEST_CASE_71.TEST_CASE_64_69_ID.equal(getValue(org.jooq.test.hsqldb.generatedclasses.tables.XTestCase_64_69.X_TEST_CASE_64_69.ID, Short.class))) .fetch(); } diff --git a/jOOQ-test/src/org/jooq/test/hsqldb/generatedclasses/tables/records/XTestCase_71Record.java b/jOOQ-test/src/org/jooq/test/hsqldb/generatedclasses/tables/records/XTestCase_71Record.java index 42b5a42ed1..fa1f6a852d 100644 --- a/jOOQ-test/src/org/jooq/test/hsqldb/generatedclasses/tables/records/XTestCase_71Record.java +++ b/jOOQ-test/src/org/jooq/test/hsqldb/generatedclasses/tables/records/XTestCase_71Record.java @@ -9,7 +9,7 @@ package org.jooq.test.hsqldb.generatedclasses.tables.records; @java.lang.SuppressWarnings("all") public class XTestCase_71Record extends org.jooq.impl.UpdatableRecordImpl implements org.jooq.test.hsqldb.generatedclasses.tables.interfaces.IXTestCase_71 { - private static final long serialVersionUID = 761205853; + private static final long serialVersionUID = 689674263; /** * The table column PUBLIC.X_TEST_CASE_71.ID @@ -68,7 +68,7 @@ public class XTestCase_71Record extends org.jooq.impl.UpdatableRecordImpl { - private static final long serialVersionUID = -1247423789; + private static final long serialVersionUID = -1427665825; /** * The table column TEST.X_TEST_CASE_64_69.ID @@ -41,7 +41,7 @@ public class XTestCase_64_69Record extends org.jooq.impl.UpdatableRecordImpl fetchXTestCase_71List() { return create() .selectFrom(org.jooq.test.oracle.generatedclasses.test.tables.XTestCase_71.X_TEST_CASE_71) - .where(org.jooq.test.oracle.generatedclasses.test.tables.XTestCase_71.X_TEST_CASE_71.TEST_CASE_64_69_ID.equal(getValueAsShort(org.jooq.test.oracle.generatedclasses.test.tables.XTestCase_64_69.X_TEST_CASE_64_69.ID))) + .where(org.jooq.test.oracle.generatedclasses.test.tables.XTestCase_71.X_TEST_CASE_71.TEST_CASE_64_69_ID.equal(getValue(org.jooq.test.oracle.generatedclasses.test.tables.XTestCase_64_69.X_TEST_CASE_64_69.ID, Short.class))) .fetch(); } diff --git a/jOOQ-test/src/org/jooq/test/oracle/generatedclasses/test/tables/records/XTestCase_71Record.java b/jOOQ-test/src/org/jooq/test/oracle/generatedclasses/test/tables/records/XTestCase_71Record.java index d61373d8ec..534db28abb 100644 --- a/jOOQ-test/src/org/jooq/test/oracle/generatedclasses/test/tables/records/XTestCase_71Record.java +++ b/jOOQ-test/src/org/jooq/test/oracle/generatedclasses/test/tables/records/XTestCase_71Record.java @@ -11,7 +11,7 @@ package org.jooq.test.oracle.generatedclasses.test.tables.records; @javax.persistence.Table(name = "X_TEST_CASE_71", schema = "TEST") public class XTestCase_71Record extends org.jooq.impl.UpdatableRecordImpl { - private static final long serialVersionUID = 1942916557; + private static final long serialVersionUID = 1645093631; /** * The table column TEST.X_TEST_CASE_71.ID @@ -69,7 +69,7 @@ public class XTestCase_71Record extends org.jooq.impl.UpdatableRecordImpl implements java.lang.Cloneable, org.jooq.test.oracle3.generatedclasses.tables.interfaces.X_TEST_CASE_64_69_INTERFACE { - private static final long serialVersionUID = 632208317; + private static final long serialVersionUID = 2088508871; /** * The table column TEST.X_TEST_CASE_64_69.ID @@ -43,7 +43,7 @@ public class X_TEST_CASE_64_69 extends org.jooq.impl.UpdatableRecordImpl fetchX_TEST_CASE_71List() { return create() .selectFrom(org.jooq.test.oracle3.generatedclasses.tables.X_TEST_CASE_71.X_TEST_CASE_71) - .where(org.jooq.test.oracle3.generatedclasses.tables.X_TEST_CASE_71.X_TEST_CASE_71.TEST_CASE_64_69_ID.equal(getValueAsShort(org.jooq.test.oracle3.generatedclasses.tables.X_TEST_CASE_64_69.X_TEST_CASE_64_69.ID))) + .where(org.jooq.test.oracle3.generatedclasses.tables.X_TEST_CASE_71.X_TEST_CASE_71.TEST_CASE_64_69_ID.equal(getValue(org.jooq.test.oracle3.generatedclasses.tables.X_TEST_CASE_64_69.X_TEST_CASE_64_69.ID, Short.class))) .fetch(); } diff --git a/jOOQ-test/src/org/jooq/test/oracle3/generatedclasses/tables/records/X_TEST_CASE_71.java b/jOOQ-test/src/org/jooq/test/oracle3/generatedclasses/tables/records/X_TEST_CASE_71.java index dbf31d77de..8349c5e4ee 100644 --- a/jOOQ-test/src/org/jooq/test/oracle3/generatedclasses/tables/records/X_TEST_CASE_71.java +++ b/jOOQ-test/src/org/jooq/test/oracle3/generatedclasses/tables/records/X_TEST_CASE_71.java @@ -11,7 +11,7 @@ package org.jooq.test.oracle3.generatedclasses.tables.records; @javax.persistence.Table(name = "X_TEST_CASE_71", schema = "TEST") public class X_TEST_CASE_71 extends org.jooq.impl.UpdatableRecordImpl implements java.lang.Cloneable, org.jooq.test.oracle3.generatedclasses.tables.interfaces.X_TEST_CASE_71_INTERFACE { - private static final long serialVersionUID = -1658239019; + private static final long serialVersionUID = -672251853; /** * The table column TEST.X_TEST_CASE_71.ID @@ -73,7 +73,7 @@ public class X_TEST_CASE_71 extends org.jooq.impl.UpdatableRecordImpl { - private static final long serialVersionUID = -1436916508; + private static final long serialVersionUID = 239850546; /** * The table column public.x_test_case_64_69.id @@ -41,7 +41,7 @@ public class XTestCase_64_69Record extends org.jooq.impl.UpdatableRecordImpl fetchXTestCase_71List() { return create() .selectFrom(org.jooq.test.postgres.generatedclasses.tables.XTestCase_71.X_TEST_CASE_71) - .where(org.jooq.test.postgres.generatedclasses.tables.XTestCase_71.X_TEST_CASE_71.TEST_CASE_64_69_ID.equal(getValueAsShort(org.jooq.test.postgres.generatedclasses.tables.XTestCase_64_69.X_TEST_CASE_64_69.ID))) + .where(org.jooq.test.postgres.generatedclasses.tables.XTestCase_71.X_TEST_CASE_71.TEST_CASE_64_69_ID.equal(getValue(org.jooq.test.postgres.generatedclasses.tables.XTestCase_64_69.X_TEST_CASE_64_69.ID, Short.class))) .fetch(); } diff --git a/jOOQ-test/src/org/jooq/test/postgres/generatedclasses/tables/records/XTestCase_71Record.java b/jOOQ-test/src/org/jooq/test/postgres/generatedclasses/tables/records/XTestCase_71Record.java index a32408fadc..10990f5619 100644 --- a/jOOQ-test/src/org/jooq/test/postgres/generatedclasses/tables/records/XTestCase_71Record.java +++ b/jOOQ-test/src/org/jooq/test/postgres/generatedclasses/tables/records/XTestCase_71Record.java @@ -11,7 +11,7 @@ package org.jooq.test.postgres.generatedclasses.tables.records; @javax.persistence.Table(name = "x_test_case_71", schema = "public") public class XTestCase_71Record extends org.jooq.impl.UpdatableRecordImpl { - private static final long serialVersionUID = -1473910236; + private static final long serialVersionUID = -23880718; /** * The table column public.x_test_case_71.id @@ -69,7 +69,7 @@ public class XTestCase_71Record extends org.jooq.impl.UpdatableRecordImpl { - private static final long serialVersionUID = -790943707; + private static final long serialVersionUID = -1237498625; /** * The table column x_test_case_64_69.ID @@ -37,7 +37,7 @@ public class XTestCase_64_69Record extends org.jooq.impl.UpdatableRecordImpl fetchXTestCase_71List() { return create() .selectFrom(org.jooq.test.sqlite.generatedclasses.tables.XTestCase_71.X_TEST_CASE_71) - .where(org.jooq.test.sqlite.generatedclasses.tables.XTestCase_71.TEST_CASE_64_69_ID.equal(getValueAsShort(org.jooq.test.sqlite.generatedclasses.tables.XTestCase_64_69.ID))) + .where(org.jooq.test.sqlite.generatedclasses.tables.XTestCase_71.TEST_CASE_64_69_ID.equal(getValue(org.jooq.test.sqlite.generatedclasses.tables.XTestCase_64_69.ID, Short.class))) .fetch(); } diff --git a/jOOQ-test/src/org/jooq/test/sqlite/generatedclasses/tables/records/XTestCase_71Record.java b/jOOQ-test/src/org/jooq/test/sqlite/generatedclasses/tables/records/XTestCase_71Record.java index ec5b189832..d7afb17216 100644 --- a/jOOQ-test/src/org/jooq/test/sqlite/generatedclasses/tables/records/XTestCase_71Record.java +++ b/jOOQ-test/src/org/jooq/test/sqlite/generatedclasses/tables/records/XTestCase_71Record.java @@ -9,7 +9,7 @@ package org.jooq.test.sqlite.generatedclasses.tables.records; @java.lang.SuppressWarnings("all") public class XTestCase_71Record extends org.jooq.impl.UpdatableRecordImpl { - private static final long serialVersionUID = 606484651; + private static final long serialVersionUID = -792908643; /** * The table column x_test_case_71.ID @@ -64,7 +64,7 @@ public class XTestCase_71Record extends org.jooq.impl.UpdatableRecordImpl - * This interface is for JOOQ INTERNAL USE only. Do not reference directly - * - * @author Lukas Eder - * @deprecated - 2.5.0 [#1639] - This part of the internal API will be removed - * in the near future. Do not reuse. - */ -@Deprecated -public interface Adapter { - - /** - * Adapt to an internal type assuming its functionality - *

- * This is for JOOQ INTERNAL USE only. If you need to access the internal - * API, these are the known possible interfaces: - *

    - *
  • {@link QueryPartInternal}: The internal API for {@link QueryPart}
  • - *
- * Be aware though, that the internal API may change even between minor - * releases. - * - * @param The internal type's generic type parameter. - * @param internalType The internal type - * @return This object wrapped by or cast to an internal type - * @throws ClassCastException If this object cannot be wrapped by or cast to - * the given internal type - * @deprecated - 2.5.0 [#1639] - This part of the internal API will be - * removed in the near future. Do not reuse. - */ - @Deprecated - I internalAPI(Class internalType) throws ClassCastException; -} diff --git a/jOOQ/src/main/java/org/jooq/Attachable.java b/jOOQ/src/main/java/org/jooq/Attachable.java index edd7c597de..5bf6f9fd28 100644 --- a/jOOQ/src/main/java/org/jooq/Attachable.java +++ b/jOOQ/src/main/java/org/jooq/Attachable.java @@ -59,8 +59,7 @@ import javax.sql.DataSource; * * @author Lukas Eder */ -@SuppressWarnings("deprecation") -public interface Attachable extends Adapter, Serializable { +public interface Attachable extends Serializable { /** * Attach this object to a new {@link Configuration} diff --git a/jOOQ/src/main/java/org/jooq/Package.java b/jOOQ/src/main/java/org/jooq/Package.java index 90de0d2377..6b48a2ba4e 100644 --- a/jOOQ/src/main/java/org/jooq/Package.java +++ b/jOOQ/src/main/java/org/jooq/Package.java @@ -43,12 +43,11 @@ package org.jooq; * @author Lukas Eder */ @SuppressWarnings("deprecation") -public interface Package extends NamedQueryPart, org.jooq.SchemaProvider { +public interface Package extends NamedQueryPart { /** * Get the package schema */ - @Override Schema getSchema(); /** diff --git a/jOOQ/src/main/java/org/jooq/QueryPartInternal.java b/jOOQ/src/main/java/org/jooq/QueryPartInternal.java index 7aa470fbdd..04fbcd7813 100644 --- a/jOOQ/src/main/java/org/jooq/QueryPartInternal.java +++ b/jOOQ/src/main/java/org/jooq/QueryPartInternal.java @@ -118,19 +118,6 @@ public interface QueryPartInternal extends QueryPart { */ void bind(BindContext context) throws DataAccessException; - /** - * Reproduce the SQL dialect this {@link QueryPart} was created with - *

- * This method is for JOOQ INTERNAL USE only. Do not reference directly - * - * @return The SQL dialect - * @deprecated - 2.0.2 - The attached SQL dialect of a {@link QueryPart} - * should no longer be referenced, as query parts become more - * and more {@link Configuration} - independent - */ - @Deprecated - SQLDialect getDialect(); - /** * Check whether this {@link QueryPart} is able to declare fields in a * SELECT clause. diff --git a/jOOQ/src/main/java/org/jooq/Record.java b/jOOQ/src/main/java/org/jooq/Record.java index 991b9ad736..27822810a7 100644 --- a/jOOQ/src/main/java/org/jooq/Record.java +++ b/jOOQ/src/main/java/org/jooq/Record.java @@ -39,11 +39,6 @@ package org.jooq; import java.beans.ConstructorProperties; import java.lang.reflect.Constructor; import java.lang.reflect.Proxy; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.sql.Date; -import java.sql.Time; -import java.sql.Timestamp; import java.util.HashMap; import java.util.Map; @@ -340,1027 +335,6 @@ public interface Record extends FieldProvider, Store { U getValue(int index, Converter converter, U defaultValue) throws IllegalArgumentException, DataTypeException; - /** - * Get an array value from this Record, providing an {@link ArrayRecord} - * field. - * - * @param The generic field parameter - * @param The {@link ArrayRecord} type parameter - * @param field The field - * @return The value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse - */ - @Deprecated - , T> T[] getValueAsArray(Field field) throws IllegalArgumentException; - - /** - * Get an array value from this Record, providing an {@link ArrayRecord} - * field. - * - * @param The generic field parameter - * @param The {@link ArrayRecord} type parameter - * @param field The field - * @param defaultValue The default value instead of null - * @return The value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse - */ - @Deprecated - , T> T[] getValueAsArray(Field field, T[] defaultValue) throws IllegalArgumentException; - - /** - * Get a value from this Record, providing a field. - * - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - String getValueAsString(Field field) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field. - * - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - String getValueAsString(Field field, String defaultValue) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this Record, providing a field name. - * - * @param fieldName The field's name - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - String getValueAsString(String fieldName) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field name. - * - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - String getValueAsString(String fieldName, String defaultValue) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this Record, providing a field. - * - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Byte getValueAsByte(Field field) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field. - * - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Byte getValueAsByte(Field field, Byte defaultValue) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this Record, providing a field name. - * - * @param fieldName The field's name - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Byte getValueAsByte(String fieldName) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field name. - * - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Byte getValueAsByte(String fieldName, Byte defaultValue) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this Record, providing a field. - * - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Short getValueAsShort(Field field) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field. - * - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Short getValueAsShort(Field field, Short defaultValue) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this Record, providing a field name. - * - * @param fieldName The field's name - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Short getValueAsShort(String fieldName) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field name. - * - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Short getValueAsShort(String fieldName, Short defaultValue) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this Record, providing a field. - * - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Integer getValueAsInteger(Field field) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field. - * - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Integer getValueAsInteger(Field field, Integer defaultValue) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this Record, providing a field name. - * - * @param fieldName The field's name - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Integer getValueAsInteger(String fieldName) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field name. - * - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Integer getValueAsInteger(String fieldName, Integer defaultValue) throws IllegalArgumentException, - DataTypeException; - - /** - * Get a value from this Record, providing a field. - * - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Long getValueAsLong(Field field) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field. - * - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Long getValueAsLong(Field field, Long defaultValue) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this Record, providing a field name. - * - * @param fieldName The field's name - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Long getValueAsLong(String fieldName) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field name. - * - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Long getValueAsLong(String fieldName, Long defaultValue) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this Record, providing a field. - * - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - BigInteger getValueAsBigInteger(Field field) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field. - * - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - BigInteger getValueAsBigInteger(Field field, BigInteger defaultValue) throws IllegalArgumentException, - DataTypeException; - - /** - * Get a value from this Record, providing a field name. - * - * @param fieldName The field's name - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - BigInteger getValueAsBigInteger(String fieldName) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field name. - * - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - BigInteger getValueAsBigInteger(String fieldName, BigInteger defaultValue) throws IllegalArgumentException, - DataTypeException; - - /** - * Get a value from this Record, providing a field. - * - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Float getValueAsFloat(Field field) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field. - * - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Float getValueAsFloat(Field field, Float defaultValue) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this Record, providing a field name. - * - * @param fieldName The field's name - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Float getValueAsFloat(String fieldName) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field name. - * - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Float getValueAsFloat(String fieldName, Float defaultValue) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this Record, providing a field. - * - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Double getValueAsDouble(Field field) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field. - * - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Double getValueAsDouble(Field field, Double defaultValue) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this Record, providing a field name. - * - * @param fieldName The field's name - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Double getValueAsDouble(String fieldName) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field name. - * - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Double getValueAsDouble(String fieldName, Double defaultValue) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this Record, providing a field. - * - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - BigDecimal getValueAsBigDecimal(Field field) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field. - * - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - BigDecimal getValueAsBigDecimal(Field field, BigDecimal defaultValue) throws IllegalArgumentException, - DataTypeException; - - /** - * Get a value from this Record, providing a field name. - * - * @param fieldName The field's name - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - BigDecimal getValueAsBigDecimal(String fieldName) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field name. - * - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - BigDecimal getValueAsBigDecimal(String fieldName, BigDecimal defaultValue) throws IllegalArgumentException, - DataTypeException; - - /** - * Get a value from this Record, providing a field. - *

- * boolean values for true are any of these case-insensitive - * strings: - *

    - *
  • 1
  • - *
  • y
  • - *
  • yes
  • - *
  • true
  • - *
  • on
  • - *
  • enabled
  • - *
- *

- * boolean values for false are any of these case-insensitive - * strings: - *

    - *
  • 0
  • - *
  • n
  • - *
  • no
  • - *
  • false
  • - *
  • off
  • - *
  • disabled
  • - *
- *

- * All other values evaluate to null - * - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Boolean getValueAsBoolean(Field field) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field. - *

- * boolean values for true are any of these case-insensitive - * strings: - *

    - *
  • 1
  • - *
  • y
  • - *
  • yes
  • - *
  • true
  • - *
  • on
  • - *
  • enabled
  • - *
- *

- * boolean values for false are any of these case-insensitive - * strings: - *

    - *
  • 0
  • - *
  • n
  • - *
  • no
  • - *
  • false
  • - *
  • off
  • - *
  • disabled
  • - *
- *

- * All other values evaluate to null - * - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Boolean getValueAsBoolean(Field field, Boolean defaultValue) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this Record, providing a field name. - *

- * boolean values for true are any of these case-insensitive - * strings: - *

    - *
  • 1
  • - *
  • y
  • - *
  • yes
  • - *
  • true
  • - *
  • on
  • - *
  • enabled
  • - *
- *

- * boolean values for false are any of these case-insensitive - * strings: - *

    - *
  • 0
  • - *
  • n
  • - *
  • no
  • - *
  • false
  • - *
  • off
  • - *
  • disabled
  • - *
- *

- * All other values evaluate to null - * - * @param fieldName The field's name - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Boolean getValueAsBoolean(String fieldName) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field name. - *

- * boolean values for true are any of these case-insensitive - * strings: - *

    - *
  • 1
  • - *
  • y
  • - *
  • yes
  • - *
  • true
  • - *
  • on
  • - *
  • enabled
  • - *
- *

- * boolean values for false are any of these case-insensitive - * strings: - *

    - *
  • 0
  • - *
  • n
  • - *
  • no
  • - *
  • false
  • - *
  • off
  • - *
  • disabled
  • - *
- *

- * All other values evaluate to null - * - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Boolean getValueAsBoolean(String fieldName, Boolean defaultValue) throws IllegalArgumentException, - DataTypeException; - - /** - * Get a value from this Record, providing a field. - * - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Timestamp getValueAsTimestamp(Field field) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field. - * - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Timestamp getValueAsTimestamp(Field field, Timestamp defaultValue) throws IllegalArgumentException, - DataTypeException; - - /** - * Get a value from this Record, providing a field name. - * - * @param fieldName The field's name - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Timestamp getValueAsTimestamp(String fieldName) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field name. - * - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Timestamp getValueAsTimestamp(String fieldName, Timestamp defaultValue) throws IllegalArgumentException, - DataTypeException; - - /** - * Get a value from this Record, providing a field. - * - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Date getValueAsDate(Field field) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field. - * - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Date getValueAsDate(Field field, Date defaultValue) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this Record, providing a field name. - * - * @param fieldName The field's name - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Date getValueAsDate(String fieldName) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field name. - * - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Date getValueAsDate(String fieldName, Date defaultValue) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this Record, providing a field. - * - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Time getValueAsTime(Field field) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field. - * - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(Field, Class)} - * instead. - */ - @Deprecated - Time getValueAsTime(Field field, Time defaultValue) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this Record, providing a field name. - * - * @param fieldName The field's name - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Time getValueAsTime(String fieldName) throws IllegalArgumentException, DataTypeException; - - /** - * Get a value from this record, providing a field name. - * - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument fieldName is not - * contained in the record - * @throws DataTypeException wrapping any data type conversion exception - * that might have occurred - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValue(String, Class)} - * instead. - */ - @Deprecated - Time getValueAsTime(String fieldName, Time defaultValue) throws IllegalArgumentException, DataTypeException; - /** * Set a value into this record. * diff --git a/jOOQ/src/main/java/org/jooq/Result.java b/jOOQ/src/main/java/org/jooq/Result.java index e4b52e0874..a7e9bde762 100644 --- a/jOOQ/src/main/java/org/jooq/Result.java +++ b/jOOQ/src/main/java/org/jooq/Result.java @@ -36,13 +36,8 @@ package org.jooq; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.sql.Date; import java.sql.ResultSet; import java.sql.Statement; -import java.sql.Time; -import java.sql.Timestamp; import java.util.List; import java.util.Map; @@ -126,1432 +121,6 @@ public interface Result extends FieldProvider, List, Attach */ Object getValue(int index, String fieldName, Object defaultValue) throws IndexOutOfBoundsException; - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param The value's field's generic type parameter - * @param The {@link ArrayRecord} type parameter - * @param index The record's index - * @param field The value's field - * @return The value - * @throws IndexOutOfBoundsException - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse - */ - @Deprecated - , T> T[] getValueAsArray(int index, Field field) throws IndexOutOfBoundsException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param The value's field's generic type parameter - * @param The {@link ArrayRecord} type parameter - * @param index The record's index - * @param field The value's field - * @param defaultValue The default value if the value was null - * @return The value - * @throws IndexOutOfBoundsException - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse - */ - @Deprecated - , T> T[] getValueAsArray(int index, Field field, T[] defaultValue) - throws IndexOutOfBoundsException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - String getValueAsString(int index, Field field) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - String getValueAsString(int index, Field field, String defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - String getValueAsString(int index, int fieldIndex) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @param defaultValue The default value instead of null - * @return The converted value of a field's index contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - String getValueAsString(int index, int fieldIndex, String defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @return The converted value of a field's name contained in this record - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - String getValueAsString(int index, String fieldName) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - String getValueAsString(int index, String fieldName, String defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Byte getValueAsByte(int index, Field field) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Byte getValueAsByte(int index, Field field, Byte defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Byte getValueAsByte(int index, int fieldIndex) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @param defaultValue The default value instead of null - * @return The converted value of a field's index contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Byte getValueAsByte(int index, int fieldIndex, Byte defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @return The converted value of a field's name contained in this record - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Byte getValueAsByte(int index, String fieldName) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Byte getValueAsByte(int index, String fieldName, Byte defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Short getValueAsShort(int index, Field field) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Short getValueAsShort(int index, Field field, Short defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Short getValueAsShort(int index, int fieldIndex) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @param defaultValue The default value instead of null - * @return The converted value of a field's index contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Short getValueAsShort(int index, int fieldIndex, Short defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @return The converted value of a field's name contained in this record - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Short getValueAsShort(int index, String fieldName) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Short getValueAsShort(int index, String fieldName, Short defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Integer getValueAsInteger(int index, Field field) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Integer getValueAsInteger(int index, Field field, Integer defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Integer getValueAsInteger(int index, int fieldIndex) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @param defaultValue The default value instead of null - * @return The converted value of a field's index contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Integer getValueAsInteger(int index, int fieldIndex, Integer defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @return The converted value of a field's name contained in this record - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Integer getValueAsInteger(int index, String fieldName) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Integer getValueAsInteger(int index, String fieldName, Integer defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Long getValueAsLong(int index, Field field) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Long getValueAsLong(int index, Field field, Long defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Long getValueAsLong(int index, int fieldIndex) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @param defaultValue The default value instead of null - * @return The converted value of a field's index contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Long getValueAsLong(int index, int fieldIndex, Long defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @return The converted value of a field's name contained in this record - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Long getValueAsLong(int index, String fieldName) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Long getValueAsLong(int index, String fieldName, Long defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - BigInteger getValueAsBigInteger(int index, Field field) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - BigInteger getValueAsBigInteger(int index, Field field, BigInteger defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - BigInteger getValueAsBigInteger(int index, int fieldIndex) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @param defaultValue The default value instead of null - * @return The converted value of a field's index contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - BigInteger getValueAsBigInteger(int index, int fieldIndex, BigInteger defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @return The converted value of a field's name contained in this record - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - BigInteger getValueAsBigInteger(int index, String fieldName) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - BigInteger getValueAsBigInteger(int index, String fieldName, BigInteger defaultValue) - throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Float getValueAsFloat(int index, Field field) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Float getValueAsFloat(int index, Field field, Float defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Float getValueAsFloat(int index, int fieldIndex) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @param defaultValue The default value instead of null - * @return The converted value of a field's index contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Float getValueAsFloat(int index, int fieldIndex, Float defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @return The converted value of a field's name contained in this record - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Float getValueAsFloat(int index, String fieldName) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Float getValueAsFloat(int index, String fieldName, Float defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Double getValueAsDouble(int index, Field field) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Double getValueAsDouble(int index, Field field, Double defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Double getValueAsDouble(int index, int fieldIndex) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @param defaultValue The default value instead of null - * @return The converted value of a field's index contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Double getValueAsDouble(int index, int fieldIndex, Double defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @return The converted value of a field's name contained in this record - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Double getValueAsDouble(int index, String fieldName) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Double getValueAsDouble(int index, String fieldName, Double defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - BigDecimal getValueAsBigDecimal(int index, Field field) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - BigDecimal getValueAsBigDecimal(int index, Field field, BigDecimal defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - BigDecimal getValueAsBigDecimal(int index, int fieldIndex) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @param defaultValue The default value instead of null - * @return The converted value of a field's index contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - BigDecimal getValueAsBigDecimal(int index, int fieldIndex, BigDecimal defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @return The converted value of a field's name contained in this record - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - BigDecimal getValueAsBigDecimal(int index, String fieldName) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - BigDecimal getValueAsBigDecimal(int index, String fieldName, BigDecimal defaultValue) - throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - *

- * boolean values for true are any of these case-insensitive - * strings: - *

- *

- * boolean values for false are any of these case-insensitive - * strings: - *

    - *
  • 0
  • - *
  • n
  • - *
  • no
  • - *
  • false
  • - *
  • off
  • - *
  • disabled
  • - *
- *

- * All other values evaluate to null - * - * @param index The record's index - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Boolean getValueAsBoolean(int index, Field field) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - *

- * boolean values for true are any of these case-insensitive - * strings: - *

    - *
  • 1
  • - *
  • y
  • - *
  • yes
  • - *
  • true
  • - *
  • on
  • - *
  • enabled
  • - *
- *

- * boolean values for false are any of these case-insensitive - * strings: - *

    - *
  • 0
  • - *
  • n
  • - *
  • no
  • - *
  • false
  • - *
  • off
  • - *
  • disabled
  • - *
- *

- * All other values evaluate to null - * - * @param index The record's index - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Boolean getValueAsBoolean(int index, Field field, Boolean defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - *

- * boolean values for true are any of these case-insensitive - * strings: - *

    - *
  • 1
  • - *
  • y
  • - *
  • yes
  • - *
  • true
  • - *
  • on
  • - *
  • enabled
  • - *
- *

- * boolean values for false are any of these case-insensitive - * strings: - *

    - *
  • 0
  • - *
  • n
  • - *
  • no
  • - *
  • false
  • - *
  • off
  • - *
  • disabled
  • - *
- *

- * All other values evaluate to null - * - * @param index The record's index - * @param fieldIndex The field's index - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Boolean getValueAsBoolean(int index, int fieldIndex) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - *

- * boolean values for true are any of these case-insensitive - * strings: - *

    - *
  • 1
  • - *
  • y
  • - *
  • yes
  • - *
  • true
  • - *
  • on
  • - *
  • enabled
  • - *
- *

- * boolean values for false are any of these case-insensitive - * strings: - *

    - *
  • 0
  • - *
  • n
  • - *
  • no
  • - *
  • false
  • - *
  • off
  • - *
  • disabled
  • - *
- *

- * All other values evaluate to null - * - * @param index The record's index - * @param fieldIndex The field's index - * @param defaultValue The default value instead of null - * @return The converted value of a field's index contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Boolean getValueAsBoolean(int index, int fieldIndex, Boolean defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - *

- * boolean values for true are any of these case-insensitive - * strings: - *

    - *
  • 1
  • - *
  • y
  • - *
  • yes
  • - *
  • true
  • - *
  • on
  • - *
  • enabled
  • - *
- *

- * boolean values for false are any of these case-insensitive - * strings: - *

    - *
  • 0
  • - *
  • n
  • - *
  • no
  • - *
  • false
  • - *
  • off
  • - *
  • disabled
  • - *
- *

- * All other values evaluate to null - * - * @param index The record's index - * @param fieldName The field's name - * @return The converted value of a field's name contained in this record - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Boolean getValueAsBoolean(int index, String fieldName) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - *

- * boolean values for true are any of these case-insensitive - * strings: - *

    - *
  • 1
  • - *
  • y
  • - *
  • yes
  • - *
  • true
  • - *
  • on
  • - *
  • enabled
  • - *
- *

- * boolean values for false are any of these case-insensitive - * strings: - *

    - *
  • 0
  • - *
  • n
  • - *
  • no
  • - *
  • false
  • - *
  • off
  • - *
  • disabled
  • - *
- *

- * All other values evaluate to null - * - * @param index The record's index - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Boolean getValueAsBoolean(int index, String fieldName, Boolean defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Timestamp getValueAsTimestamp(int index, Field field) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Timestamp getValueAsTimestamp(int index, Field field, Timestamp defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Timestamp getValueAsTimestamp(int index, int fieldIndex) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @param defaultValue The default value instead of null - * @return The converted value of a field's index contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Timestamp getValueAsTimestamp(int index, int fieldIndex, Timestamp defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @return The converted value of a field's name contained in this record - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Timestamp getValueAsTimestamp(int index, String fieldName) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Timestamp getValueAsTimestamp(int index, String fieldName, Timestamp defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Date getValueAsDate(int index, Field field) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Date getValueAsDate(int index, Field field, Date defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Date getValueAsDate(int index, int fieldIndex) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @param defaultValue The default value instead of null - * @return The converted value of a field's index contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Date getValueAsDate(int index, int fieldIndex, Date defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @return The converted value of a field's name contained in this record - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Date getValueAsDate(int index, String fieldName) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Date getValueAsDate(int index, String fieldName, Date defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @return The converted value of a field contained in this record - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Time getValueAsTime(int index, Field field) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param field The field - * @param defaultValue The default value instead of null - * @return The converted value of a field contained in this record, or - * defaultValue, if null - * @throws IllegalArgumentException If the argument field is not contained - * in {@link #getFields()} - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(Field, Class)} instead. - */ - @Deprecated - Time getValueAsTime(int index, Field field, Time defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @return The converted value of a field's index contained in this record - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Time getValueAsTime(int index, int fieldIndex) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldIndex The field's index - * @param defaultValue The default value instead of null - * @return The converted value of a field's index contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument index is not contained - * in the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link Record#getValue(int, Class)} - * instead. - */ - @Deprecated - Time getValueAsTime(int index, int fieldIndex, Time defaultValue) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @return The converted value of a field's name contained in this record - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Time getValueAsTime(int index, String fieldName) throws IllegalArgumentException; - - /** - * Convenience method to fetch a value at a given position in the result. - * - * @param index The record's index - * @param fieldName The field's name - * @param defaultValue The default value instead of null - * @return The converted value of a field's name contained in this record, - * or defaultValue, if null - * @throws IllegalArgumentException If the argument name is not contained in - * the record - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use - * {@link Record#getValue(String, Class)} instead. - */ - @Deprecated - Time getValueAsTime(int index, String fieldName, Time defaultValue) throws IllegalArgumentException; - /** * Convenience method to fetch all values for a given field. This is * especially useful, when selecting only a single field. @@ -1652,474 +221,6 @@ public interface Result extends FieldProvider, List, Attach */ List getValues(String fieldName, Converter converter); - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param field The values' field - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(Field, Class)} - * instead. - */ - @Deprecated - List getValuesAsBigDecimal(Field field); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldIndex The values' field index - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(int, Class)} - * instead. - */ - @Deprecated - List getValuesAsBigDecimal(int fieldIndex); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldName The values' field name - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(String, Class)} - * instead. - */ - @Deprecated - List getValuesAsBigDecimal(String fieldName); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param field The values' field - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(Field, Class)} - * instead. - */ - @Deprecated - List getValuesAsBigInteger(Field field); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldIndex The values' field index - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(int, Class)} - * instead. - */ - @Deprecated - List getValuesAsBigInteger(int fieldIndex); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldName The values' field name - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(String, Class)} - * instead. - */ - @Deprecated - List getValuesAsBigInteger(String fieldName); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param field The values' field - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(Field, Class)} - * instead. - */ - @Deprecated - List getValuesAsByte(Field field); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldIndex The values' field index - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(int, Class)} - * instead. - */ - @Deprecated - List getValuesAsByte(int fieldIndex); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldName The values' field name - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(String, Class)} - * instead. - */ - @Deprecated - List getValuesAsByte(String fieldName); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param field The values' field - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(Field, Class)} - * instead. - */ - @Deprecated - List getValuesAsDate(Field field); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldIndex The values' field index - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(int, Class)} - * instead. - */ - @Deprecated - List getValuesAsDate(int fieldIndex); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldName The values' field name - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(String, Class)} - * instead. - */ - @Deprecated - List getValuesAsDate(String fieldName); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param field The values' field - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(Field, Class)} - * instead. - */ - @Deprecated - List getValuesAsDouble(Field field); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldIndex The values' field index - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(int, Class)} - * instead. - */ - @Deprecated - List getValuesAsDouble(int fieldIndex); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldName The values' field name - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(String, Class)} - * instead. - */ - @Deprecated - List getValuesAsDouble(String fieldName); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param field The values' field - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(Field, Class)} - * instead. - */ - @Deprecated - List getValuesAsFloat(Field field); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldIndex The values' field index - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(int, Class)} - * instead. - */ - @Deprecated - List getValuesAsFloat(int fieldIndex); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldName The values' field name - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(String, Class)} - * instead. - */ - @Deprecated - List getValuesAsFloat(String fieldName); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param field The values' field - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(Field, Class)} - * instead. - */ - @Deprecated - List getValuesAsInteger(Field field); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldIndex The values' field index - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(int, Class)} - * instead. - */ - @Deprecated - List getValuesAsInteger(int fieldIndex); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldName The values' field name - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(String, Class)} - * instead. - */ - @Deprecated - List getValuesAsInteger(String fieldName); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param field The values' field - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(Field, Class)} - * instead. - */ - @Deprecated - List getValuesAsLong(Field field); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldIndex The values' field index - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(int, Class)} - * instead. - */ - @Deprecated - List getValuesAsLong(int fieldIndex); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldName The values' field name - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(String, Class)} - * instead. - */ - @Deprecated - List getValuesAsLong(String fieldName); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param field The values' field - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(Field, Class)} - * instead. - */ - @Deprecated - List getValuesAsShort(Field field); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldIndex The values' field index - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(int, Class)} - * instead. - */ - @Deprecated - List getValuesAsShort(int fieldIndex); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldName The values' field name - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(String, Class)} - * instead. - */ - @Deprecated - List getValuesAsShort(String fieldName); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param field The values' field - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(Field, Class)} - * instead. - */ - @Deprecated - List getValuesAsString(Field field); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldIndex The values' field index - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(int, Class)} - * instead. - */ - @Deprecated - List getValuesAsString(int fieldIndex); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param fieldName The values' field name - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(String, Class)} - * instead. - */ - @Deprecated - List getValuesAsString(String fieldName); - - /** - * Convenience method to fetch all values for a given field. This is - * especially useful, when selecting only a single field. - * - * @param field The values' field - * @return The converted values - * @deprecated - 2.6.0 [#1839] - These methods will be removed in the - * future. Do not reuse. Use {@link #getValues(Field, Class)} - * instead. - */ - @Deprecated - List

- * This method returns all generated types involved with this schema. The - * result can be used in {@link ResultSet#getObject(int, Map)} and similar - * methods. - * - * @see UDT#getTypeMapping() for a UDT-specific type mapping - * @deprecated - 2.3.0 - Do not reuse this method - */ - @Deprecated - Map> getTypeMapping(); - /** * List all tables contained in this schema */ diff --git a/jOOQ/src/main/java/org/jooq/SchemaProvider.java b/jOOQ/src/main/java/org/jooq/SchemaProvider.java deleted file mode 100644 index cdb694f528..0000000000 --- a/jOOQ/src/main/java/org/jooq/SchemaProvider.java +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Copyright (c) 2009-2012, Lukas Eder, lukas.eder@gmail.com - * All rights reserved. - * - * This software is licensed to you under the Apache License, Version 2.0 - * (the "License"); You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * . Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * . Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * . Neither the name "jOOQ" nor the names of its contributors may be - * used to endorse or promote products derived from this software without - * specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -package org.jooq; - -/** - * An object providing a {@link Schema}. This becomes particularly interesting, - * when the schema is mapped. - * - * @author Lukas Eder - * @since 1.5.2 - * @deprecated - 2.5.0 [#1580] - The org.jooq.SchemaProvider marker - * interface has not proven to be useful to the public API so far. - * There is no real need to abstract its implementations with a - * single interface - */ -@Deprecated -public interface SchemaProvider { - - /** - * @return The contained schema - */ - Schema getSchema(); - -} diff --git a/jOOQ/src/main/java/org/jooq/Table.java b/jOOQ/src/main/java/org/jooq/Table.java index 33ee8169ef..c4cfc01cc4 100644 --- a/jOOQ/src/main/java/org/jooq/Table.java +++ b/jOOQ/src/main/java/org/jooq/Table.java @@ -67,7 +67,6 @@ public interface Table extends org.jooq.Type, AliasProvider /** * Get the table schema */ - @Override Schema getSchema(); /** diff --git a/jOOQ/src/main/java/org/jooq/TableRecord.java b/jOOQ/src/main/java/org/jooq/TableRecord.java index 9230586cba..7e933effa0 100644 --- a/jOOQ/src/main/java/org/jooq/TableRecord.java +++ b/jOOQ/src/main/java/org/jooq/TableRecord.java @@ -35,13 +35,6 @@ */ package org.jooq; -import java.sql.ResultSet; -import java.sql.Statement; - -import org.jooq.conf.Settings; -import org.jooq.exception.DataAccessException; -import org.jooq.exception.DataChangedException; -import org.jooq.impl.Factory; /** * A record originating from a single table @@ -56,207 +49,6 @@ public interface TableRecord> extends Record { */ Table getTable(); - /** - * Store this record back to the database. - *

- * Depending on the state of the provided keys' value, an - * INSERT or an UPDATE statement is executed. - *

- *

Statement type

- *

- *

    - *
  • If this record was created by client code, an INSERT - * statement is executed
  • - *
  • If this record was loaded by jOOQ, but the provided keys' value was - * changed, an INSERT statement is executed. jOOQ expects that - * primary key values will never change due to the principle of - * normalisation in RDBMS. So if client code changes primary key values, - * this is interpreted by jOOQ as client code wanting to duplicate this - * record.
  • - *
  • If this record was loaded by jOOQ, and the provided keys' value was - * not changed, an UPDATE statement is executed.
  • - *
- *

- * In either statement type, only those fields are inserted/updated, which - * had been explicitly set by client code, in order to allow for - * DEFAULT values to be applied by the underlying RDBMS. If no - * fields were modified, neither an UPDATE nor an - * INSERT will be executed. - *

Automatic value generation

- *

- *

    - *
  • IDENTITY columns - *

    - * If there is an IDENTITY column defined on the record's - * underlying table (see {@link Table#getIdentity()}), then the - * auto-generated IDENTITY value is refreshed automatically on - * INSERT's. Refreshing is done using - * {@link Statement#getGeneratedKeys()}, where this is supported by the JDBC - * driver. See also {@link InsertQuery#getReturnedRecord()} for more details - *

  • - *
  • VERSION and TIMESTAMP columns - *

    - * jOOQ can auto-generate "version" and "timestamp" values that can be used - * for optimistic locking. If this is an {@link UpdatableRecord} and if this - * record returns fields for either - * {@link UpdatableTable#getRecordVersion()} or - * {@link UpdatableTable#getRecordTimestamp()}, then these values are set - * onto the INSERT or UPDATE statement being - * executed. On execution success, the generated values are set to this - * record. Use the code-generation configuration to specify naming patterns - * for auto-generated "version" and "timestamp" columns. - *

    - * Should you want to circumvent jOOQ-generated updates to these columns, - * you can render an INSERT or UPDATE statement - * manually using the various {@link Factory#insertInto(Table)}, - * {@link Factory#update(Table)} methods.

  • - *
- *

Optimistic locking

- *

- * If an UPDATE statement is executed and - * {@link Settings#isExecuteWithOptimisticLocking()} is set to - * true, then this record will first be compared with the - * latest state in the database. There are two modes of operation for - * optimistic locking: - *

    - *
  • With VERSION and/or TIMESTAMP columns configured - *

    - * This is the preferred way of using optimistic locking in jOOQ. If this is - * an {@link UpdatableRecord} and if this record returns fields for either - * {@link UpdatableTable#getRecordVersion()} or - * {@link UpdatableTable#getRecordTimestamp()}, then these values are - * compared to the corresponding value in the database in the - * WHERE clause of the executed DELETE statement.

  • - *
  • Without any specific column configurations - *

    - * In order to compare this record with the latest state, the database - * record will be locked pessimistically using a - * SELECT .. FOR UPDATE statement. Not all databases support - * the FOR UPDATE clause natively. Namely, the following - * databases will show slightly different behaviour: - *

      - *
    • {@link SQLDialect#CUBRID} and {@link SQLDialect#SQLSERVER}: jOOQ will - * try to lock the database record using JDBC's - * {@link ResultSet#TYPE_SCROLL_SENSITIVE} and - * {@link ResultSet#CONCUR_UPDATABLE}.
    • - *
    • {@link SQLDialect#SQLITE}: No pessimistic locking is possible. Client - * code must assure that no race-conditions can occur between jOOQ's - * checking of database record state and the actual UPDATE
    • - *
    - *

    - * See {@link LockProvider#setForUpdate(boolean)} for more details

  • - *
- *

Statement examples

- *

- * Possible statements are - *

    - *
  • - *
    -     * INSERT INTO [table] ([modified fields, including keys])
    -     * VALUES ([modified values, including keys])
  • - *
  • - *
    -     * UPDATE [table]
    -     * SET [modified fields = modified values, excluding keys]
    -     * WHERE [key fields = key values]
    -     * AND [version/timestamp fields = version/timestamp values]
  • - *
- * - * @param keys The key fields used for deciding whether to execute an - * INSERT or UPDATE statement. If an - * UPDATE statement is executed, they are also the - * key fields for the UPDATE statement's - * WHERE clause. - * @return The number of stored records. - * @throws DataAccessException if something went wrong executing the query - * @throws DataChangedException If optimistic locking is enabled and the - * record has already been changed/deleted in the database - * @deprecated - 2.5.0 [#1736] - These methods will be made part of jOOQ's - * internal API soon. Do not reuse these methods. - */ - @Deprecated - int storeUsing(TableField... keys) throws DataAccessException, DataChangedException; - - /** - * Deletes this record from the database, based on the value of the provided - * keys. - *

- *

Optimistic locking

- *

- * If a DELETE statement is executed and - * {@link Settings#isExecuteWithOptimisticLocking()} is set to - * true, then this record will first be compared with the - * latest state in the database. There are two modes of operation for - * optimistic locking: - *

    - *
  • With VERSION and/or TIMESTAMP columns configured - *

    - * This is the preferred way of using optimistic locking in jOOQ. If this is - * an {@link UpdatableRecord} and if this record returns fields for either - * {@link UpdatableTable#getRecordVersion()} or - * {@link UpdatableTable#getRecordTimestamp()}, then these values are - * compared to the corresponding value in the database in the - * WHERE clause of the executed DELETE statement.

  • - *
  • Without any specific column configurations - *

    - * In order to compare this record with the latest state, the database - * record will be locked pessimistically using a - * SELECT .. FOR UPDATE statement. Not all databases support - * the FOR UPDATE clause natively. Namely, the following - * databases will show slightly different behaviour: - *

      - *
    • {@link SQLDialect#CUBRID} and {@link SQLDialect#SQLSERVER}: jOOQ will - * try to lock the database record using JDBC's - * {@link ResultSet#TYPE_SCROLL_SENSITIVE} and - * {@link ResultSet#CONCUR_UPDATABLE}.
    • - *
    • {@link SQLDialect#SQLITE}: No pessimistic locking is possible. Client - * code must assure that no race-conditions can occur between jOOQ's - * checking of database record state and the actual DELETE
    • - *
    - *

    - * See {@link LockProvider#setForUpdate(boolean)} for more details

  • - *
- *

Statement examples

- *

- * The executed statement is

-     * DELETE FROM [table]
-     * WHERE [key fields = key values]
-     * AND [version/timestamp fields = version/timestamp values]
- * - * @param keys The key fields for the DELETE statement's - * WHERE clause. - * @return The number of deleted records. - * @throws DataAccessException if something went wrong executing the query - * @throws DataChangedException If optimistic locking is enabled and the - * record has already been changed/deleted in the database - * @deprecated - 2.5.0 [#1736] - These methods will be made part of jOOQ's - * internal API soon. Do not reuse these methods. - */ - @Deprecated - int deleteUsing(TableField... keys) throws DataAccessException, DataChangedException; - - /** - * Refresh this record from the database, based on the value of the provided - * keys. - *

- * The executed statement is

-     * SELECT * FROM [table]
-     * WHERE [key fields = key values]
- * - * @param keys The key fields for the SELECT statement's - * WHERE clause. - * @throws DataAccessException This exception is thrown if - *
    - *
  • something went wrong executing the query
  • the - * record does not exist anymore in the database
  • the - * provided keys return several records.
  • - *
- * @deprecated - 2.5.0 [#1736] - These methods will be made part of jOOQ's - * internal API soon. Do not reuse these methods. - */ - @Deprecated - void refreshUsing(TableField... keys) throws DataAccessException; - /** * {@inheritDoc} */ diff --git a/jOOQ/src/main/java/org/jooq/Type.java b/jOOQ/src/main/java/org/jooq/Type.java index 955039e9b3..7894ce4c0d 100644 --- a/jOOQ/src/main/java/org/jooq/Type.java +++ b/jOOQ/src/main/java/org/jooq/Type.java @@ -46,7 +46,7 @@ package org.jooq; * {@link org.jooq.UDT} with a single interface */ @Deprecated -public interface Type extends NamedQueryPart, FieldProvider, org.jooq.SchemaProvider { +public interface Type extends NamedQueryPart, FieldProvider { /** * @return The record type produced by this table diff --git a/jOOQ/src/main/java/org/jooq/UDT.java b/jOOQ/src/main/java/org/jooq/UDT.java index 29b8a1ac4a..b2bc36f5d7 100644 --- a/jOOQ/src/main/java/org/jooq/UDT.java +++ b/jOOQ/src/main/java/org/jooq/UDT.java @@ -48,7 +48,6 @@ public interface UDT> extends org.jooq.Type { /** * Get the UDT schema */ - @Override Schema getSchema(); /** diff --git a/jOOQ/src/main/java/org/jooq/impl/AbstractFieldProviderQueryPart.java b/jOOQ/src/main/java/org/jooq/impl/AbstractFieldProviderQueryPart.java index d8a5bfd4b9..e440fe3624 100644 --- a/jOOQ/src/main/java/org/jooq/impl/AbstractFieldProviderQueryPart.java +++ b/jOOQ/src/main/java/org/jooq/impl/AbstractFieldProviderQueryPart.java @@ -40,10 +40,9 @@ import java.util.List; import org.jooq.Field; import org.jooq.Record; -import org.jooq.Schema; @SuppressWarnings("deprecation") -abstract class AbstractFieldProviderQueryPart extends AbstractSchemaProviderQueryPart implements +abstract class AbstractFieldProviderQueryPart extends AbstractNamedQueryPart implements org.jooq.Type { /** @@ -51,8 +50,8 @@ abstract class AbstractFieldProviderQueryPart extends Abstract */ private static final long serialVersionUID = -4629861305735726005L; - AbstractFieldProviderQueryPart(String name, Schema schema) { - super(name, schema); + AbstractFieldProviderQueryPart(String name) { + super(name); } @Override diff --git a/jOOQ/src/main/java/org/jooq/impl/AbstractQueryPart.java b/jOOQ/src/main/java/org/jooq/impl/AbstractQueryPart.java index c57065dd49..8140ad5bf1 100644 --- a/jOOQ/src/main/java/org/jooq/impl/AbstractQueryPart.java +++ b/jOOQ/src/main/java/org/jooq/impl/AbstractQueryPart.java @@ -49,7 +49,6 @@ import org.jooq.Param; import org.jooq.Query; import org.jooq.QueryPart; import org.jooq.QueryPartInternal; -import org.jooq.SQLDialect; import org.jooq.exception.DataAccessException; import org.jooq.exception.SQLDialectNotSupportedException; @@ -60,11 +59,6 @@ abstract class AbstractQueryPart implements QueryPartInternal { private static final long serialVersionUID = 2078114876079493107L; - @Override - public final I internalAPI(Class internalType) { - return internalType.cast(this); - } - // ------------------------------------------------------------------------- // [#1544] The deprecated Attachable and Attachable internal API // ------------------------------------------------------------------------- @@ -82,12 +76,6 @@ abstract class AbstractQueryPart implements QueryPartInternal { // The QueryPart and QueryPart internal API // ------------------------------------------------------------------------- - @Override - @Deprecated - public final SQLDialect getDialect() { - throw new UnsupportedOperationException("This method is no longer supported"); - } - /** * This method is also declared as {@link Query#getSQL()} *

@@ -227,17 +215,6 @@ abstract class AbstractQueryPart implements QueryPartInternal { return Factory.getNewFactory(configuration); } - /** - * Internal convenience method - * - * @deprecated - 2.3.0 - Do not reuse - */ - @SuppressWarnings("unused") - @Deprecated - protected final DataAccessException translate(String task, String sql, SQLException e) { - return translate(sql, e); - } - /** * Internal convenience method */ diff --git a/jOOQ/src/main/java/org/jooq/impl/AbstractRecord.java b/jOOQ/src/main/java/org/jooq/impl/AbstractRecord.java index 7c346340b3..823293df0c 100644 --- a/jOOQ/src/main/java/org/jooq/impl/AbstractRecord.java +++ b/jOOQ/src/main/java/org/jooq/impl/AbstractRecord.java @@ -51,11 +51,6 @@ import java.lang.reflect.Array; import java.lang.reflect.Constructor; import java.lang.reflect.Method; import java.lang.reflect.Modifier; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.sql.Date; -import java.sql.Time; -import java.sql.Timestamp; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; @@ -63,7 +58,6 @@ import java.util.LinkedHashMap; import java.util.List; import java.util.Map; -import org.jooq.ArrayRecord; import org.jooq.Attachable; import org.jooq.Converter; import org.jooq.Field; @@ -252,138 +246,6 @@ abstract class AbstractRecord extends AbstractStore implements Record { return result.toString(); } - @Override - public final String getValueAsString(Field field) { - return getValueAsString(getIndex(field)); - } - - @Override - public final String getValueAsString(Field field, String defaultValue) { - return getValueAsString(getIndex(field), defaultValue); - } - - @Override - public final Byte getValueAsByte(Field field) { - return getValueAsByte(getIndex(field)); - } - - @Override - public final Byte getValueAsByte(Field field, Byte defaultValue) { - return getValueAsByte(getIndex(field), defaultValue); - } - - @Override - public final Short getValueAsShort(Field field) { - return getValueAsShort(getIndex(field)); - } - - @Override - public final Short getValueAsShort(Field field, Short defaultValue) { - return getValueAsShort(getIndex(field), defaultValue); - } - - @Override - public final Integer getValueAsInteger(Field field) { - return getValueAsInteger(getIndex(field)); - } - - @Override - public final Integer getValueAsInteger(Field field, Integer defaultValue) { - return getValueAsInteger(getIndex(field), defaultValue); - } - - @Override - public final Long getValueAsLong(Field field) { - return getValueAsLong(getIndex(field)); - } - - @Override - public final Long getValueAsLong(Field field, Long defaultValue) { - return getValueAsLong(getIndex(field), defaultValue); - } - - @Override - public final BigInteger getValueAsBigInteger(Field field) { - return getValueAsBigInteger(getIndex(field)); - } - - @Override - public final BigInteger getValueAsBigInteger(Field field, BigInteger defaultValue) - { - return getValueAsBigInteger(getIndex(field), defaultValue); - } - - @Override - public final Float getValueAsFloat(Field field) { - return getValueAsFloat(getIndex(field)); - } - - @Override - public final Float getValueAsFloat(Field field, Float defaultValue) { - return getValueAsFloat(getIndex(field), defaultValue); - } - - @Override - public final Double getValueAsDouble(Field field) { - return getValueAsDouble(getIndex(field)); - } - - @Override - public final Double getValueAsDouble(Field field, Double defaultValue) { - return getValueAsDouble(getIndex(field), defaultValue); - } - - @Override - public final BigDecimal getValueAsBigDecimal(Field field) { - return getValueAsBigDecimal(getIndex(field)); - } - - @Override - public final BigDecimal getValueAsBigDecimal(Field field, BigDecimal defaultValue) - { - return getValueAsBigDecimal(getIndex(field), defaultValue); - } - - @Override - public final Boolean getValueAsBoolean(Field field) { - return getValueAsBoolean(getIndex(field)); - } - - @Override - public final Boolean getValueAsBoolean(Field field, Boolean defaultValue) { - return getValueAsBoolean(getIndex(field), defaultValue); - } - - @Override - public final Timestamp getValueAsTimestamp(Field field) { - return getValueAsTimestamp(getIndex(field)); - } - - @Override - public final Timestamp getValueAsTimestamp(Field field, Timestamp defaultValue) { - return getValueAsTimestamp(getIndex(field), defaultValue); - } - - @Override - public final Date getValueAsDate(Field field) { - return getValueAsDate(getIndex(field)); - } - - @Override - public final Date getValueAsDate(Field field, Date defaultValue) { - return getValueAsDate(getIndex(field), defaultValue); - } - - @Override - public final Time getValueAsTime(Field field) { - return getValueAsTime(getIndex(field)); - } - - @Override - public final Time getValueAsTime(Field field, Time defaultValue) { - return getValueAsTime(getIndex(field), defaultValue); - } - @Override public final Object getValue(int index) { return getValue0(index).getValue(); @@ -400,152 +262,6 @@ abstract class AbstractRecord extends AbstractStore implements Record { return getValue((Field) getField(fieldName), defaultValue); } - @Override - public final , T> T[] getValueAsArray(Field field) { - A result = getValue(field); - return result == null ? null : result.get(); - } - - @Override - public final , T> T[] getValueAsArray(Field field, T[] defaultValue) - { - final T[] result = getValueAsArray(field); - return result == null ? defaultValue : result; - } - - @Override - public final String getValueAsString(String fieldName) { - return getValueAsString(getField(fieldName)); - } - - @Override - public final String getValueAsString(String fieldName, String defaultValue) { - return getValueAsString(getField(fieldName), defaultValue); - } - - @Override - public final Byte getValueAsByte(String fieldName) { - return getValueAsByte(getField(fieldName)); - } - - @Override - public final Byte getValueAsByte(String fieldName, Byte defaultValue) { - return getValueAsByte(getField(fieldName), defaultValue); - } - - @Override - public final Short getValueAsShort(String fieldName) { - return getValueAsShort(getField(fieldName)); - } - - @Override - public final Short getValueAsShort(String fieldName, Short defaultValue) { - return getValueAsShort(getField(fieldName), defaultValue); - } - - @Override - public final Integer getValueAsInteger(String fieldName) { - return getValueAsInteger(getField(fieldName)); - } - - @Override - public final Integer getValueAsInteger(String fieldName, Integer defaultValue) { - return getValueAsInteger(getField(fieldName), defaultValue); - } - - @Override - public final Long getValueAsLong(String fieldName) { - return getValueAsLong(getField(fieldName)); - } - - @Override - public final Long getValueAsLong(String fieldName, Long defaultValue) { - return getValueAsLong(getField(fieldName), defaultValue); - } - - @Override - public final BigInteger getValueAsBigInteger(String fieldName) { - return getValueAsBigInteger(getField(fieldName)); - } - - @Override - public final BigInteger getValueAsBigInteger(String fieldName, BigInteger defaultValue) - { - return getValueAsBigInteger(getField(fieldName), defaultValue); - } - - @Override - public final Float getValueAsFloat(String fieldName) { - return getValueAsFloat(getField(fieldName)); - } - - @Override - public final Float getValueAsFloat(String fieldName, Float defaultValue) { - return getValueAsFloat(getField(fieldName), defaultValue); - } - - @Override - public final Double getValueAsDouble(String fieldName) { - return getValueAsDouble(getField(fieldName)); - } - - @Override - public final Double getValueAsDouble(String fieldName, Double defaultValue) { - return getValueAsDouble(getField(fieldName), defaultValue); - } - - @Override - public final BigDecimal getValueAsBigDecimal(String fieldName) { - return getValueAsBigDecimal(getField(fieldName)); - } - - @Override - public final BigDecimal getValueAsBigDecimal(String fieldName, BigDecimal defaultValue) - { - return getValueAsBigDecimal(getField(fieldName), defaultValue); - } - - @Override - public final Boolean getValueAsBoolean(String fieldName) { - return getValueAsBoolean(getField(fieldName)); - } - - @Override - public final Boolean getValueAsBoolean(String fieldName, Boolean defaultValue) { - return getValueAsBoolean(getField(fieldName), defaultValue); - } - - @Override - public final Timestamp getValueAsTimestamp(String fieldName) { - return getValueAsTimestamp(getField(fieldName)); - } - - @Override - public final Timestamp getValueAsTimestamp(String fieldName, Timestamp defaultValue) - { - return getValueAsTimestamp(getField(fieldName), defaultValue); - } - - @Override - public final Date getValueAsDate(String fieldName) { - return getValueAsDate(getField(fieldName)); - } - - @Override - public final Date getValueAsDate(String fieldName, Date defaultValue) { - return getValueAsDate(getField(fieldName), defaultValue); - } - - @Override - public final Time getValueAsTime(String fieldName) { - return getValueAsTime(getField(fieldName)); - } - - @Override - public final Time getValueAsTime(String fieldName, Time defaultValue) { - return getValueAsTime(getField(fieldName), defaultValue); - } - @Override public final T getValue(Field field, Class type) { return Convert.convert(getValue(field), type); diff --git a/jOOQ/src/main/java/org/jooq/impl/AbstractRoutine.java b/jOOQ/src/main/java/org/jooq/impl/AbstractRoutine.java index 8d8d9795ff..20bfc4a60b 100644 --- a/jOOQ/src/main/java/org/jooq/impl/AbstractRoutine.java +++ b/jOOQ/src/main/java/org/jooq/impl/AbstractRoutine.java @@ -79,7 +79,7 @@ import org.jooq.tools.Convert; * * @author Lukas Eder */ -public abstract class AbstractRoutine extends AbstractSchemaProviderQueryPart implements Routine, AttachableInternal { +public abstract class AbstractRoutine extends AbstractNamedQueryPart implements Routine, AttachableInternal { /** * Generated UID @@ -90,6 +90,7 @@ public abstract class AbstractRoutine extends AbstractSchemaProviderQueryPart // Meta-data attributes (the same for every call) // ------------------------------------------------------------------------ + private final Schema schema; private final Package pkg; private final List> allParameters; private final List> inParameters; @@ -127,10 +128,11 @@ public abstract class AbstractRoutine extends AbstractSchemaProviderQueryPart } protected AbstractRoutine(String name, Schema schema, Package pkg, DataType type) { - super(name, schema); + super(name); this.parameterIndexes = new HashMap, Integer>(); + this.schema = schema; this.pkg = pkg; this.allParameters = new ArrayList>(); this.inParameters = new ArrayList>(); @@ -579,6 +581,11 @@ public abstract class AbstractRoutine extends AbstractSchemaProviderQueryPart return Collections.unmodifiableList(allParameters); } + @Override + public final Schema getSchema() { + return schema; + } + @Override public final Package getPackage() { return pkg; diff --git a/jOOQ/src/main/java/org/jooq/impl/AbstractSchemaProviderQueryPart.java b/jOOQ/src/main/java/org/jooq/impl/AbstractSchemaProviderQueryPart.java deleted file mode 100644 index 3595a80783..0000000000 --- a/jOOQ/src/main/java/org/jooq/impl/AbstractSchemaProviderQueryPart.java +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Copyright (c) 2009-2012, Lukas Eder, lukas.eder@gmail.com - * All rights reserved. - * - * This software is licensed to you under the Apache License, Version 2.0 - * (the "License"); You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * . Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * . Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * . Neither the name "jOOQ" nor the names of its contributors may be - * used to endorse or promote products derived from this software without - * specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -package org.jooq.impl; - -import org.jooq.Schema; - -/** - * @author Lukas Eder - */ -@SuppressWarnings("deprecation") -abstract class AbstractSchemaProviderQueryPart extends AbstractNamedQueryPart implements org.jooq.SchemaProvider { - - /** - * Generated UID - */ - private static final long serialVersionUID = -4323244225816421319L; - - private final Schema schema; - - AbstractSchemaProviderQueryPart(String name, Schema schema) { - super(name); - - this.schema = schema; - } - - @Override - public final Schema getSchema() { - return schema; - } -} diff --git a/jOOQ/src/main/java/org/jooq/impl/AbstractStore.java b/jOOQ/src/main/java/org/jooq/impl/AbstractStore.java index e54d06457e..a962d4f3cd 100644 --- a/jOOQ/src/main/java/org/jooq/impl/AbstractStore.java +++ b/jOOQ/src/main/java/org/jooq/impl/AbstractStore.java @@ -73,11 +73,6 @@ abstract class AbstractStore implements Store, AttachableInternal { // The Attachable API // ------------------------------------------------------------------------- - @Override - public final I internalAPI(Class internalType) { - return internalType.cast(this); - } - @Override public final void attach(Configuration c) { configuration = c; diff --git a/jOOQ/src/main/java/org/jooq/impl/AbstractTable.java b/jOOQ/src/main/java/org/jooq/impl/AbstractTable.java index eafc5ac5b4..850c998eb0 100644 --- a/jOOQ/src/main/java/org/jooq/impl/AbstractTable.java +++ b/jOOQ/src/main/java/org/jooq/impl/AbstractTable.java @@ -66,12 +66,16 @@ abstract class AbstractTable extends AbstractFieldProviderQuer */ private static final long serialVersionUID = 3155496238969274871L; + private final Schema schema; + AbstractTable(String name) { this(name, null); } AbstractTable(String name, Schema schema) { - super(name, schema); + super(name); + + this.schema = schema; } // ------------------------------------------------------------------------ @@ -92,6 +96,11 @@ abstract class AbstractTable extends AbstractFieldProviderQuer // XXX: Table API // ------------------------------------------------------------------------ + @Override + public final Schema getSchema() { + return schema; + } + /** * {@inheritDoc} *

diff --git a/jOOQ/src/main/java/org/jooq/impl/BatchStore.java b/jOOQ/src/main/java/org/jooq/impl/BatchStore.java index e29d395a56..22ab32add9 100644 --- a/jOOQ/src/main/java/org/jooq/impl/BatchStore.java +++ b/jOOQ/src/main/java/org/jooq/impl/BatchStore.java @@ -93,8 +93,8 @@ class BatchStore implements Batch { Settings orig = SettingsTools.clone(work); try { - // [#1537] Communicate with TableRecordImpl - create.setData(TableRecordImpl.OMIT_RETURNING_CLAUSE, true); + // [#1537] Communicate with UpdatableRecordImpl + create.setData(UpdatableRecordImpl.OMIT_RETURNING_CLAUSE, true); // Add the QueryCollector to intercept query execution after rendering work.setExecuteListeners(Arrays.asList(QueryCollector.class.getName())); @@ -133,7 +133,7 @@ class BatchStore implements Batch { // Restore the original factory finally { - create.getData().remove(TableRecordImpl.OMIT_RETURNING_CLAUSE); + create.getData().remove(UpdatableRecordImpl.OMIT_RETURNING_CLAUSE); work.setExecuteListeners(orig.getExecuteListeners()); work.setExecuteLogging(orig.isExecuteLogging()); diff --git a/jOOQ/src/main/java/org/jooq/impl/PackageImpl.java b/jOOQ/src/main/java/org/jooq/impl/PackageImpl.java index 8cfb33edb7..84e53911bc 100644 --- a/jOOQ/src/main/java/org/jooq/impl/PackageImpl.java +++ b/jOOQ/src/main/java/org/jooq/impl/PackageImpl.java @@ -51,15 +51,24 @@ import org.jooq.Schema; * * @author Lukas Eder */ -public class PackageImpl extends AbstractSchemaProviderQueryPart implements Package { +public class PackageImpl extends AbstractNamedQueryPart implements Package { /** * Generated UID */ private static final long serialVersionUID = 7466890004995197675L; + private final Schema schema; + public PackageImpl(String name, Schema schema) { - super(name, schema); + super(name); + + this.schema = schema; + } + + @Override + public final Schema getSchema() { + return schema; } @Override diff --git a/jOOQ/src/main/java/org/jooq/impl/ResultImpl.java b/jOOQ/src/main/java/org/jooq/impl/ResultImpl.java index 17ca37a494..fc43c328e5 100644 --- a/jOOQ/src/main/java/org/jooq/impl/ResultImpl.java +++ b/jOOQ/src/main/java/org/jooq/impl/ResultImpl.java @@ -43,12 +43,7 @@ import static org.jooq.tools.StringUtils.leftPad; import static org.jooq.tools.StringUtils.rightPad; import java.lang.reflect.Array; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.sql.Date; import java.sql.ResultSet; -import java.sql.Time; -import java.sql.Timestamp; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; @@ -64,7 +59,6 @@ import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; -import org.jooq.ArrayRecord; import org.jooq.Attachable; import org.jooq.AttachableInternal; import org.jooq.Configuration; @@ -112,11 +106,6 @@ class ResultImpl implements Result, AttachableInternal { // XXX: Attachable API // ------------------------------------------------------------------------- - @Override - public final I internalAPI(Class internalType) { - return internalType.cast(this); - } - @Override public final void attach(Configuration c) { this.configuration = c; @@ -214,406 +203,6 @@ class ResultImpl implements Result, AttachableInternal { return get(index).getValue(fieldName, defaultValue); } - @Override - public final , T> T[] getValueAsArray(int index, Field field) { - return get(index).getValueAsArray(field); - } - - @Override - public final , T> T[] getValueAsArray(int index, Field field, T[] defaultValue) { - return get(index).getValueAsArray(field, defaultValue); - } - - @Override - public final String getValueAsString(int index, Field field) { - return get(index).getValueAsString(field); - } - - @Override - public final String getValueAsString(int index, Field field, String defaultValue) { - return get(index).getValueAsString(field, defaultValue); - } - - @Override - public final String getValueAsString(int index, int fieldIndex) { - return get(index).getValueAsString(fieldIndex); - } - - @Override - public final String getValueAsString(int index, int fieldIndex, String defaultValue) { - return get(index).getValueAsString(fieldIndex, defaultValue); - } - - @Override - public final Byte getValueAsByte(int index, Field field) { - return get(index).getValueAsByte(field); - } - - @Override - public final Byte getValueAsByte(int index, Field field, Byte defaultValue) { - return get(index).getValueAsByte(field, defaultValue); - } - - @Override - public final Byte getValueAsByte(int index, int fieldIndex) { - return get(index).getValueAsByte(fieldIndex); - } - - @Override - public final Byte getValueAsByte(int index, int fieldIndex, Byte defaultValue) { - return get(index).getValueAsByte(fieldIndex, defaultValue); - } - - @Override - public final Short getValueAsShort(int index, Field field) { - return get(index).getValueAsShort(field); - } - - @Override - public final Short getValueAsShort(int index, Field field, Short defaultValue) { - return get(index).getValueAsShort(field, defaultValue); - } - - @Override - public final Short getValueAsShort(int index, int fieldIndex) { - return get(index).getValueAsShort(fieldIndex); - } - - @Override - public final Short getValueAsShort(int index, int fieldIndex, Short defaultValue) { - return get(index).getValueAsShort(fieldIndex, defaultValue); - } - - @Override - public final Integer getValueAsInteger(int index, Field field) { - return get(index).getValueAsInteger(field); - } - - @Override - public final Integer getValueAsInteger(int index, Field field, Integer defaultValue) { - return get(index).getValueAsInteger(field, defaultValue); - } - - @Override - public final Integer getValueAsInteger(int index, int fieldIndex) { - return get(index).getValueAsInteger(fieldIndex); - } - - @Override - public final Integer getValueAsInteger(int index, int fieldIndex, Integer defaultValue) { - return get(index).getValueAsInteger(fieldIndex, defaultValue); - } - - @Override - public final Long getValueAsLong(int index, Field field) { - return get(index).getValueAsLong(field); - } - - @Override - public final Long getValueAsLong(int index, Field field, Long defaultValue) { - return get(index).getValueAsLong(field, defaultValue); - } - - @Override - public final Long getValueAsLong(int index, int fieldIndex) { - return get(index).getValueAsLong(fieldIndex); - } - - @Override - public final Long getValueAsLong(int index, int fieldIndex, Long defaultValue) { - return get(index).getValueAsLong(fieldIndex, defaultValue); - } - - @Override - public final BigInteger getValueAsBigInteger(int index, Field field) { - return get(index).getValueAsBigInteger(field); - } - - @Override - public final BigInteger getValueAsBigInteger(int index, Field field, BigInteger defaultValue) { - return get(index).getValueAsBigInteger(field, defaultValue); - } - - @Override - public final BigInteger getValueAsBigInteger(int index, int fieldIndex) { - return get(index).getValueAsBigInteger(fieldIndex); - } - - @Override - public final BigInteger getValueAsBigInteger(int index, int fieldIndex, BigInteger defaultValue) { - return get(index).getValueAsBigInteger(fieldIndex, defaultValue); - } - - @Override - public final Float getValueAsFloat(int index, Field field) { - return get(index).getValueAsFloat(field); - } - - @Override - public final Float getValueAsFloat(int index, Field field, Float defaultValue) { - return get(index).getValueAsFloat(field, defaultValue); - } - - @Override - public final Float getValueAsFloat(int index, int fieldIndex) { - return get(index).getValueAsFloat(fieldIndex); - } - - @Override - public final Float getValueAsFloat(int index, int fieldIndex, Float defaultValue) { - return get(index).getValueAsFloat(fieldIndex, defaultValue); - } - - @Override - public final Double getValueAsDouble(int index, Field field) { - return get(index).getValueAsDouble(field); - } - - @Override - public final Double getValueAsDouble(int index, Field field, Double defaultValue) { - return get(index).getValueAsDouble(field, defaultValue); - } - - @Override - public final Double getValueAsDouble(int index, int fieldIndex) { - return get(index).getValueAsDouble(fieldIndex); - } - - @Override - public final Double getValueAsDouble(int index, int fieldIndex, Double defaultValue) { - return get(index).getValueAsDouble(fieldIndex, defaultValue); - } - - @Override - public final BigDecimal getValueAsBigDecimal(int index, Field field) { - return get(index).getValueAsBigDecimal(field); - } - - @Override - public final BigDecimal getValueAsBigDecimal(int index, Field field, BigDecimal defaultValue) { - return get(index).getValueAsBigDecimal(field, defaultValue); - } - - @Override - public final BigDecimal getValueAsBigDecimal(int index, int fieldIndex) { - return get(index).getValueAsBigDecimal(fieldIndex); - } - - @Override - public final BigDecimal getValueAsBigDecimal(int index, int fieldIndex, BigDecimal defaultValue) { - return get(index).getValueAsBigDecimal(fieldIndex, defaultValue); - } - - @Override - public final Boolean getValueAsBoolean(int index, Field field) { - return get(index).getValueAsBoolean(field); - } - - @Override - public final Boolean getValueAsBoolean(int index, Field field, Boolean defaultValue) { - return get(index).getValueAsBoolean(field, defaultValue); - } - - @Override - public final Boolean getValueAsBoolean(int index, int fieldIndex) { - return get(index).getValueAsBoolean(fieldIndex); - } - - @Override - public final Boolean getValueAsBoolean(int index, int fieldIndex, Boolean defaultValue) { - return get(index).getValueAsBoolean(fieldIndex, defaultValue); - } - - @Override - public final Timestamp getValueAsTimestamp(int index, Field field) { - return get(index).getValueAsTimestamp(field); - } - - @Override - public final Timestamp getValueAsTimestamp(int index, Field field, Timestamp defaultValue) { - return get(index).getValueAsTimestamp(field, defaultValue); - } - - @Override - public final Timestamp getValueAsTimestamp(int index, int fieldIndex) { - return get(index).getValueAsTimestamp(fieldIndex); - } - - @Override - public final Timestamp getValueAsTimestamp(int index, int fieldIndex, Timestamp defaultValue) { - return get(index).getValueAsTimestamp(fieldIndex, defaultValue); - } - - @Override - public final Date getValueAsDate(int index, Field field) { - return get(index).getValueAsDate(field); - } - - @Override - public final Date getValueAsDate(int index, Field field, Date defaultValue) { - return get(index).getValueAsDate(field, defaultValue); - } - - @Override - public final Date getValueAsDate(int index, int fieldIndex) { - return get(index).getValueAsDate(fieldIndex); - } - - @Override - public final Date getValueAsDate(int index, int fieldIndex, Date defaultValue) { - return get(index).getValueAsDate(fieldIndex, defaultValue); - } - - @Override - public final Time getValueAsTime(int index, Field field) { - return get(index).getValueAsTime(field); - } - - @Override - public final Time getValueAsTime(int index, Field field, Time defaultValue) { - return get(index).getValueAsTime(field, defaultValue); - } - - @Override - public final Time getValueAsTime(int index, int fieldIndex) { - return get(index).getValueAsTime(fieldIndex); - } - - @Override - public final Time getValueAsTime(int index, int fieldIndex, Time defaultValue) { - return get(index).getValueAsTime(fieldIndex, defaultValue); - } - - @Override - public final String getValueAsString(int index, String fieldName) { - return get(index).getValueAsString(fieldName); - } - - @Override - public final String getValueAsString(int index, String fieldName, String defaultValue) { - return get(index).getValueAsString(fieldName, defaultValue); - } - - @Override - public final Byte getValueAsByte(int index, String fieldName) { - return get(index).getValueAsByte(fieldName); - } - - @Override - public final Byte getValueAsByte(int index, String fieldName, Byte defaultValue) { - return get(index).getValueAsByte(fieldName, defaultValue); - } - - @Override - public final Short getValueAsShort(int index, String fieldName) { - return get(index).getValueAsShort(fieldName); - } - - @Override - public final Short getValueAsShort(int index, String fieldName, Short defaultValue) { - return get(index).getValueAsShort(fieldName, defaultValue); - } - - @Override - public final Integer getValueAsInteger(int index, String fieldName) { - return get(index).getValueAsInteger(fieldName); - } - - @Override - public final Integer getValueAsInteger(int index, String fieldName, Integer defaultValue) { - return get(index).getValueAsInteger(fieldName, defaultValue); - } - - @Override - public final Long getValueAsLong(int index, String fieldName) { - return get(index).getValueAsLong(fieldName); - } - - @Override - public final Long getValueAsLong(int index, String fieldName, Long defaultValue) { - return get(index).getValueAsLong(fieldName, defaultValue); - } - - @Override - public final BigInteger getValueAsBigInteger(int index, String fieldName) { - return get(index).getValueAsBigInteger(fieldName); - } - - @Override - public final BigInteger getValueAsBigInteger(int index, String fieldName, BigInteger defaultValue) { - return get(index).getValueAsBigInteger(fieldName, defaultValue); - } - - @Override - public final Float getValueAsFloat(int index, String fieldName) { - return get(index).getValueAsFloat(fieldName); - } - - @Override - public final Float getValueAsFloat(int index, String fieldName, Float defaultValue) { - return get(index).getValueAsFloat(fieldName, defaultValue); - } - - @Override - public final Double getValueAsDouble(int index, String fieldName) { - return get(index).getValueAsDouble(fieldName); - } - - @Override - public final Double getValueAsDouble(int index, String fieldName, Double defaultValue) { - return get(index).getValueAsDouble(fieldName, defaultValue); - } - - @Override - public final BigDecimal getValueAsBigDecimal(int index, String fieldName) { - return get(index).getValueAsBigDecimal(fieldName); - } - - @Override - public final BigDecimal getValueAsBigDecimal(int index, String fieldName, BigDecimal defaultValue) { - return get(index).getValueAsBigDecimal(fieldName, defaultValue); - } - - @Override - public final Boolean getValueAsBoolean(int index, String fieldName) { - return get(index).getValueAsBoolean(fieldName); - } - - @Override - public final Boolean getValueAsBoolean(int index, String fieldName, Boolean defaultValue) { - return get(index).getValueAsBoolean(fieldName, defaultValue); - } - - @Override - public final Timestamp getValueAsTimestamp(int index, String fieldName) { - return get(index).getValueAsTimestamp(fieldName); - } - - @Override - public final Timestamp getValueAsTimestamp(int index, String fieldName, Timestamp defaultValue) { - return get(index).getValueAsTimestamp(fieldName, defaultValue); - } - - @Override - public final Date getValueAsDate(int index, String fieldName) { - return get(index).getValueAsDate(fieldName); - } - - @Override - public final Date getValueAsDate(int index, String fieldName, Date defaultValue) { - return get(index).getValueAsDate(fieldName, defaultValue); - } - - @Override - public final Time getValueAsTime(int index, String fieldName) { - return get(index).getValueAsTime(fieldName); - } - - @Override - public final Time getValueAsTime(int index, String fieldName, Time defaultValue) { - return get(index).getValueAsTime(fieldName, defaultValue); - } - @SuppressWarnings("unchecked") @Override public final List getValues(Field field) { @@ -666,258 +255,6 @@ class ResultImpl implements Result, AttachableInternal { return Convert.convert(getValues(fieldName), converter); } - @Override - public final List getValuesAsBigDecimal(Field field) { - List result = new ArrayList(size()); - - for (R record : this) { - result.add(record.getValueAsBigDecimal(field)); - } - - return result; - } - - @Override - public final List getValuesAsBigDecimal(int fieldIndex) { - return getValuesAsBigDecimal(getField(fieldIndex)); - } - - @Override - public final List getValuesAsBigInteger(Field field) { - List result = new ArrayList(size()); - - for (R record : this) { - result.add(record.getValueAsBigInteger(field)); - } - - return result; - } - - @Override - public final List getValuesAsBigInteger(int fieldIndex) { - return getValuesAsBigInteger(getField(fieldIndex)); - } - - @Override - public final List getValuesAsByte(Field field) { - List result = new ArrayList(size()); - - for (R record : this) { - result.add(record.getValueAsByte(field)); - } - - return result; - } - - @Override - public final List getValuesAsByte(int fieldIndex) { - return getValuesAsByte(getField(fieldIndex)); - } - - @Override - public final List getValuesAsDate(Field field) { - List result = new ArrayList(size()); - - for (R record : this) { - result.add(record.getValueAsDate(field)); - } - - return result; - } - - @Override - public final List getValuesAsDate(int fieldIndex) { - return getValuesAsDate(getField(fieldIndex)); - } - - @Override - public final List getValuesAsDouble(Field field) { - List result = new ArrayList(size()); - - for (R record : this) { - result.add(record.getValueAsDouble(field)); - } - - return result; - } - - @Override - public final List getValuesAsDouble(int fieldIndex) { - return getValuesAsDouble(getField(fieldIndex)); - } - - @Override - public final List getValuesAsFloat(Field field) { - List result = new ArrayList(size()); - - for (R record : this) { - result.add(record.getValueAsFloat(field)); - } - - return result; - } - - @Override - public final List getValuesAsFloat(int fieldIndex) { - return getValuesAsFloat(getField(fieldIndex)); - } - - @Override - public final List getValuesAsInteger(Field field) { - List result = new ArrayList(size()); - - for (R record : this) { - result.add(record.getValueAsInteger(field)); - } - - return result; - } - - @Override - public final List getValuesAsInteger(int fieldIndex) { - return getValuesAsInteger(getField(fieldIndex)); - } - - @Override - public final List getValuesAsLong(Field field) { - List result = new ArrayList(size()); - - for (R record : this) { - result.add(record.getValueAsLong(field)); - } - - return result; - } - - @Override - public final List getValuesAsLong(int fieldIndex) { - return getValuesAsLong(getField(fieldIndex)); - } - - @Override - public final List getValuesAsShort(Field field) { - List result = new ArrayList(size()); - - for (R record : this) { - result.add(record.getValueAsShort(field)); - } - - return result; - } - - @Override - public final List getValuesAsShort(int fieldIndex) { - return getValuesAsShort(getField(fieldIndex)); - } - - @Override - public final List getValuesAsString(Field field) { - List result = new ArrayList(size()); - - for (R record : this) { - result.add(record.getValueAsString(field)); - } - - return result; - } - - @Override - public final List getValuesAsString(int fieldIndex) { - return getValuesAsString(getField(fieldIndex)); - } - - @Override - public final List