Package org.jooq

Interface ArrayRecord<E>

  • Type Parameters:
    E - The array element type
    All Superinterfaces:
    Attachable, java.util.Collection<E>, java.lang.Iterable<E>, java.util.List<E>, java.io.Serializable
    All Known Implementing Classes:
    ArrayRecordImpl

    @Pro
    public interface ArrayRecord<E>
    extends Attachable, java.util.List<E>
    A "record" that encapsulates an Oracle-style ARRAY (or VARRAY), additionally providing some convenience methods.
    Author:
    Lukas Eder
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      E[] get()
      Deprecated.
      - 3.7.0 - [#4566] - Use List.toArray() instead.
      DataType<?> getArrayType()
      Get the data type of the array.
      Catalog getCatalog()
      Get the record type's catalog.
      DataType<E> getDataType()
      Get the data type of the array's base type.
      java.util.List<E> getList()
      Deprecated.
      - 3.7.0 - [#4566] - ArrayRecord already extends List.
      java.lang.String getName()
      Get the unqualified name of the array type.
      Package getPackage()
      Get the UDT package.
      Schema getSchema()
      Get the record type's schema.
      boolean isSQLUsable()
      Whether this data type can be used from SQL statements.
      void set​(E... array)
      Deprecated.
      - 3.7.0 - [#4566] - Use List methods instead.
      void set​(java.sql.Array array)
      Deprecated.
      - 3.4.0 - [#3127] - Do not use this method any more.
      void set​(java.util.Collection<? extends E> list)
      Deprecated.
      - 3.7.0 - [#4566] - Use List methods instead.
      void setList​(java.util.List<? extends E> list)
      Deprecated.
      - 3.4.0 - [#3128] Use set(Collection) instead.
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
    • Method Detail

      • get

        @Deprecated
        E[] get()
        Deprecated.
        - 3.7.0 - [#4566] - Use List.toArray() instead.
        Get the contained array.
      • getList

        @Deprecated
        java.util.List<E> getList()
        Deprecated.
        - 3.7.0 - [#4566] - ArrayRecord already extends List. There is no need to call this any more.
        Get the contained array as a List.
      • set

        @Deprecated
        void set​(java.sql.Array array)
          throws java.sql.SQLException
        Deprecated.
        - 3.4.0 - [#3127] - Do not use this method any more.
        Set the contained array.
        Throws:
        java.sql.SQLException
      • set

        @Deprecated
        void set​(E... array)
        Deprecated.
        - 3.7.0 - [#4566] - Use List methods instead.
        Set the contained array.
      • set

        @Deprecated
        void set​(java.util.Collection<? extends E> list)
        Deprecated.
        - 3.7.0 - [#4566] - Use List methods instead.
        Set the contained array as a List.
      • setList

        @Deprecated
        void setList​(java.util.List<? extends E> list)
        Deprecated.
        - 3.4.0 - [#3128] Use set(Collection) instead.
        Set the contained array as a List.
      • getCatalog

        Catalog getCatalog()
        Get the record type's catalog.
      • getSchema

        Schema getSchema()
        Get the record type's schema.
      • getPackage

        Package getPackage()
        Get the UDT package.
      • getName

        java.lang.String getName()
        Get the unqualified name of the array type.
      • getDataType

        DataType<E> getDataType()
        Get the data type of the array's base type.
      • getArrayType

        DataType<?> getArrayType()
        Get the data type of the array.
      • isSQLUsable

        boolean isSQLUsable()
        Whether this data type can be used from SQL statements.