public class ArrayRecordImpl<T> extends Object implements ArrayRecord<T>
This type is for JOOQ INTERNAL USE only. Do not reference directly
| Modifier | Constructor and Description |
|---|---|
protected |
ArrayRecordImpl(Schema schema,
String name,
DataType<T> type)
Create an empty array record
|
protected |
ArrayRecordImpl(Schema schema,
String name,
DataType<T> type,
Configuration configuration)
Create an empty array record
|
protected |
ArrayRecordImpl(String name,
DataType<T> type)
Deprecated.
- 2.0.5 [#1179] - Please regenerate your schema and use
ArrayRecordImpl(Schema, String, DataType) instead |
protected |
ArrayRecordImpl(String name,
DataType<T> type,
Configuration configuration)
Deprecated.
- 2.0.5 [#1179] - Please regenerate your schema and use
ArrayRecordImpl(Schema, String, DataType, Configuration)
instead |
| Modifier and Type | Method and Description |
|---|---|
void |
attach(Configuration c)
Attach this object to a new
Configuration |
protected Factory |
create()
This method is used in generated code!
|
Array |
createArray()
Deprecated.
|
boolean |
equals(Object obj) |
T[] |
get()
Get the contained array
|
List<Attachable> |
getAttachables()
Get the list of dependent
Attachables
This method is for JOOQ INTERNAL USE only. |
Configuration |
getConfiguration()
Get the underlying configuration
|
DataType<T> |
getDataType()
Get the data type of the array type
|
List<T> |
getList()
Get the contained array as a
List |
String |
getName()
Get the name of the array type
|
T |
getValue(int index)
Get a value from this Store, providing a field index.
|
<Z> Z |
getValue(int index,
Class<? extends Z> type)
Get a converted value from this Store, providing a field index.
|
<Z> Z |
getValue(int index,
Class<? extends Z> type,
Z defaultValue)
Get a converted value from this Store, providing a field index.
|
T |
getValue(int index,
T 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 |
hashCode() |
<I> I |
internalAPI(Class<I> internalType)
Adapt to an internal type assuming its functionality
This is for JOOQ INTERNAL USE only.
|
Iterator<T> |
iterator() |
void |
set(Array array)
Set the contained array
|
void |
set(T... array)
Set the contained array
|
void |
setList(List<? extends T> list)
Set the contained array as a
List |
int |
size()
Get the size of the contained array
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetValue, getValue, getValue, getValueAsBigDecimal, getValueAsBigDecimal, getValueAsBigInteger, getValueAsBigInteger, getValueAsBoolean, getValueAsBoolean, getValueAsByte, getValueAsByte, getValueAsDate, getValueAsDate, getValueAsDouble, getValueAsDouble, getValueAsFloat, getValueAsFloat, getValueAsInteger, getValueAsInteger, getValueAsLong, getValueAsLong, getValueAsShort, getValueAsShort, getValueAsString, getValueAsString, getValueAsTime, getValueAsTime, getValueAsTimestamp, getValueAsTimestampattachinternalAPI@Deprecated protected ArrayRecordImpl(String name, DataType<T> type, Configuration configuration)
ArrayRecordImpl(Schema, String, DataType, Configuration)
instead@Deprecated protected ArrayRecordImpl(String name, DataType<T> type)
ArrayRecordImpl(Schema, String, DataType) insteadprotected ArrayRecordImpl(Schema schema, String name, DataType<T> type, Configuration configuration)
public final List<Attachable> getAttachables()
AttachableInternalAttachables
This method is for JOOQ INTERNAL USE only. Do not reference directly
getAttachables in interface AttachableInternalpublic final T getValue(int index) throws IllegalArgumentException
StoregetValue in interface Store<T>index - The field's indexIllegalArgumentException - If the argument index is not contained
in the Storepublic final T[] get()
ArrayRecordget in interface ArrayRecord<T>public final List<T> getList()
ArrayRecordListgetList in interface ArrayRecord<T>public final void set(T... array)
ArrayRecordset in interface ArrayRecord<T>public final void set(Array array) throws SQLException
ArrayRecordset in interface ArrayRecord<T>SQLExceptionpublic final void setList(List<? extends T> list)
ArrayRecordListsetList in interface ArrayRecord<T>public final int size()
ArrayRecordpublic final String getName()
ArrayRecordgetName in interface ArrayRecord<T>public final DataType<T> getDataType()
ArrayRecordgetDataType in interface ArrayRecord<T>@Deprecated public final Array createArray() throws SQLException
ArrayRecordArray from this ArrayRecord
This method is for INTERNAL use only. Do not call this method.
createArray in interface ArrayRecord<T>SQLException - If something goes wrong during the creation of the
JDBC Arraypublic final <I> I internalAPI(Class<I> internalType)
AdapterThis is for JOOQ INTERNAL USE only. If you need to access the internal API, these are the known possible interfaces:
QueryPartInternal: The internal API for QueryPartinternalAPI in interface AdapterI - The internal type's generic type parameter.internalType - The internal typepublic final void attach(Configuration c)
AttachableConfigurationattach in interface Attachablec - A configuration or null, if you wish to
detach this Attachable from its previous
configuration.public final Configuration getConfiguration()
AttachableInternalgetConfiguration in interface AttachableInternalprotected final Factory create()
public final T getValue(int index,
T defaultValue)
Storepublic final BigDecimal getValueAsBigDecimal(int index)
StoregetValueAsBigDecimal in interface Store<T>index - The field's indexpublic final BigDecimal getValueAsBigDecimal(int index, BigDecimal defaultValue)
StoregetValueAsBigDecimal in interface Store<T>index - The field's indexdefaultValue - The default value instead of nullnullpublic final Boolean getValueAsBoolean(int index)
Store
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
getValueAsBoolean in interface Store<T>index - The field's indexpublic final Boolean getValueAsBoolean(int index, Boolean defaultValue)
Store
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
getValueAsBoolean in interface Store<T>index - The field's indexdefaultValue - The default value instead of nullnullpublic final BigInteger getValueAsBigInteger(int index)
StoregetValueAsBigInteger in interface Store<T>index - The field's indexpublic final BigInteger getValueAsBigInteger(int index, BigInteger defaultValue)
StoregetValueAsBigInteger in interface Store<T>index - The field's indexdefaultValue - The default value instead of nullnullpublic final Byte getValueAsByte(int index)
StoregetValueAsByte in interface Store<T>index - The field's indexpublic final Byte getValueAsByte(int index, Byte defaultValue)
StoregetValueAsByte in interface Store<T>index - The field's indexdefaultValue - The default value instead of nullnullpublic final Date getValueAsDate(int index)
StoregetValueAsDate in interface Store<T>index - The field's indexpublic final Date getValueAsDate(int index, Date defaultValue)
StoregetValueAsDate in interface Store<T>index - The field's indexdefaultValue - The default value instead of nullnullpublic final Double getValueAsDouble(int index)
StoregetValueAsDouble in interface Store<T>index - The field's indexpublic final Double getValueAsDouble(int index, Double defaultValue)
StoregetValueAsDouble in interface Store<T>index - The field's indexdefaultValue - The default value instead of nullnullpublic final Float getValueAsFloat(int index)
StoregetValueAsFloat in interface Store<T>index - The field's indexpublic final Float getValueAsFloat(int index, Float defaultValue)
StoregetValueAsFloat in interface Store<T>index - The field's indexdefaultValue - The default value instead of nullnullpublic final Integer getValueAsInteger(int index)
StoregetValueAsInteger in interface Store<T>index - The field's indexpublic final Integer getValueAsInteger(int index, Integer defaultValue)
StoregetValueAsInteger in interface Store<T>index - The field's indexdefaultValue - The default value instead of nullnullpublic final Long getValueAsLong(int index)
StoregetValueAsLong in interface Store<T>index - The field's indexpublic final Long getValueAsLong(int index, Long defaultValue)
StoregetValueAsLong in interface Store<T>index - The field's indexdefaultValue - The default value instead of nullnullpublic final Short getValueAsShort(int index)
StoregetValueAsShort in interface Store<T>index - The field's indexpublic final Short getValueAsShort(int index, Short defaultValue)
StoregetValueAsShort in interface Store<T>index - The field's indexdefaultValue - The default value instead of nullnullpublic final String getValueAsString(int index)
StoregetValueAsString in interface Store<T>index - The field's indexpublic final String getValueAsString(int index, String defaultValue)
StoregetValueAsString in interface Store<T>index - The field's indexdefaultValue - The default value instead of nullnullpublic final Time getValueAsTime(int index)
StoregetValueAsTime in interface Store<T>index - The field's indexpublic final Time getValueAsTime(int index, Time defaultValue)
StoregetValueAsTime in interface Store<T>index - The field's indexdefaultValue - The default value instead of nullnullpublic final Timestamp getValueAsTimestamp(int index)
StoregetValueAsTimestamp in interface Store<T>index - The field's indexpublic final Timestamp getValueAsTimestamp(int index, Timestamp defaultValue)
StoregetValueAsTimestamp in interface Store<T>index - The field's indexdefaultValue - The default value instead of nullnullpublic final <Z> Z getValue(int index,
Class<? extends Z> type)
StoregetValue in interface Store<T>Z - The conversion type parameterindex - The field's indextype - The conversion typeConvert.convert(Object, Class)public final <Z> Z getValue(int index,
Class<? extends Z> type,
Z defaultValue)
StoregetValue in interface Store<T>Z - The conversion type parameterindex - The field's indextype - The conversion typedefaultValue - The default value instead of nullnullConvert.convert(Object, Class)Copyright © 2013. All Rights Reserved.