|
|||||||||
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 StoreE 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 StoreBigDecimal 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 occurredBigDecimal 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 occurredBoolean getValueAsBoolean(int index) throws IllegalArgumentException, DataTypeException
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
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 occurredBoolean getValueAsBoolean(int index, Boolean defaultValue) throws IllegalArgumentException, DataTypeException
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
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 occurredBigInteger 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 occurredBigInteger 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 occurredByte 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 occurredByte 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 occurredDate 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 occurredDate 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 occurredDouble 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 occurredDouble 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 occurredFloat 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 occurredFloat 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 occurredInteger 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 occurredInteger 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 occurredLong 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 occurredLong 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 occurredShort 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 occurredShort 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 occurredString 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 occurredString 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 occurredTime 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 occurredTime 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 occurredTimestamp 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 occurredTimestamp 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 |