|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
E - The store's element typepublic interface Store<E>
A common base type for Record and ArrayRecord providing
common, index-based functionality for storage objects
Store implements Attachable, as some stores need a
reference to an open JDBC connection to perform some actions on their
elements.
| Method Summary | ||
|---|---|---|
E |
getValue(int index)
Get a value from this Store, providing a field index. |
|
|
getValue(int index,
Class<? extends T> type)
Get a converted value from this Store, providing a field index. |
|
|
getValue(int index,
Class<? extends T> type,
T defaultValue)
Get a converted value from this Store, providing a field index. |
|
E |
getValue(int index,
E defaultValue)
Get a value from this Store, providing a field index. |
|
BigDecimal |
getValueAsBigDecimal(int index)
Get a value from this Store, providing a field index. |
|
BigDecimal |
getValueAsBigDecimal(int index,
BigDecimal defaultValue)
Get a value from this Store, providing a field index. |
|
BigInteger |
getValueAsBigInteger(int index)
Get a value from this Store, providing a field index. |
|
BigInteger |
getValueAsBigInteger(int index,
BigInteger defaultValue)
Get a value from this Store, providing a field index. |
|
Boolean |
getValueAsBoolean(int index)
Get a value from this Store, providing a field index. |
|
Boolean |
getValueAsBoolean(int index,
Boolean defaultValue)
Get a value from this Store, providing a field index. |
|
Byte |
getValueAsByte(int index)
Get a value from this Store, providing a field index. |
|
Byte |
getValueAsByte(int index,
Byte defaultValue)
Get a value from this Store, providing a field index. |
|
Date |
getValueAsDate(int index)
Get a value from this Store, providing a field index. |
|
Date |
getValueAsDate(int index,
Date defaultValue)
Get a value from this Store, providing a field index. |
|
Double |
getValueAsDouble(int index)
Get a value from this Store, providing a field index. |
|
Double |
getValueAsDouble(int index,
Double defaultValue)
Get a value from this Store, providing a field index. |
|
Float |
getValueAsFloat(int index)
Get a value from this Store, providing a field index. |
|
Float |
getValueAsFloat(int index,
Float defaultValue)
Get a value from this Store, providing a field index. |
|
Integer |
getValueAsInteger(int index)
Get a value from this Store, providing a field index. |
|
Integer |
getValueAsInteger(int index,
Integer defaultValue)
Get a value from this Store, providing a field index. |
|
Long |
getValueAsLong(int index)
Get a value from this Store, providing a field index. |
|
Long |
getValueAsLong(int index,
Long defaultValue)
Get a value from this Store, providing a field index. |
|
Short |
getValueAsShort(int index)
Get a value from this Store, providing a field index. |
|
Short |
getValueAsShort(int index,
Short defaultValue)
Get a value from this Store, providing a field index. |
|
String |
getValueAsString(int index)
Get a value from this Store, providing a field index. |
|
String |
getValueAsString(int index,
String defaultValue)
Get a value from this Store, providing a field index. |
|
Time |
getValueAsTime(int index)
Get a value from this Store, providing a field index. |
|
Time |
getValueAsTime(int index,
Time defaultValue)
Get a value from this Store, providing a field index. |
|
Timestamp |
getValueAsTimestamp(int index)
Get a value from this Store, providing a field index. |
|
Timestamp |
getValueAsTimestamp(int index,
Timestamp defaultValue)
Get a value from this Store, providing a field index. |
|
int |
size()
Get the size of this Store. |
|
| Methods inherited from interface org.jooq.Attachable |
|---|
attach |
| Methods inherited from interface org.jooq.Adapter |
|---|
internalAPI |
| Method Detail |
|---|
int size()
Store.
If this is an ArrayRecord, then the array size is returned. If
this is a Record, then the number of fields is returned.
It can be said that getValue(size() - 1) will return a
value, if size > 0
E getValue(int index)
throws IllegalArgumentException
index - The field's index
IllegalArgumentException - If the argument index is not contained
in the Store
E getValue(int index,
E defaultValue)
throws IllegalArgumentException
index - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the Store
BigDecimal getValueAsBigDecimal(int index)
throws IllegalArgumentException,
DataTypeException
index - The field's index
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
BigDecimal getValueAsBigDecimal(int index,
BigDecimal defaultValue)
throws IllegalArgumentException,
DataTypeException
index - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Boolean getValueAsBoolean(int index)
throws IllegalArgumentException,
DataTypeException
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 field's index
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Boolean getValueAsBoolean(int index,
Boolean defaultValue)
throws IllegalArgumentException,
DataTypeException
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 field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
BigInteger getValueAsBigInteger(int index)
throws IllegalArgumentException,
DataTypeException
index - The field's index
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
BigInteger getValueAsBigInteger(int index,
BigInteger defaultValue)
throws IllegalArgumentException,
DataTypeException
index - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Byte getValueAsByte(int index)
throws IllegalArgumentException,
DataTypeException
index - The field's index
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Byte getValueAsByte(int index,
Byte defaultValue)
throws IllegalArgumentException,
DataTypeException
index - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Date getValueAsDate(int index)
throws IllegalArgumentException,
DataTypeException
index - The field's index
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Date getValueAsDate(int index,
Date defaultValue)
throws IllegalArgumentException,
DataTypeException
index - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Double getValueAsDouble(int index)
throws IllegalArgumentException,
DataTypeException
index - The field's index
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Double getValueAsDouble(int index,
Double defaultValue)
throws IllegalArgumentException,
DataTypeException
index - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Float getValueAsFloat(int index)
throws IllegalArgumentException,
DataTypeException
index - The field's index
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Float getValueAsFloat(int index,
Float defaultValue)
throws IllegalArgumentException,
DataTypeException
index - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Integer getValueAsInteger(int index)
throws IllegalArgumentException,
DataTypeException
index - The field's index
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Integer getValueAsInteger(int index,
Integer defaultValue)
throws IllegalArgumentException,
DataTypeException
index - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Long getValueAsLong(int index)
throws IllegalArgumentException,
DataTypeException
index - The field's index
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Long getValueAsLong(int index,
Long defaultValue)
throws IllegalArgumentException,
DataTypeException
index - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Short getValueAsShort(int index)
throws IllegalArgumentException,
DataTypeException
index - The field's index
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Short getValueAsShort(int index,
Short defaultValue)
throws IllegalArgumentException,
DataTypeException
index - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
String getValueAsString(int index)
throws IllegalArgumentException,
DataTypeException
index - The field's index
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
String getValueAsString(int index,
String defaultValue)
throws IllegalArgumentException,
DataTypeException
index - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Time getValueAsTime(int index)
throws IllegalArgumentException,
DataTypeException
index - The field's index
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Time getValueAsTime(int index,
Time defaultValue)
throws IllegalArgumentException,
DataTypeException
index - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Timestamp getValueAsTimestamp(int index)
throws IllegalArgumentException,
DataTypeException
index - The field's index
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
Timestamp getValueAsTimestamp(int index,
Timestamp defaultValue)
throws IllegalArgumentException,
DataTypeException
index - The field's indexdefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurred
<T> T getValue(int index,
Class<? extends T> type)
throws IllegalArgumentException,
DataTypeException
T - The conversion type parameterindex - The field's indextype - The conversion type
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurredConvert.convert(Object, Class)
<T> T getValue(int index,
Class<? extends T> type,
T defaultValue)
throws IllegalArgumentException,
DataTypeException
T - The conversion type parameterindex - The field's indextype - The conversion typedefaultValue - The default value instead of null
null
IllegalArgumentException - If the argument index is not contained
in the Store
DataTypeException - wrapping data type conversion exception that
might have occurredConvert.convert(Object, Class)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||