org.jooq.impl
Class ArrayRecordImpl<T>

java.lang.Object
  extended by org.jooq.impl.ArrayRecordImpl<T>
All Implemented Interfaces:
Serializable, Iterable<T>, Adapter, ArrayRecord<T>, Attachable, AttachableInternal, Store<T>

public class ArrayRecordImpl<T>
extends Object
implements ArrayRecord<T>

A common base class for Oracle ARRAY types

This type is for JOOQ INTERNAL USE only. Do not reference directly

Author:
Lukas Eder
See Also:
Serialized Form

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 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jooq.Store
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
 
Methods inherited from interface org.jooq.Attachable
attach
 
Methods inherited from interface org.jooq.Adapter
internalAPI
 

Constructor Detail

ArrayRecordImpl

@Deprecated
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

Create an empty array record


ArrayRecordImpl

@Deprecated
protected ArrayRecordImpl(String name,
                                     DataType<T> type)
Deprecated. - 2.0.5 [#1179] - Please regenerate your schema and use ArrayRecordImpl(Schema, String, DataType) instead

Create an empty array record


ArrayRecordImpl

protected ArrayRecordImpl(Schema schema,
                          String name,
                          DataType<T> type,
                          Configuration configuration)
Create an empty array record


ArrayRecordImpl

protected ArrayRecordImpl(Schema schema,
                          String name,
                          DataType<T> type)
Create an empty array record

Method Detail

getAttachables

public final List<Attachable> getAttachables()
Description copied from interface: AttachableInternal
Get the list of dependent Attachables

This method is for JOOQ INTERNAL USE only. Do not reference directly

Specified by:
getAttachables in interface AttachableInternal

getValue

public final T getValue(int index)
                 throws IllegalArgumentException
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValue in interface Store<T>
Parameters:
index - The field's index
Returns:
The value of a field's index contained in this Store
Throws:
IllegalArgumentException - If the argument index is not contained in the Store

get

public final T[] get()
Description copied from interface: ArrayRecord
Get the contained array

Specified by:
get in interface ArrayRecord<T>

getList

public final List<T> getList()
Description copied from interface: ArrayRecord
Get the contained array as a List

Specified by:
getList in interface ArrayRecord<T>

set

public final void set(T... array)
Description copied from interface: ArrayRecord
Set the contained array

Specified by:
set in interface ArrayRecord<T>

set

public final void set(Array array)
               throws SQLException
Description copied from interface: ArrayRecord
Set the contained array

Specified by:
set in interface ArrayRecord<T>
Throws:
SQLException

setList

public final void setList(List<? extends T> list)
Description copied from interface: ArrayRecord
Set the contained array as a List

Specified by:
setList in interface ArrayRecord<T>

size

public final int size()
Description copied from interface: ArrayRecord
Get the size of the contained array

Specified by:
size in interface ArrayRecord<T>
Specified by:
size in interface Store<T>

getName

public final String getName()
Description copied from interface: ArrayRecord
Get the name of the array type

Specified by:
getName in interface ArrayRecord<T>

getDataType

public final DataType<T> getDataType()
Description copied from interface: ArrayRecord
Get the data type of the array type

Specified by:
getDataType in interface ArrayRecord<T>

createArray

@Deprecated
public final Array createArray()
                        throws SQLException
Deprecated. 

Description copied from interface: ArrayRecord
Create an Array from this ArrayRecord

This method is for INTERNAL use only. Do not call this method.

Specified by:
createArray in interface ArrayRecord<T>
Throws:
SQLException - If something goes wrong during the creation of the JDBC Array

toString

public String toString()
Overrides:
toString in class Object

iterator

public final Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T>

internalAPI

public final <I> I internalAPI(Class<I> internalType)
Description copied from interface: Adapter
Adapt to an internal type assuming its functionality

This is for JOOQ INTERNAL USE only. If you need to access the internal API, these are the known possible interfaces:

Be aware though, that the internal API may change even between minor releases.

Specified by:
internalAPI in interface Adapter
Type Parameters:
I - The internal type's generic type parameter.
Parameters:
internalType - The internal type
Returns:
This object wrapped by or cast to an internal type

attach

public final void attach(Configuration c)
Description copied from interface: Attachable
Attach this object to a new Configuration

Specified by:
attach in interface Attachable
Parameters:
c - A configuration or null, if you wish to detach this Attachable from its previous configuration.

getConfiguration

public final Configuration getConfiguration()
Description copied from interface: AttachableInternal
Get the underlying configuration

Specified by:
getConfiguration in interface AttachableInternal

create

protected final Factory create()
This method is used in generated code!


getValue

public final T getValue(int index,
                        T defaultValue)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValue in interface Store<T>
Parameters:
index - The field's index
defaultValue - The default value instead of null
Returns:
The value of a field's index contained in this Store, or defaultValue, if null

getValueAsBigDecimal

public final BigDecimal getValueAsBigDecimal(int index)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsBigDecimal in interface Store<T>
Parameters:
index - The field's index
Returns:
The converted value of a field's index contained in this Store

getValueAsBigDecimal

public final BigDecimal getValueAsBigDecimal(int index,
                                             BigDecimal defaultValue)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsBigDecimal in interface Store<T>
Parameters:
index - The field's index
defaultValue - The default value instead of null
Returns:
The converted value of a field's index contained in this Store, or defaultValue, if null

getValueAsBoolean

public final Boolean getValueAsBoolean(int index)
Description copied from interface: Store
Get a value from this Store, providing a field index.

boolean values for true are any of these case-insensitive strings:

boolean values for false are any of these case-insensitive strings:

All other values evaluate to null

Specified by:
getValueAsBoolean in interface Store<T>
Parameters:
index - The field's index
Returns:
The converted value of a field's index contained in this Store

getValueAsBoolean

public final Boolean getValueAsBoolean(int index,
                                       Boolean defaultValue)
Description copied from interface: Store
Get a value from this Store, providing a field index.

boolean values for true are any of these case-insensitive strings:

boolean values for false are any of these case-insensitive strings:

All other values evaluate to null

Specified by:
getValueAsBoolean in interface Store<T>
Parameters:
index - The field's index
defaultValue - The default value instead of null
Returns:
The converted value of a field's index contained in this Store, or defaultValue, if null

getValueAsBigInteger

public final BigInteger getValueAsBigInteger(int index)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsBigInteger in interface Store<T>
Parameters:
index - The field's index
Returns:
The converted value of a field's index contained in this Store

getValueAsBigInteger

public final BigInteger getValueAsBigInteger(int index,
                                             BigInteger defaultValue)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsBigInteger in interface Store<T>
Parameters:
index - The field's index
defaultValue - The default value instead of null
Returns:
The converted value of a field's index contained in this Store, or defaultValue, if null

getValueAsByte

public final Byte getValueAsByte(int index)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsByte in interface Store<T>
Parameters:
index - The field's index
Returns:
The converted value of a field's index contained in this Store

getValueAsByte

public final Byte getValueAsByte(int index,
                                 Byte defaultValue)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsByte in interface Store<T>
Parameters:
index - The field's index
defaultValue - The default value instead of null
Returns:
The converted value of a field's index contained in this Store, or defaultValue, if null

getValueAsDate

public final Date getValueAsDate(int index)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsDate in interface Store<T>
Parameters:
index - The field's index
Returns:
The converted value of a field's index contained in this Store

getValueAsDate

public final Date getValueAsDate(int index,
                                 Date defaultValue)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsDate in interface Store<T>
Parameters:
index - The field's index
defaultValue - The default value instead of null
Returns:
The converted value of a field's index contained in this Store, or defaultValue, if null

getValueAsDouble

public final Double getValueAsDouble(int index)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsDouble in interface Store<T>
Parameters:
index - The field's index
Returns:
The converted value of a field's index contained in this Store

getValueAsDouble

public final Double getValueAsDouble(int index,
                                     Double defaultValue)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsDouble in interface Store<T>
Parameters:
index - The field's index
defaultValue - The default value instead of null
Returns:
The converted value of a field's index contained in this Store, or defaultValue, if null

getValueAsFloat

public final Float getValueAsFloat(int index)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsFloat in interface Store<T>
Parameters:
index - The field's index
Returns:
The converted value of a field's index contained in this Store

getValueAsFloat

public final Float getValueAsFloat(int index,
                                   Float defaultValue)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsFloat in interface Store<T>
Parameters:
index - The field's index
defaultValue - The default value instead of null
Returns:
The converted value of a field's index contained in this Store, or defaultValue, if null

getValueAsInteger

public final Integer getValueAsInteger(int index)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsInteger in interface Store<T>
Parameters:
index - The field's index
Returns:
The converted value of a field's index contained in this Store

getValueAsInteger

public final Integer getValueAsInteger(int index,
                                       Integer defaultValue)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsInteger in interface Store<T>
Parameters:
index - The field's index
defaultValue - The default value instead of null
Returns:
The converted value of a field's index contained in this Store, or defaultValue, if null

getValueAsLong

public final Long getValueAsLong(int index)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsLong in interface Store<T>
Parameters:
index - The field's index
Returns:
The converted value of a field's index contained in this Store

getValueAsLong

public final Long getValueAsLong(int index,
                                 Long defaultValue)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsLong in interface Store<T>
Parameters:
index - The field's index
defaultValue - The default value instead of null
Returns:
The converted value of a field's index contained in this Store, or defaultValue, if null

getValueAsShort

public final Short getValueAsShort(int index)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsShort in interface Store<T>
Parameters:
index - The field's index
Returns:
The converted value of a field's index contained in this Store

getValueAsShort

public final Short getValueAsShort(int index,
                                   Short defaultValue)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsShort in interface Store<T>
Parameters:
index - The field's index
defaultValue - The default value instead of null
Returns:
The converted value of a field's index contained in this Store, or defaultValue, if null

getValueAsString

public final String getValueAsString(int index)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsString in interface Store<T>
Parameters:
index - The field's index
Returns:
The converted value of a field's index contained in this Store

getValueAsString

public final String getValueAsString(int index,
                                     String defaultValue)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsString in interface Store<T>
Parameters:
index - The field's index
defaultValue - The default value instead of null
Returns:
The converted value of a field's index contained in this Store, or defaultValue, if null

getValueAsTime

public final Time getValueAsTime(int index)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsTime in interface Store<T>
Parameters:
index - The field's index
Returns:
The converted value of a field's index contained in this Store

getValueAsTime

public final Time getValueAsTime(int index,
                                 Time defaultValue)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsTime in interface Store<T>
Parameters:
index - The field's index
defaultValue - The default value instead of null
Returns:
The converted value of a field's index contained in this Store, or defaultValue, if null

getValueAsTimestamp

public final Timestamp getValueAsTimestamp(int index)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsTimestamp in interface Store<T>
Parameters:
index - The field's index
Returns:
The converted value of a field's index contained in this Store

getValueAsTimestamp

public final Timestamp getValueAsTimestamp(int index,
                                           Timestamp defaultValue)
Description copied from interface: Store
Get a value from this Store, providing a field index.

Specified by:
getValueAsTimestamp in interface Store<T>
Parameters:
index - The field's index
defaultValue - The default value instead of null
Returns:
The converted value of a field's index contained in this Store, or defaultValue, if null

getValue

public final <Z> Z getValue(int index,
                            Class<? extends Z> type)
Description copied from interface: Store
Get a converted value from this Store, providing a field index.

Specified by:
getValue in interface Store<T>
Type Parameters:
Z - The conversion type parameter
Parameters:
index - The field's index
type - The conversion type
Returns:
The value of a field's index contained in this Store
See Also:
Convert.convert(Object, Class)

getValue

public final <Z> Z getValue(int index,
                            Class<? extends Z> type,
                            Z defaultValue)
Description copied from interface: Store
Get a converted value from this Store, providing a field index.

Specified by:
getValue in interface Store<T>
Type Parameters:
Z - The conversion type parameter
Parameters:
index - The field's index
type - The conversion type
defaultValue - The default value instead of null
Returns:
The value of a field's index contained in this Store, or defaultValue, if null
See Also:
Convert.convert(Object, Class)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2012. All Rights Reserved.