E - The store's element typeRecord and ArrayRecord and will be removed in the
future. Do not reference it directly.@Deprecated public interface Store<E> extends Attachable
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.
| Modifier and Type | Method and Description |
|---|---|
E |
getValue(int index)
Deprecated.
Get a value from this Store, providing a field index.
|
<T> T |
getValue(int index,
Class<? extends T> type)
Deprecated.
Get a converted value from this Store, providing a field index.
|
<T> T |
getValue(int index,
Class<? extends T> type,
T defaultValue)
Deprecated.
Get a converted value from this Store, providing a field index.
|
E |
getValue(int index,
E defaultValue)
Deprecated.
Get a value from this Store, providing a field index.
|
BigDecimal |
getValueAsBigDecimal(int index)
Deprecated.
Get a value from this Store, providing a field index.
|
BigDecimal |
getValueAsBigDecimal(int index,
BigDecimal defaultValue)
Deprecated.
Get a value from this Store, providing a field index.
|
BigInteger |
getValueAsBigInteger(int index)
Deprecated.
Get a value from this Store, providing a field index.
|
BigInteger |
getValueAsBigInteger(int index,
BigInteger defaultValue)
Deprecated.
Get a value from this Store, providing a field index.
|
Boolean |
getValueAsBoolean(int index)
Deprecated.
Get a value from this Store, providing a field index.
|
Boolean |
getValueAsBoolean(int index,
Boolean defaultValue)
Deprecated.
Get a value from this Store, providing a field index.
|
Byte |
getValueAsByte(int index)
Deprecated.
Get a value from this Store, providing a field index.
|
Byte |
getValueAsByte(int index,
Byte defaultValue)
Deprecated.
Get a value from this Store, providing a field index.
|
Date |
getValueAsDate(int index)
Deprecated.
Get a value from this Store, providing a field index.
|
Date |
getValueAsDate(int index,
Date defaultValue)
Deprecated.
Get a value from this Store, providing a field index.
|
Double |
getValueAsDouble(int index)
Deprecated.
Get a value from this Store, providing a field index.
|
Double |
getValueAsDouble(int index,
Double defaultValue)
Deprecated.
Get a value from this Store, providing a field index.
|
Float |
getValueAsFloat(int index)
Deprecated.
Get a value from this Store, providing a field index.
|
Float |
getValueAsFloat(int index,
Float defaultValue)
Deprecated.
Get a value from this Store, providing a field index.
|
Integer |
getValueAsInteger(int index)
Deprecated.
Get a value from this Store, providing a field index.
|
Integer |
getValueAsInteger(int index,
Integer defaultValue)
Deprecated.
Get a value from this Store, providing a field index.
|
Long |
getValueAsLong(int index)
Deprecated.
Get a value from this Store, providing a field index.
|
Long |
getValueAsLong(int index,
Long defaultValue)
Deprecated.
Get a value from this Store, providing a field index.
|
Short |
getValueAsShort(int index)
Deprecated.
Get a value from this Store, providing a field index.
|
Short |
getValueAsShort(int index,
Short defaultValue)
Deprecated.
Get a value from this Store, providing a field index.
|
String |
getValueAsString(int index)
Deprecated.
Get a value from this Store, providing a field index.
|
String |
getValueAsString(int index,
String defaultValue)
Deprecated.
Get a value from this Store, providing a field index.
|
Time |
getValueAsTime(int index)
Deprecated.
Get a value from this Store, providing a field index.
|
Time |
getValueAsTime(int index,
Time defaultValue)
Deprecated.
Get a value from this Store, providing a field index.
|
Timestamp |
getValueAsTimestamp(int index)
Deprecated.
Get a value from this Store, providing a field index.
|
Timestamp |
getValueAsTimestamp(int index,
Timestamp defaultValue)
Deprecated.
Get a value from this Store, providing a field index.
|
int |
size()
Deprecated.
Get the size of this
Store. |
attachinternalAPIint 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 indexIllegalArgumentException - 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 nullnullIllegalArgumentException - If the argument index is not contained
in the StoreBigDecimal getValueAsBigDecimal(int index) throws IllegalArgumentException, DataTypeException
index - The field's indexIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - 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 nullnullIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - 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:
1yyestrueonenabled
boolean values for false are any of these case-insensitive
strings:
0nnofalseoffdisabled
All other values evaluate to null
index - The field's indexIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - 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:
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 nullnullIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - wrapping data type conversion exception that
might have occurredBigInteger getValueAsBigInteger(int index) throws IllegalArgumentException, DataTypeException
index - The field's indexIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - 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 nullnullIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - wrapping data type conversion exception that
might have occurredByte getValueAsByte(int index) throws IllegalArgumentException, DataTypeException
index - The field's indexIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - 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 nullnullIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - wrapping data type conversion exception that
might have occurredDate getValueAsDate(int index) throws IllegalArgumentException, DataTypeException
index - The field's indexIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - 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 nullnullIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - wrapping data type conversion exception that
might have occurredDouble getValueAsDouble(int index) throws IllegalArgumentException, DataTypeException
index - The field's indexIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - 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 nullnullIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - wrapping data type conversion exception that
might have occurredFloat getValueAsFloat(int index) throws IllegalArgumentException, DataTypeException
index - The field's indexIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - 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 nullnullIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - wrapping data type conversion exception that
might have occurredInteger getValueAsInteger(int index) throws IllegalArgumentException, DataTypeException
index - The field's indexIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - 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 nullnullIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - wrapping data type conversion exception that
might have occurredLong getValueAsLong(int index) throws IllegalArgumentException, DataTypeException
index - The field's indexIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - 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 nullnullIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - wrapping data type conversion exception that
might have occurredShort getValueAsShort(int index) throws IllegalArgumentException, DataTypeException
index - The field's indexIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - 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 nullnullIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - wrapping data type conversion exception that
might have occurredString getValueAsString(int index) throws IllegalArgumentException, DataTypeException
index - The field's indexIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - 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 nullnullIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - wrapping data type conversion exception that
might have occurredTime getValueAsTime(int index) throws IllegalArgumentException, DataTypeException
index - The field's indexIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - 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 nullnullIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - wrapping data type conversion exception that
might have occurredTimestamp getValueAsTimestamp(int index) throws IllegalArgumentException, DataTypeException
index - The field's indexIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - 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 nullnullIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - 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 typeIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - 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 nullnullIllegalArgumentException - If the argument index is not contained
in the StoreDataTypeException - wrapping data type conversion exception that
might have occurredConvert.convert(Object, Class)Copyright © 2013. All Rights Reserved.