|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jooq.impl.ArrayRecordImpl<T>
public class ArrayRecordImpl<T>
A common base class for Oracle ARRAY types
This type is for JOOQ INTERNAL USE only. Do not reference directly
| Constructor Summary | |
|---|---|
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 |
| Method Summary | ||
|---|---|---|
void |
attach(Configuration configuration)
Attach this object to a new Configuration |
|
protected Factory |
create()
This method is used in generated code! |
|
Array |
createArray()
Create an Array from this ArrayRecord
This method is for INTERNAL use only. |
|
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. |
|
|
getValue(int index,
Class<? extends Z> type)
Get a converted value from this Store, providing a field index. |
|
|
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()
|
|
|
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()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jooq.Attachable |
|---|
attach |
| Methods inherited from interface org.jooq.Adapter |
|---|
internalAPI |
| Constructor Detail |
|---|
@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) instead
protected ArrayRecordImpl(Schema schema,
String name,
DataType<T> type,
Configuration configuration)
protected ArrayRecordImpl(Schema schema,
String name,
DataType<T> type)
| Method Detail |
|---|
public final List<Attachable> getAttachables()
AttachableInternalAttachables
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 index
IllegalArgumentException - If the argument index is not contained
in the Storepublic final T[] get()
ArrayRecord
get in interface ArrayRecord<T>public final List<T> getList()
ArrayRecordList
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>SQLExceptionpublic final void setList(List<? extends T> list)
ArrayRecordList
setList in interface ArrayRecord<T>public final int size()
ArrayRecord
size in interface ArrayRecord<T>size in interface Store<T>public final String getName()
ArrayRecord
getName in interface ArrayRecord<T>public final DataType<T> getDataType()
ArrayRecord
getDataType in interface ArrayRecord<T>
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 String toString()
toString in class Objectpublic final Iterator<T> iterator()
iterator in interface Iterable<T>public 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 QueryPart
internalAPI in interface AdapterI - The internal type's generic type parameter.internalType - The internal type
public final void attach(Configuration configuration)
AttachableConfiguration
attach in interface Attachablepublic final Configuration getConfiguration()
AttachableInternal
getConfiguration in interface AttachableInternalprotected final Factory create()
public final T getValue(int index,
T defaultValue)
Store
getValue in interface Store<T>index - The field's indexdefaultValue - The default value instead of null
nullpublic final BigDecimal getValueAsBigDecimal(int index)
Store
getValueAsBigDecimal in interface Store<T>index - The field's index
public final BigDecimal getValueAsBigDecimal(int index,
BigDecimal defaultValue)
Store
getValueAsBigDecimal in interface Store<T>index - The field's indexdefaultValue - The default value instead of null
nullpublic 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 index
public 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 null
nullpublic final BigInteger getValueAsBigInteger(int index)
Store
getValueAsBigInteger in interface Store<T>index - The field's index
public final BigInteger getValueAsBigInteger(int index,
BigInteger defaultValue)
Store
getValueAsBigInteger in interface Store<T>index - The field's indexdefaultValue - The default value instead of null
nullpublic final Byte getValueAsByte(int index)
Store
getValueAsByte in interface Store<T>index - The field's index
public final Byte getValueAsByte(int index,
Byte defaultValue)
Store
getValueAsByte in interface Store<T>index - The field's indexdefaultValue - The default value instead of null
nullpublic final Date getValueAsDate(int index)
Store
getValueAsDate in interface Store<T>index - The field's index
public final Date getValueAsDate(int index,
Date defaultValue)
Store
getValueAsDate in interface Store<T>index - The field's indexdefaultValue - The default value instead of null
nullpublic final Double getValueAsDouble(int index)
Store
getValueAsDouble in interface Store<T>index - The field's index
public final Double getValueAsDouble(int index,
Double defaultValue)
Store
getValueAsDouble in interface Store<T>index - The field's indexdefaultValue - The default value instead of null
nullpublic final Float getValueAsFloat(int index)
Store
getValueAsFloat in interface Store<T>index - The field's index
public final Float getValueAsFloat(int index,
Float defaultValue)
Store
getValueAsFloat in interface Store<T>index - The field's indexdefaultValue - The default value instead of null
nullpublic final Integer getValueAsInteger(int index)
Store
getValueAsInteger in interface Store<T>index - The field's index
public final Integer getValueAsInteger(int index,
Integer defaultValue)
Store
getValueAsInteger in interface Store<T>index - The field's indexdefaultValue - The default value instead of null
nullpublic final Long getValueAsLong(int index)
Store
getValueAsLong in interface Store<T>index - The field's index
public final Long getValueAsLong(int index,
Long defaultValue)
Store
getValueAsLong in interface Store<T>index - The field's indexdefaultValue - The default value instead of null
nullpublic final Short getValueAsShort(int index)
Store
getValueAsShort in interface Store<T>index - The field's index
public final Short getValueAsShort(int index,
Short defaultValue)
Store
getValueAsShort in interface Store<T>index - The field's indexdefaultValue - The default value instead of null
nullpublic final String getValueAsString(int index)
Store
getValueAsString in interface Store<T>index - The field's index
public final String getValueAsString(int index,
String defaultValue)
Store
getValueAsString in interface Store<T>index - The field's indexdefaultValue - The default value instead of null
nullpublic final Time getValueAsTime(int index)
Store
getValueAsTime in interface Store<T>index - The field's index
public final Time getValueAsTime(int index,
Time defaultValue)
Store
getValueAsTime in interface Store<T>index - The field's indexdefaultValue - The default value instead of null
nullpublic final Timestamp getValueAsTimestamp(int index)
Store
getValueAsTimestamp in interface Store<T>index - The field's index
public 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 type
Convert.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
nullConvert.convert(Object, Class)public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||