|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
R - The record type contained in this resultpublic interface Result<R extends Record>
A wrapper for database results returned by SelectQuery
ResultQuery.getResult()| Method Summary | ||
|---|---|---|
Document |
exportXML()
Deprecated. - 2.0.5 - Use intoXML() instead |
|
String |
format()
Get a simple formatted representation of this result. |
|
String |
format(int maxRecords)
Get a simple formatted representation of this result. |
|
String |
formatCSV()
Get a simple formatted representation of this result as CSV. |
|
String |
formatCSV(char delimiter)
Get a simple formatted representation of this result as CSV. |
|
String |
formatHTML()
Get a simple formatted representation of this result as HTML. |
|
String |
formatJSON()
Get a simple formatted representation of this result as a JSON array of array. |
|
String |
formatXML()
Get this result formatted as XML |
|
|
getValue(int index,
Field<T> field)
Convenience method to fetch a value at a given position in the result. |
|
|
getValue(int index,
Field<T> field,
T defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Object |
getValue(int index,
int fieldIndex)
Convenience method to fetch a value at a given position in the result. |
|
Object |
getValue(int index,
int fieldIndex,
Object defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Object |
getValue(int index,
String fieldName)
Convenience method to fetch a value at a given position in the result. |
|
Object |
getValue(int index,
String fieldName,
Object defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
|
getValueAsArray(int index,
Field<A> field)
Convenience method to fetch a value at a given position in the result. |
|
|
getValueAsArray(int index,
Field<A> field,
T[] defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
BigDecimal |
getValueAsBigDecimal(int index,
Field<?> field)
Convenience method to fetch a value at a given position in the result. |
|
BigDecimal |
getValueAsBigDecimal(int index,
Field<?> field,
BigDecimal defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
BigDecimal |
getValueAsBigDecimal(int index,
int fieldIndex)
Convenience method to fetch a value at a given position in the result. |
|
BigDecimal |
getValueAsBigDecimal(int index,
int fieldIndex,
BigDecimal defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
BigDecimal |
getValueAsBigDecimal(int index,
String fieldName)
Convenience method to fetch a value at a given position in the result. |
|
BigDecimal |
getValueAsBigDecimal(int index,
String fieldName,
BigDecimal defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
BigInteger |
getValueAsBigInteger(int index,
Field<?> field)
Convenience method to fetch a value at a given position in the result. |
|
BigInteger |
getValueAsBigInteger(int index,
Field<?> field,
BigInteger defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
BigInteger |
getValueAsBigInteger(int index,
int fieldIndex)
Convenience method to fetch a value at a given position in the result. |
|
BigInteger |
getValueAsBigInteger(int index,
int fieldIndex,
BigInteger defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
BigInteger |
getValueAsBigInteger(int index,
String fieldName)
Convenience method to fetch a value at a given position in the result. |
|
BigInteger |
getValueAsBigInteger(int index,
String fieldName,
BigInteger defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Boolean |
getValueAsBoolean(int index,
Field<?> field)
Convenience method to fetch a value at a given position in the result. |
|
Boolean |
getValueAsBoolean(int index,
Field<?> field,
Boolean defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Boolean |
getValueAsBoolean(int index,
int fieldIndex)
Convenience method to fetch a value at a given position in the result. |
|
Boolean |
getValueAsBoolean(int index,
int fieldIndex,
Boolean defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Boolean |
getValueAsBoolean(int index,
String fieldName)
Convenience method to fetch a value at a given position in the result. |
|
Boolean |
getValueAsBoolean(int index,
String fieldName,
Boolean defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Byte |
getValueAsByte(int index,
Field<?> field)
Convenience method to fetch a value at a given position in the result. |
|
Byte |
getValueAsByte(int index,
Field<?> field,
Byte defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Byte |
getValueAsByte(int index,
int fieldIndex)
Convenience method to fetch a value at a given position in the result. |
|
Byte |
getValueAsByte(int index,
int fieldIndex,
Byte defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Byte |
getValueAsByte(int index,
String fieldName)
Convenience method to fetch a value at a given position in the result. |
|
Byte |
getValueAsByte(int index,
String fieldName,
Byte defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Date |
getValueAsDate(int index,
Field<?> field)
Convenience method to fetch a value at a given position in the result. |
|
Date |
getValueAsDate(int index,
Field<?> field,
Date defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Date |
getValueAsDate(int index,
int fieldIndex)
Convenience method to fetch a value at a given position in the result. |
|
Date |
getValueAsDate(int index,
int fieldIndex,
Date defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Date |
getValueAsDate(int index,
String fieldName)
Convenience method to fetch a value at a given position in the result. |
|
Date |
getValueAsDate(int index,
String fieldName,
Date defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Double |
getValueAsDouble(int index,
Field<?> field)
Convenience method to fetch a value at a given position in the result. |
|
Double |
getValueAsDouble(int index,
Field<?> field,
Double defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Double |
getValueAsDouble(int index,
int fieldIndex)
Convenience method to fetch a value at a given position in the result. |
|
Double |
getValueAsDouble(int index,
int fieldIndex,
Double defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Double |
getValueAsDouble(int index,
String fieldName)
Convenience method to fetch a value at a given position in the result. |
|
Double |
getValueAsDouble(int index,
String fieldName,
Double defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Float |
getValueAsFloat(int index,
Field<?> field)
Convenience method to fetch a value at a given position in the result. |
|
Float |
getValueAsFloat(int index,
Field<?> field,
Float defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Float |
getValueAsFloat(int index,
int fieldIndex)
Convenience method to fetch a value at a given position in the result. |
|
Float |
getValueAsFloat(int index,
int fieldIndex,
Float defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Float |
getValueAsFloat(int index,
String fieldName)
Convenience method to fetch a value at a given position in the result. |
|
Float |
getValueAsFloat(int index,
String fieldName,
Float defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Integer |
getValueAsInteger(int index,
Field<?> field)
Convenience method to fetch a value at a given position in the result. |
|
Integer |
getValueAsInteger(int index,
Field<?> field,
Integer defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Integer |
getValueAsInteger(int index,
int fieldIndex)
Convenience method to fetch a value at a given position in the result. |
|
Integer |
getValueAsInteger(int index,
int fieldIndex,
Integer defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Integer |
getValueAsInteger(int index,
String fieldName)
Convenience method to fetch a value at a given position in the result. |
|
Integer |
getValueAsInteger(int index,
String fieldName,
Integer defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Long |
getValueAsLong(int index,
Field<?> field)
Convenience method to fetch a value at a given position in the result. |
|
Long |
getValueAsLong(int index,
Field<?> field,
Long defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Long |
getValueAsLong(int index,
int fieldIndex)
Convenience method to fetch a value at a given position in the result. |
|
Long |
getValueAsLong(int index,
int fieldIndex,
Long defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Long |
getValueAsLong(int index,
String fieldName)
Convenience method to fetch a value at a given position in the result. |
|
Long |
getValueAsLong(int index,
String fieldName,
Long defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Short |
getValueAsShort(int index,
Field<?> field)
Convenience method to fetch a value at a given position in the result. |
|
Short |
getValueAsShort(int index,
Field<?> field,
Short defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Short |
getValueAsShort(int index,
int fieldIndex)
Convenience method to fetch a value at a given position in the result. |
|
Short |
getValueAsShort(int index,
int fieldIndex,
Short defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Short |
getValueAsShort(int index,
String fieldName)
Convenience method to fetch a value at a given position in the result. |
|
Short |
getValueAsShort(int index,
String fieldName,
Short defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
String |
getValueAsString(int index,
Field<?> field)
Convenience method to fetch a value at a given position in the result. |
|
String |
getValueAsString(int index,
Field<?> field,
String defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
String |
getValueAsString(int index,
int fieldIndex)
Convenience method to fetch a value at a given position in the result. |
|
String |
getValueAsString(int index,
int fieldIndex,
String defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
String |
getValueAsString(int index,
String fieldName)
Convenience method to fetch a value at a given position in the result. |
|
String |
getValueAsString(int index,
String fieldName,
String defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Time |
getValueAsTime(int index,
Field<?> field)
Convenience method to fetch a value at a given position in the result. |
|
Time |
getValueAsTime(int index,
Field<?> field,
Time defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Time |
getValueAsTime(int index,
int fieldIndex)
Convenience method to fetch a value at a given position in the result. |
|
Time |
getValueAsTime(int index,
int fieldIndex,
Time defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Time |
getValueAsTime(int index,
String fieldName)
Convenience method to fetch a value at a given position in the result. |
|
Time |
getValueAsTime(int index,
String fieldName,
Time defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Timestamp |
getValueAsTimestamp(int index,
Field<?> field)
Convenience method to fetch a value at a given position in the result. |
|
Timestamp |
getValueAsTimestamp(int index,
Field<?> field,
Timestamp defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Timestamp |
getValueAsTimestamp(int index,
int fieldIndex)
Convenience method to fetch a value at a given position in the result. |
|
Timestamp |
getValueAsTimestamp(int index,
int fieldIndex,
Timestamp defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
Timestamp |
getValueAsTimestamp(int index,
String fieldName)
Convenience method to fetch a value at a given position in the result. |
|
Timestamp |
getValueAsTimestamp(int index,
String fieldName,
Timestamp defaultValue)
Convenience method to fetch a value at a given position in the result. |
|
|
getValues(Field<?> field,
Class<? extends T> type)
Convenience method to fetch all values for a given field. |
|
|
getValues(Field<T> field)
Convenience method to fetch all values for a given field. |
|
|
getValues(Field<T> field,
Converter<? super T,U> converter)
Convenience method to fetch all values for a given field. |
|
List<?> |
getValues(int fieldIndex)
Convenience method to fetch all values for a given field. |
|
|
getValues(int fieldIndex,
Class<? extends T> type)
Convenience method to fetch all values for a given field. |
|
|
getValues(int fieldIndex,
Converter<?,U> converter)
Convenience method to fetch all values for a given field. |
|
List<?> |
getValues(String fieldName)
Convenience method to fetch all values for a given field. |
|
|
getValues(String fieldName,
Class<? extends T> type)
Convenience method to fetch all values for a given field. |
|
|
getValues(String fieldName,
Converter<?,U> converter)
Convenience method to fetch all values for a given field. |
|
List<BigDecimal> |
getValuesAsBigDecimal(Field<?> field)
Convenience method to fetch all values for a given field. |
|
List<BigDecimal> |
getValuesAsBigDecimal(int fieldIndex)
Convenience method to fetch all values for a given field. |
|
List<BigDecimal> |
getValuesAsBigDecimal(String fieldName)
Convenience method to fetch all values for a given field. |
|
List<BigInteger> |
getValuesAsBigInteger(Field<?> field)
Convenience method to fetch all values for a given field. |
|
List<BigInteger> |
getValuesAsBigInteger(int fieldIndex)
Convenience method to fetch all values for a given field. |
|
List<BigInteger> |
getValuesAsBigInteger(String fieldName)
Convenience method to fetch all values for a given field. |
|
List<Byte> |
getValuesAsByte(Field<?> field)
Convenience method to fetch all values for a given field. |
|
List<Byte> |
getValuesAsByte(int fieldIndex)
Convenience method to fetch all values for a given field. |
|
List<Byte> |
getValuesAsByte(String fieldName)
Convenience method to fetch all values for a given field. |
|
List<Date> |
getValuesAsDate(Field<?> field)
Convenience method to fetch all values for a given field. |
|
List<Date> |
getValuesAsDate(int fieldIndex)
Convenience method to fetch all values for a given field. |
|
List<Date> |
getValuesAsDate(String fieldName)
Convenience method to fetch all values for a given field. |
|
List<Double> |
getValuesAsDouble(Field<?> field)
Convenience method to fetch all values for a given field. |
|
List<Double> |
getValuesAsDouble(int fieldIndex)
Convenience method to fetch all values for a given field. |
|
List<Double> |
getValuesAsDouble(String fieldName)
Convenience method to fetch all values for a given field. |
|
List<Float> |
getValuesAsFloat(Field<?> field)
Convenience method to fetch all values for a given field. |
|
List<Float> |
getValuesAsFloat(int fieldIndex)
Convenience method to fetch all values for a given field. |
|
List<Float> |
getValuesAsFloat(String fieldName)
Convenience method to fetch all values for a given field. |
|
List<Integer> |
getValuesAsInteger(Field<?> field)
Convenience method to fetch all values for a given field. |
|
List<Integer> |
getValuesAsInteger(int fieldIndex)
Convenience method to fetch all values for a given field. |
|
List<Integer> |
getValuesAsInteger(String fieldName)
Convenience method to fetch all values for a given field. |
|
List<Long> |
getValuesAsLong(Field<?> field)
Convenience method to fetch all values for a given field. |
|
List<Long> |
getValuesAsLong(int fieldIndex)
Convenience method to fetch all values for a given field. |
|
List<Long> |
getValuesAsLong(String fieldName)
Convenience method to fetch all values for a given field. |
|
List<Short> |
getValuesAsShort(Field<?> field)
Convenience method to fetch all values for a given field. |
|
List<Short> |
getValuesAsShort(int fieldIndex)
Convenience method to fetch all values for a given field. |
|
List<Short> |
getValuesAsShort(String fieldName)
Convenience method to fetch all values for a given field. |
|
List<String> |
getValuesAsString(Field<?> field)
Convenience method to fetch all values for a given field. |
|
List<String> |
getValuesAsString(int fieldIndex)
Convenience method to fetch all values for a given field. |
|
List<String> |
getValuesAsString(String fieldName)
Convenience method to fetch all values for a given field. |
|
List<Time> |
getValuesAsTime(Field<?> field)
Convenience method to fetch all values for a given field. |
|
List<Time> |
getValuesAsTime(int fieldIndex)
Convenience method to fetch all values for a given field. |
|
List<Time> |
getValuesAsTime(String fieldName)
Convenience method to fetch all values for a given field. |
|
List<Timestamp> |
getValuesAsTimestamp(Field<?> field)
Convenience method to fetch all values for a given field. |
|
List<Timestamp> |
getValuesAsTimestamp(int fieldIndex)
Convenience method to fetch all values for a given field. |
|
List<Timestamp> |
getValuesAsTimestamp(String fieldName)
Convenience method to fetch all values for a given field. |
|
|
into(Class<? extends E> type)
Map resulting records onto a custom type. |
|
|
into(H handler)
Map results into a custom handler callback |
|
|
into(Table<Z> table)
Map resulting records onto a custom record. |
|
Object[][] |
intoArray()
Convert this result into an array of arrays The resulting array has the same number of first-dimension elements as this result has records. |
|
Document |
intoXML()
Get this result as XML |
|
boolean |
isEmpty()
Whether there are any records contained in this Result |
|
boolean |
isNotEmpty()
Whether there are any records contained in this Result |
|
| Methods inherited from interface org.jooq.FieldProvider |
|---|
getField, getField, getField, getFields, getIndex |
| Methods inherited from interface java.util.List |
|---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Methods inherited from interface org.jooq.Attachable |
|---|
attach |
| Methods inherited from interface org.jooq.Adapter |
|---|
internalAPI |
| Method Detail |
|---|
<T> T getValue(int index,
Field<T> field)
throws IndexOutOfBoundsException
T - The value's field's generic type parameterindex - The record's indexfield - The value's field
IndexOutOfBoundsException
<T> T getValue(int index,
Field<T> field,
T defaultValue)
throws IndexOutOfBoundsException
T - The value's field's generic type parameterindex - The record's indexfield - The value's fielddefaultValue - The default value if the value was null
IndexOutOfBoundsException
Object getValue(int index,
int fieldIndex)
throws IndexOutOfBoundsException
index - The record's indexfieldIndex - The value's field index
IndexOutOfBoundsException
Object getValue(int index,
int fieldIndex,
Object defaultValue)
throws IndexOutOfBoundsException
index - The record's indexfieldIndex - The value's field indexdefaultValue - The default value if the value was null
IndexOutOfBoundsException
Object getValue(int index,
String fieldName)
throws IndexOutOfBoundsException
index - The record's indexfieldName - The value's field name
IndexOutOfBoundsException
Object getValue(int index,
String fieldName,
Object defaultValue)
throws IndexOutOfBoundsException
index - The record's indexfieldName - The value's field namedefaultValue - The default value if the value was null
IndexOutOfBoundsException
<A extends ArrayRecord<T>,T> T[] getValueAsArray(int index,
Field<A> field)
throws IndexOutOfBoundsException
A - The value's field's generic type parameterT - The ArrayRecord type parameterindex - The record's indexfield - The value's field
IndexOutOfBoundsException
<A extends ArrayRecord<T>,T> T[] getValueAsArray(int index,
Field<A> field,
T[] defaultValue)
throws IndexOutOfBoundsException
A - The value's field's generic type parameterT - The ArrayRecord type parameterindex - The record's indexfield - The value's fielddefaultValue - The default value if the value was null
IndexOutOfBoundsException
String getValueAsString(int index,
Field<?> field)
throws IllegalArgumentException
index - The record's indexfield - The field
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
String getValueAsString(int index,
Field<?> field,
String defaultValue)
throws IllegalArgumentException
index - The record's indexfield - The fielddefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
String getValueAsString(int index,
int fieldIndex)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's index
IllegalArgumentException - If the argument index is not contained
in the record
String getValueAsString(int index,
int fieldIndex,
String defaultValue)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the record
String getValueAsString(int index,
String fieldName)
throws IllegalArgumentException
index - The record's indexfieldName - The field's name
IllegalArgumentException - If the argument name is not contained in
the record
String getValueAsString(int index,
String fieldName,
String defaultValue)
throws IllegalArgumentException
index - The record's indexfieldName - The field's namedefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument name is not contained in
the record
Byte getValueAsByte(int index,
Field<?> field)
throws IllegalArgumentException
index - The record's indexfield - The field
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Byte getValueAsByte(int index,
Field<?> field,
Byte defaultValue)
throws IllegalArgumentException
index - The record's indexfield - The fielddefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Byte getValueAsByte(int index,
int fieldIndex)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's index
IllegalArgumentException - If the argument index is not contained
in the record
Byte getValueAsByte(int index,
int fieldIndex,
Byte defaultValue)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the record
Byte getValueAsByte(int index,
String fieldName)
throws IllegalArgumentException
index - The record's indexfieldName - The field's name
IllegalArgumentException - If the argument name is not contained in
the record
Byte getValueAsByte(int index,
String fieldName,
Byte defaultValue)
throws IllegalArgumentException
index - The record's indexfieldName - The field's namedefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument name is not contained in
the record
Short getValueAsShort(int index,
Field<?> field)
throws IllegalArgumentException
index - The record's indexfield - The field
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Short getValueAsShort(int index,
Field<?> field,
Short defaultValue)
throws IllegalArgumentException
index - The record's indexfield - The fielddefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Short getValueAsShort(int index,
int fieldIndex)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's index
IllegalArgumentException - If the argument index is not contained
in the record
Short getValueAsShort(int index,
int fieldIndex,
Short defaultValue)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the record
Short getValueAsShort(int index,
String fieldName)
throws IllegalArgumentException
index - The record's indexfieldName - The field's name
IllegalArgumentException - If the argument name is not contained in
the record
Short getValueAsShort(int index,
String fieldName,
Short defaultValue)
throws IllegalArgumentException
index - The record's indexfieldName - The field's namedefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument name is not contained in
the record
Integer getValueAsInteger(int index,
Field<?> field)
throws IllegalArgumentException
index - The record's indexfield - The field
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Integer getValueAsInteger(int index,
Field<?> field,
Integer defaultValue)
throws IllegalArgumentException
index - The record's indexfield - The fielddefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Integer getValueAsInteger(int index,
int fieldIndex)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's index
IllegalArgumentException - If the argument index is not contained
in the record
Integer getValueAsInteger(int index,
int fieldIndex,
Integer defaultValue)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the record
Integer getValueAsInteger(int index,
String fieldName)
throws IllegalArgumentException
index - The record's indexfieldName - The field's name
IllegalArgumentException - If the argument name is not contained in
the record
Integer getValueAsInteger(int index,
String fieldName,
Integer defaultValue)
throws IllegalArgumentException
index - The record's indexfieldName - The field's namedefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument name is not contained in
the record
Long getValueAsLong(int index,
Field<?> field)
throws IllegalArgumentException
index - The record's indexfield - The field
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Long getValueAsLong(int index,
Field<?> field,
Long defaultValue)
throws IllegalArgumentException
index - The record's indexfield - The fielddefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Long getValueAsLong(int index,
int fieldIndex)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's index
IllegalArgumentException - If the argument index is not contained
in the record
Long getValueAsLong(int index,
int fieldIndex,
Long defaultValue)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the record
Long getValueAsLong(int index,
String fieldName)
throws IllegalArgumentException
index - The record's indexfieldName - The field's name
IllegalArgumentException - If the argument name is not contained in
the record
Long getValueAsLong(int index,
String fieldName,
Long defaultValue)
throws IllegalArgumentException
index - The record's indexfieldName - The field's namedefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument name is not contained in
the record
BigInteger getValueAsBigInteger(int index,
Field<?> field)
throws IllegalArgumentException
index - The record's indexfield - The field
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
BigInteger getValueAsBigInteger(int index,
Field<?> field,
BigInteger defaultValue)
throws IllegalArgumentException
index - The record's indexfield - The fielddefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
BigInteger getValueAsBigInteger(int index,
int fieldIndex)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's index
IllegalArgumentException - If the argument index is not contained
in the record
BigInteger getValueAsBigInteger(int index,
int fieldIndex,
BigInteger defaultValue)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the record
BigInteger getValueAsBigInteger(int index,
String fieldName)
throws IllegalArgumentException
index - The record's indexfieldName - The field's name
IllegalArgumentException - If the argument name is not contained in
the record
BigInteger getValueAsBigInteger(int index,
String fieldName,
BigInteger defaultValue)
throws IllegalArgumentException
index - The record's indexfieldName - The field's namedefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument name is not contained in
the record
Float getValueAsFloat(int index,
Field<?> field)
throws IllegalArgumentException
index - The record's indexfield - The field
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Float getValueAsFloat(int index,
Field<?> field,
Float defaultValue)
throws IllegalArgumentException
index - The record's indexfield - The fielddefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Float getValueAsFloat(int index,
int fieldIndex)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's index
IllegalArgumentException - If the argument index is not contained
in the record
Float getValueAsFloat(int index,
int fieldIndex,
Float defaultValue)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the record
Float getValueAsFloat(int index,
String fieldName)
throws IllegalArgumentException
index - The record's indexfieldName - The field's name
IllegalArgumentException - If the argument name is not contained in
the record
Float getValueAsFloat(int index,
String fieldName,
Float defaultValue)
throws IllegalArgumentException
index - The record's indexfieldName - The field's namedefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument name is not contained in
the record
Double getValueAsDouble(int index,
Field<?> field)
throws IllegalArgumentException
index - The record's indexfield - The field
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Double getValueAsDouble(int index,
Field<?> field,
Double defaultValue)
throws IllegalArgumentException
index - The record's indexfield - The fielddefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Double getValueAsDouble(int index,
int fieldIndex)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's index
IllegalArgumentException - If the argument index is not contained
in the record
Double getValueAsDouble(int index,
int fieldIndex,
Double defaultValue)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the record
Double getValueAsDouble(int index,
String fieldName)
throws IllegalArgumentException
index - The record's indexfieldName - The field's name
IllegalArgumentException - If the argument name is not contained in
the record
Double getValueAsDouble(int index,
String fieldName,
Double defaultValue)
throws IllegalArgumentException
index - The record's indexfieldName - The field's namedefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument name is not contained in
the record
BigDecimal getValueAsBigDecimal(int index,
Field<?> field)
throws IllegalArgumentException
index - The record's indexfield - The field
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
BigDecimal getValueAsBigDecimal(int index,
Field<?> field,
BigDecimal defaultValue)
throws IllegalArgumentException
index - The record's indexfield - The fielddefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
BigDecimal getValueAsBigDecimal(int index,
int fieldIndex)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's index
IllegalArgumentException - If the argument index is not contained
in the record
BigDecimal getValueAsBigDecimal(int index,
int fieldIndex,
BigDecimal defaultValue)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the record
BigDecimal getValueAsBigDecimal(int index,
String fieldName)
throws IllegalArgumentException
index - The record's indexfieldName - The field's name
IllegalArgumentException - If the argument name is not contained in
the record
BigDecimal getValueAsBigDecimal(int index,
String fieldName,
BigDecimal defaultValue)
throws IllegalArgumentException
index - The record's indexfieldName - The field's namedefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument name is not contained in
the record
Boolean getValueAsBoolean(int index,
Field<?> field)
throws IllegalArgumentException
boolean values for true are any of these case-insensitive
strings:
1yyestrueonenabled
boolean values for false are any of these case-insensitive
strings:
0nnofalseoffdisabled
All other values evaluate to null
index - The record's indexfield - The field
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Boolean getValueAsBoolean(int index,
Field<?> field,
Boolean defaultValue)
throws IllegalArgumentException
boolean values for true are any of these case-insensitive
strings:
1yyestrueonenabled
boolean values for false are any of these case-insensitive
strings:
0nnofalseoffdisabled
All other values evaluate to null
index - The record's indexfield - The fielddefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Boolean getValueAsBoolean(int index,
int fieldIndex)
throws IllegalArgumentException
boolean values for true are any of these case-insensitive
strings:
1yyestrueonenabled
boolean values for false are any of these case-insensitive
strings:
0nnofalseoffdisabled
All other values evaluate to null
index - The record's indexfieldIndex - The field's index
IllegalArgumentException - If the argument index is not contained
in the record
Boolean getValueAsBoolean(int index,
int fieldIndex,
Boolean defaultValue)
throws IllegalArgumentException
boolean values for true are any of these case-insensitive
strings:
1yyestrueonenabled
boolean values for false are any of these case-insensitive
strings:
0nnofalseoffdisabled
All other values evaluate to null
index - The record's indexfieldIndex - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the record
Boolean getValueAsBoolean(int index,
String fieldName)
throws IllegalArgumentException
boolean values for true are any of these case-insensitive
strings:
1yyestrueonenabled
boolean values for false are any of these case-insensitive
strings:
0nnofalseoffdisabled
All other values evaluate to null
index - The record's indexfieldName - The field's name
IllegalArgumentException - If the argument name is not contained in
the record
Boolean getValueAsBoolean(int index,
String fieldName,
Boolean defaultValue)
throws IllegalArgumentException
boolean values for true are any of these case-insensitive
strings:
1yyestrueonenabled
boolean values for false are any of these case-insensitive
strings:
0nnofalseoffdisabled
All other values evaluate to null
index - The record's indexfieldName - The field's namedefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument name is not contained in
the record
Timestamp getValueAsTimestamp(int index,
Field<?> field)
throws IllegalArgumentException
index - The record's indexfield - The field
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Timestamp getValueAsTimestamp(int index,
Field<?> field,
Timestamp defaultValue)
throws IllegalArgumentException
index - The record's indexfield - The fielddefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Timestamp getValueAsTimestamp(int index,
int fieldIndex)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's index
IllegalArgumentException - If the argument index is not contained
in the record
Timestamp getValueAsTimestamp(int index,
int fieldIndex,
Timestamp defaultValue)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the record
Timestamp getValueAsTimestamp(int index,
String fieldName)
throws IllegalArgumentException
index - The record's indexfieldName - The field's name
IllegalArgumentException - If the argument name is not contained in
the record
Timestamp getValueAsTimestamp(int index,
String fieldName,
Timestamp defaultValue)
throws IllegalArgumentException
index - The record's indexfieldName - The field's namedefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument name is not contained in
the record
Date getValueAsDate(int index,
Field<?> field)
throws IllegalArgumentException
index - The record's indexfield - The field
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Date getValueAsDate(int index,
Field<?> field,
Date defaultValue)
throws IllegalArgumentException
index - The record's indexfield - The fielddefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Date getValueAsDate(int index,
int fieldIndex)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's index
IllegalArgumentException - If the argument index is not contained
in the record
Date getValueAsDate(int index,
int fieldIndex,
Date defaultValue)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the record
Date getValueAsDate(int index,
String fieldName)
throws IllegalArgumentException
index - The record's indexfieldName - The field's name
IllegalArgumentException - If the argument name is not contained in
the record
Date getValueAsDate(int index,
String fieldName,
Date defaultValue)
throws IllegalArgumentException
index - The record's indexfieldName - The field's namedefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument name is not contained in
the record
Time getValueAsTime(int index,
Field<?> field)
throws IllegalArgumentException
index - The record's indexfield - The field
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Time getValueAsTime(int index,
Field<?> field,
Time defaultValue)
throws IllegalArgumentException
index - The record's indexfield - The fielddefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument field is not contained
in FieldProvider.getFields()
Time getValueAsTime(int index,
int fieldIndex)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's index
IllegalArgumentException - If the argument index is not contained
in the record
Time getValueAsTime(int index,
int fieldIndex,
Time defaultValue)
throws IllegalArgumentException
index - The record's indexfieldIndex - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the record
Time getValueAsTime(int index,
String fieldName)
throws IllegalArgumentException
index - The record's indexfieldName - The field's name
IllegalArgumentException - If the argument name is not contained in
the record
Time getValueAsTime(int index,
String fieldName,
Time defaultValue)
throws IllegalArgumentException
index - The record's indexfieldName - The field's namedefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument name is not contained in
the record<T> List<T> getValues(Field<T> field)
T - The values' field's generic type parameterfield - The values' field
<T> List<T> getValues(Field<?> field,
Class<? extends T> type)
field - The values' fieldtype - The type used for type conversion
Record.getValue(Field, Class),
Convert.convert(Object, Class)
<T,U> List<U> getValues(Field<T> field,
Converter<? super T,U> converter)
field - The values' fieldconverter - The data type converter used for type conversion
Record.getValue(Field, Converter),
Convert.convert(Object, Converter)List<?> getValues(int fieldIndex)
fieldIndex - The values' field index
<T> List<T> getValues(int fieldIndex,
Class<? extends T> type)
fieldIndex - The values' field indextype - The type used for type conversion
Store.getValue(int, Class),
Convert.convert(Object, Class)
<U> List<U> getValues(int fieldIndex,
Converter<?,U> converter)
fieldIndex - The values' field indexconverter - The data type converter used for type conversion
Record.getValue(int, Converter),
Convert.convert(Object, Converter)List<?> getValues(String fieldName)
fieldName - The values' field name
<T> List<T> getValues(String fieldName,
Class<? extends T> type)
fieldName - The values' field nametype - The type used for type conversion
Record.getValue(String, Class),
Convert.convert(Object, Class)
<U> List<U> getValues(String fieldName,
Converter<?,U> converter)
fieldName - The values' field nameconverter - The data type converter used for type conversion
Record.getValue(String, Converter),
Convert.convert(Object, Converter)List<BigDecimal> getValuesAsBigDecimal(Field<?> field)
field - The values' field
List<BigDecimal> getValuesAsBigDecimal(int fieldIndex)
fieldIndex - The values' field index
List<BigDecimal> getValuesAsBigDecimal(String fieldName)
fieldName - The values' field name
List<BigInteger> getValuesAsBigInteger(Field<?> field)
field - The values' field
List<BigInteger> getValuesAsBigInteger(int fieldIndex)
fieldIndex - The values' field index
List<BigInteger> getValuesAsBigInteger(String fieldName)
fieldName - The values' field name
List<Byte> getValuesAsByte(Field<?> field)
field - The values' field
List<Byte> getValuesAsByte(int fieldIndex)
fieldIndex - The values' field index
List<Byte> getValuesAsByte(String fieldName)
fieldName - The values' field name
List<Date> getValuesAsDate(Field<?> field)
field - The values' field
List<Date> getValuesAsDate(int fieldIndex)
fieldIndex - The values' field index
List<Date> getValuesAsDate(String fieldName)
fieldName - The values' field name
List<Double> getValuesAsDouble(Field<?> field)
field - The values' field
List<Double> getValuesAsDouble(int fieldIndex)
fieldIndex - The values' field index
List<Double> getValuesAsDouble(String fieldName)
fieldName - The values' field name
List<Float> getValuesAsFloat(Field<?> field)
field - The values' field
List<Float> getValuesAsFloat(int fieldIndex)
fieldIndex - The values' field index
List<Float> getValuesAsFloat(String fieldName)
fieldName - The values' field name
List<Integer> getValuesAsInteger(Field<?> field)
field - The values' field
List<Integer> getValuesAsInteger(int fieldIndex)
fieldIndex - The values' field index
List<Integer> getValuesAsInteger(String fieldName)
fieldName - The values' field name
List<Long> getValuesAsLong(Field<?> field)
field - The values' field
List<Long> getValuesAsLong(int fieldIndex)
fieldIndex - The values' field index
List<Long> getValuesAsLong(String fieldName)
fieldName - The values' field name
List<Short> getValuesAsShort(Field<?> field)
field - The values' field
List<Short> getValuesAsShort(int fieldIndex)
fieldIndex - The values' field index
List<Short> getValuesAsShort(String fieldName)
fieldName - The values' field name
List<String> getValuesAsString(Field<?> field)
field - The values' field
List<String> getValuesAsString(int fieldIndex)
fieldIndex - The values' field index
List<String> getValuesAsString(String fieldName)
fieldName - The values' field name
List<Time> getValuesAsTime(Field<?> field)
field - The values' field
List<Time> getValuesAsTime(int fieldIndex)
fieldIndex - The values' field index
List<Time> getValuesAsTime(String fieldName)
fieldName - The values' field name
List<Timestamp> getValuesAsTimestamp(Field<?> field)
field - The values' field
List<Timestamp> getValuesAsTimestamp(int fieldIndex)
fieldIndex - The values' field index
List<Timestamp> getValuesAsTimestamp(String fieldName)
fieldName - The values' field name
boolean isEmpty()
Result
isEmpty in interface Collection<R extends Record>isEmpty in interface List<R extends Record>boolean isNotEmpty()
Result
String format()
This is the same as calling format(int) with
maxRows = 50
String format(int maxRecords)
maxRecords - The maximum number of records to include in the
formatted result
String formatHTML()
The HTML code is formatted as follows:
<table>
<thead>
<tr>
<th>field-1</th>
<th>field-2</th>
...
<th>field-n</th>
</tr>
</thead>
<tbody>
<tr>
<th>value-1-1</th>
<th>value-1-2</th>
...
<th>value-1-n</th>
</tr>
<tr>
<th>value-2-1</th>
<th>value-2-2</th>
...
<th>value-2-n</th>
</tr>
...
</tbody>
</table>
String formatCSV()
This is the same as calling formatCSV(',')
String formatCSV(char delimiter)
delimiter - The delimiter to use between records
String formatJSON()
{"fields":["field-1","field-2",...,"field-n"],
"records":[[value-1-1,value-1-2,...,value-1-n],
[value-2-1,value-2-2,...,value-2-n]]}
String formatXML()
exportXML(),
http://www.jooq.org/xsd/jooq-export-1.6.2.xsd@Deprecated Document exportXML()
intoXML() instead
Document intoXML()
formatXML(),
http://www.jooq.org/xsd/jooq-export-1.6.2.xsd
Object[][] intoArray()
throws MappingException
The resulting array has the same number of first-dimension elements as this result has records. It has the same number of second-dimension elements as this result's records have fields. The resulting array contains data as such:
// For arbitrary values of i, j
result.getValue(i, j) == result.intoArray()[i][j]
This is the same as calling into(Object[].class)
MappingException - wrapping any conversion exception that might
have occurred while mapping recordsRecord.intoArray()
<E> List<E> into(Class<? extends E> type)
throws MappingException
This is the same as calling record.into(type) on every
record contained in this Result. See
Record.into(Class) for more details
E - The generic entity type.type - The entity type.
MappingException - wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsRecord.into(Class)
<Z extends Record> Result<Z> into(Table<Z> table)
throws MappingException
This is the same as calling record.into(table) on every
record contained in this Result. See
Record.into(Table) for more details
Z - The generic table record type.table - The table type.
MappingException - wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsRecord.into(Table)<H extends RecordHandler<R>> H into(H handler)
handler - The handler callback
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||