org.jooq
Interface ArrayRecord<E>

Type Parameters:
E - The array element type
All Superinterfaces:
Adapter, Attachable, Iterable<E>, Serializable, Store<E>
All Known Implementing Classes:
ArrayRecordImpl

public interface ArrayRecord<E>
extends Store<E>, Iterable<E>

A "record" that encapsulates an Oracle-style ARRAY (or VARRAY), additionally providing some convenience methods

Author:
Lukas Eder

Method Summary
 Array createArray()
          Create an Array from this ArrayRecord This method is for INTERNAL use only.
 E[] get()
          Get the contained array
 DataType<E> getDataType()
          Get the data type of the array type
 List<E> getList()
          Get the contained array as a List
 String getName()
          Get the name of the array type
 void set(Array array)
          Set the contained array
 void set(E... array)
          Set the contained array
 void setList(List<? extends E> list)
          Set the contained array as a List
 int size()
          Get the size of the contained array
 
Methods inherited from interface org.jooq.Store
getValue, 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
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

get

E[] get()
Get the contained array


getList

List<E> getList()
Get the contained array as a List


set

void set(Array array)
         throws SQLException
Set the contained array

Throws:
SQLException

set

void set(E... array)
Set the contained array


setList

void setList(List<? extends E> list)
Set the contained array as a List


size

int size()
Get the size of the contained array

Specified by:
size in interface Store<E>

getName

String getName()
Get the name of the array type


getDataType

DataType<E> getDataType()
Get the data type of the array type


createArray

Array createArray()
                  throws SQLException,
                         DetachedException
Create an Array from this ArrayRecord

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

Throws:
SQLException - If something goes wrong during the creation of the JDBC Array
DetachedException - If this method is called on a detached ArrayRecord


Copyright © 2012. All Rights Reserved.