Package | Description |
---|---|
org.jooq |
The
org.jooq package contains jOOQ's public API. |
org.jooq.tools |
The
org.jooq.tools package contains jOOQ's public utilities. |
Modifier and Type | Method and Description |
---|---|
ResultQuery<R> |
ResultQuery.bind(int index,
Object value)
Bind a new value to an indexed parameter
[#1886] If the bind value at
index is inlined (
Param.isInline() ) or if this query was created with
StatementType.STATIC_STATEMENT and there is an underlying
PreparedStatement kept open because of
Query.keepStatement(boolean) , the underlying
PreparedStatement will be closed automatically in order for
new bind values to have an effect. |
Query |
Query.bind(int index,
Object value)
Bind a new value to an indexed parameter
[#1886] If the bind value at
index is inlined (
Param.isInline() ) or if this query was created with
StatementType.STATIC_STATEMENT and there is an underlying
PreparedStatement kept open because of
Query.keepStatement(boolean) , the underlying
PreparedStatement will be closed automatically in order for
new bind values to have an effect. |
ResultQuery<R> |
ResultQuery.bind(String param,
Object value)
Bind a new value to a named parameter
[#1886] If the bind value with name
param is inlined (
Param.isInline() ) or if this query was created with
StatementType.STATIC_STATEMENT and there is an underlying
PreparedStatement kept open because of
Query.keepStatement(boolean) , the underlying
PreparedStatement will be closed automatically in order for
new bind values to have an effect. |
Query |
Query.bind(String param,
Object value)
Bind a new value to a named parameter
[#1886] If the bind value with name
param is inlined (
Param.isInline() ) or if this query was created with
StatementType.STATIC_STATEMENT and there is an underlying
PreparedStatement kept open because of
Query.keepStatement(boolean) , the underlying
PreparedStatement will be closed automatically in order for
new bind values to have an effect. |
<T> T |
Record.getValue(Field<?> field,
Class<? extends T> type)
Get a converted value from this Record, providing a field.
|
<T> T |
Record.getValue(Field<?> field,
Class<? extends T> type,
T defaultValue)
Get a converted value from this record, providing a field.
|
<T,U> U |
Record.getValue(Field<T> field,
Converter<? super T,U> converter)
Get a converted value from this Record, providing a field.
|
<T,U> U |
Record.getValue(Field<T> field,
Converter<? super T,U> converter,
U defaultValue)
Get a converted value from this record, providing a field.
|
<T> T |
Record.getValue(int index,
Class<? extends T> type)
Get a converted value from this record, providing a field index.
|
<T> T |
Record.getValue(int index,
Class<? extends T> type,
T defaultValue)
Get a converted value from this record, providing a field index.
|
<U> U |
Record.getValue(int index,
Converter<?,U> converter)
Get a converted value from this record, providing a field index.
|
<U> U |
Record.getValue(int index,
Converter<?,U> converter,
U defaultValue)
Get a converted value from this record, providing a field index.
|
<T> T |
Record.getValue(String fieldName,
Class<? extends T> type)
Get a converted value from this Record, providing a field name.
|
<T> T |
Record.getValue(String fieldName,
Class<? extends T> type,
T defaultValue)
Get a converted value from this record, providing a field name.
|
<U> U |
Record.getValue(String fieldName,
Converter<?,U> converter)
Get a converted value from this Record, providing a field name.
|
<U> U |
Record.getValue(String fieldName,
Converter<?,U> converter,
U defaultValue)
Get a converted value from this record, providing a field name.
|
<T> List<T> |
Result.getValues(int fieldIndex,
Class<? extends T> type)
Convenience method to fetch all values for a given field.
|
<U> List<U> |
Result.getValues(int fieldIndex,
Converter<?,U> converter)
Convenience method to fetch all values for a given field.
|
<T> List<T> |
Result.getValues(String fieldName,
Class<? extends T> type)
Convenience method to fetch all values for a given field.
|
<U> List<U> |
Result.getValues(String fieldName,
Converter<?,U> converter)
Convenience method to fetch all values for a given field.
|
<T> T[] |
Result.intoArray(Field<?> field,
Class<? extends T> type)
Return all values for a field from the result.
|
<T,U> U[] |
Result.intoArray(Field<T> field,
Converter<? super T,U> converter)
Return all values for a field from the result.
|
<T> T[] |
Result.intoArray(int fieldIndex,
Class<? extends T> type)
Return all values for a field index from the result.
|
<U> U[] |
Result.intoArray(int fieldIndex,
Converter<?,U> converter)
Return all values for a field index from the result.
|
<T> T[] |
Result.intoArray(String fieldName,
Class<? extends T> type)
Return all values for a field name from the result.
|
<U> U[] |
Result.intoArray(String fieldName,
Converter<?,U> converter)
Return all values for a field name from the result.
|
void |
Param.setConverted(Object value)
|
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
Convert.convert(Collection<?> collection,
Class<? extends T> type)
Convert a collection of objects to a list of
T , using
Convert.convert(Object, Class) |
static <U> List<U> |
Convert.convert(Collection<?> collection,
Converter<?,U> converter)
Convert a collection of objects to a list of
T , using
Convert.convert(Object, Converter) |
static <T> T |
Convert.convert(Object from,
Class<? extends T> toClass)
Convert an object to a type.
|
static <U> U |
Convert.convert(Object from,
Converter<?,U> converter)
Convert an object to a type.
|
static Object[] |
Convert.convertArray(Object[] from,
Class<?> toClass)
Convert an array into another one by these rules
If
toClass is not an array class, then make it an array
class first
If toClass is an array class, then create an instance
from it, and convert all elements in the from array one by
one, using Convert.convert(Object, Class)
|
static <U> U[] |
Convert.convertArray(Object[] from,
Converter<?,U> converter)
Convert an array into another one using a converter
This uses
Convert.convertArray(Object[], Class) to convert the array to
an array of Converter.fromType() first, before converting that
array again to Converter.toType() |
Copyright © 2013. All Rights Reserved.