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, wait
getValue, 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, getValueAsTimestamp
attach
internalAPI
@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()
AttachableInternal
Attachables
This method is for JOOQ INTERNAL USE only. Do not reference directly
getAttachables
in interface AttachableInternal
public final T getValue(int index) throws IllegalArgumentException
Store
getValue
in interface Store<T>
index
- The field's indexIllegalArgumentException
- If the argument index is not contained
in the Storepublic final T[] get()
ArrayRecord
get
in interface ArrayRecord<T>
public final List<T> getList()
ArrayRecord
List
getList
in interface ArrayRecord<T>
public final void set(T... array)
ArrayRecord
set
in interface ArrayRecord<T>
public final void set(Array array) throws SQLException
ArrayRecord
set
in interface ArrayRecord<T>
SQLException
public final void setList(List<? extends T> list)
ArrayRecord
List
setList
in interface ArrayRecord<T>
public final int size()
ArrayRecord
public final String getName()
ArrayRecord
getName
in interface ArrayRecord<T>
public final DataType<T> getDataType()
ArrayRecord
getDataType
in interface ArrayRecord<T>
@Deprecated public final Array createArray() throws SQLException
ArrayRecord
Array
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 Array
public final <I> I internalAPI(Class<I> internalType)
Adapter
This 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 QueryPart
internalAPI
in interface Adapter
I
- The internal type's generic type parameter.internalType
- The internal typepublic final void attach(Configuration c)
Attachable
Configuration
attach
in interface Attachable
c
- A configuration or null
, if you wish to
detach this Attachable
from its previous
configuration.public final Configuration getConfiguration()
AttachableInternal
getConfiguration
in interface AttachableInternal
protected final Factory create()
public final T getValue(int index, T defaultValue)
Store
public final BigDecimal getValueAsBigDecimal(int index)
Store
getValueAsBigDecimal
in interface Store<T>
index
- The field's indexpublic final BigDecimal getValueAsBigDecimal(int index, BigDecimal defaultValue)
Store
getValueAsBigDecimal
in interface Store<T>
index
- The field's indexdefaultValue
- The default value instead of null
null
public final Boolean getValueAsBoolean(int index)
Store
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
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:
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
getValueAsBoolean
in interface Store<T>
index
- The field's indexdefaultValue
- The default value instead of null
null
public final BigInteger getValueAsBigInteger(int index)
Store
getValueAsBigInteger
in interface Store<T>
index
- The field's indexpublic final BigInteger getValueAsBigInteger(int index, BigInteger defaultValue)
Store
getValueAsBigInteger
in interface Store<T>
index
- The field's indexdefaultValue
- The default value instead of null
null
public final Byte getValueAsByte(int index)
Store
getValueAsByte
in interface Store<T>
index
- The field's indexpublic final Byte getValueAsByte(int index, Byte defaultValue)
Store
getValueAsByte
in interface Store<T>
index
- The field's indexdefaultValue
- The default value instead of null
null
public final Date getValueAsDate(int index)
Store
getValueAsDate
in interface Store<T>
index
- The field's indexpublic final Date getValueAsDate(int index, Date defaultValue)
Store
getValueAsDate
in interface Store<T>
index
- The field's indexdefaultValue
- The default value instead of null
null
public final Double getValueAsDouble(int index)
Store
getValueAsDouble
in interface Store<T>
index
- The field's indexpublic final Double getValueAsDouble(int index, Double defaultValue)
Store
getValueAsDouble
in interface Store<T>
index
- The field's indexdefaultValue
- The default value instead of null
null
public final Float getValueAsFloat(int index)
Store
getValueAsFloat
in interface Store<T>
index
- The field's indexpublic final Float getValueAsFloat(int index, Float defaultValue)
Store
getValueAsFloat
in interface Store<T>
index
- The field's indexdefaultValue
- The default value instead of null
null
public final Integer getValueAsInteger(int index)
Store
getValueAsInteger
in interface Store<T>
index
- The field's indexpublic final Integer getValueAsInteger(int index, Integer defaultValue)
Store
getValueAsInteger
in interface Store<T>
index
- The field's indexdefaultValue
- The default value instead of null
null
public final Long getValueAsLong(int index)
Store
getValueAsLong
in interface Store<T>
index
- The field's indexpublic final Long getValueAsLong(int index, Long defaultValue)
Store
getValueAsLong
in interface Store<T>
index
- The field's indexdefaultValue
- The default value instead of null
null
public final Short getValueAsShort(int index)
Store
getValueAsShort
in interface Store<T>
index
- The field's indexpublic final Short getValueAsShort(int index, Short defaultValue)
Store
getValueAsShort
in interface Store<T>
index
- The field's indexdefaultValue
- The default value instead of null
null
public final String getValueAsString(int index)
Store
getValueAsString
in interface Store<T>
index
- The field's indexpublic final String getValueAsString(int index, String defaultValue)
Store
getValueAsString
in interface Store<T>
index
- The field's indexdefaultValue
- The default value instead of null
null
public final Time getValueAsTime(int index)
Store
getValueAsTime
in interface Store<T>
index
- The field's indexpublic final Time getValueAsTime(int index, Time defaultValue)
Store
getValueAsTime
in interface Store<T>
index
- The field's indexdefaultValue
- The default value instead of null
null
public final Timestamp getValueAsTimestamp(int index)
Store
getValueAsTimestamp
in interface Store<T>
index
- The field's indexpublic final Timestamp getValueAsTimestamp(int index, Timestamp defaultValue)
Store
getValueAsTimestamp
in interface Store<T>
index
- The field's indexdefaultValue
- The default value instead of null
null
public final <Z> Z getValue(int index, Class<? extends Z> type)
Store
getValue
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)
Store
getValue
in interface Store<T>
Z
- The conversion type parameterindex
- The field's indextype
- The conversion typedefaultValue
- The default value instead of null
null
Convert.convert(Object, Class)
Copyright © 2013. All Rights Reserved.