| Package | Description | 
|---|---|
| javax.sql.rowset.serial | Provides utility classes to allow serializable mappings between SQL types
and data types in the Java programming language. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Object | SerialArray. getArray()Returns a new array that is a copy of this  SerialArrayobject. | |
| Object | SerialArray. getArray(long index,
        int count)Returns a new array that is a copy of a slice
 of this  SerialArrayobject, starting with the
 element at the given index and containing the given number
 of consecutive elements. | |
| Object | SerialArray. getArray(long index,
        int count,
        Map<String,Class<?>> map)Returns a new array that is a copy of a slice
 of this  SerialArrayobject, starting with the
 element at the given index and containing the given number
 of consecutive elements. | |
| Object | SerialArray. getArray(Map<String,Class<?>> map)Returns a new array that is a copy of this  SerialArrayobject, using the given type map for the custom
 mapping of each element when the elements are SQL UDTs. | |
| InputStream | SerialClob. getAsciiStream()Retrieves the  CLOBvalue designated by thisSerialClobobject as an ascii stream. | |
| Object[] | SerialStruct. getAttributes()Retrieves an array of  Objectvalues containing the
 attributes of the SQL structured type that thisSerialStructobject represents. | |
| Object[] | SerialStruct. getAttributes(Map<String,Class<?>> map)Retrieves the attributes for the SQL structured type that
 this  SerialStructrepresents as an array ofObjectvalues, using the given type map for
 custom mapping if appropriate. | |
| int | SerialArray. getBaseType()Retrieves the SQL type of the elements in this  SerialArrayobject. | |
| String | SerialArray. getBaseTypeName()Retrieves the DBMS-specific type name for the elements in this
  SerialArrayobject. | |
| String | SerialRef. getBaseTypeName()Returns a string describing the base type name of the  Ref. | |
| InputStream | SerialBlob. getBinaryStream()Returns this  SerialBlobobject as an input stream. | |
| byte[] | SerialBlob. getBytes(long pos,
        int length)Copies the specified number of bytes, starting at the given
 position, from this  SerialBlobobject to
 another array of bytes. | |
| Reader | SerialClob. getCharacterStream()Returns this  SerialClobobject's data as a stream
 of Unicode characters. | |
| URL | SerialDatalink. getDatalink()Returns a new URL that is a copy of this  SerialDatalinkobject. | |
| Field[] | SerialJavaObject. getFields()Returns an array of  Fieldobjects that contains each
 field of the object that this helper class is serializing. | |
| Object | SerialRef. getObject()Returns an  Objectrepresenting the SQL structured type
 to which thisSerialRefobject refers. | |
| Object | SerialJavaObject. getObject()Returns an  Objectthat is a copy of thisSerialJavaObjectobject. | |
| Object | SerialRef. getObject(Map<String,Class<?>> map)Returns an  Objectrepresenting the SQL structured type
 to which thisSerialRefobject refers. | |
| ResultSet | SerialArray. getResultSet()Retrieves a  ResultSetobject that contains all of
 the elements in theARRAYvalue that thisSerialArrayobject represents. | |
| ResultSet | SerialArray. getResultSet(long index,
            int count)Retrieves a  ResultSetobject holding the elements of
 the subarray that starts at
 index index and contains up to count successive elements. | |
| ResultSet | SerialArray. getResultSet(long index,
            int count,
            Map<String,Class<?>> map)Retrieves a result set holding the elements of the subarray that starts at
 Retrieves a  ResultSetobject that contains a subarray of the
 elements in thisSerialArrayobject, starting at
 index index and containing up to count successive
 elements. | |
| ResultSet | SerialArray. getResultSet(Map<String,Class<?>> map)Retrieves a  ResultSetobject that contains all of
 the elements of the SQLARRAYvalue represented by thisSerialArrayobject. | |
| String | SerialStruct. getSQLTypeName()Retrieves the SQL type name for this  SerialStructobject. | |
| String | SerialClob. getSubString(long pos,
            int length)Returns a copy of the substring contained in this
  SerialClobobject, starting at the given position
 and continuing for the specified number or characters. | |
| long | SerialBlob. length()Retrieves the number of bytes in this  SerialBlobobject's array of bytes. | |
| long | SerialClob. length()Retrieves the number of characters in this  SerialClobobject's array of characters. | |
| long | SerialBlob. position(Blob pattern,
        long start)Returns the position in this  SerialBlobobject where
 the givenBlobobject begins, starting the search at the
 specified position. | |
| long | SerialBlob. position(byte[] pattern,
        long start)Returns the position in this  SerialBlobobject where
 the given pattern of bytes begins, starting the search at the
 specified position. | |
| long | SerialClob. position(Clob searchStr,
        long start)Returns the position in this  SerialClobobject
 where the givenClobsignature begins, starting
 the search at the specified position. | |
| long | SerialClob. position(String searchStr,
        long start)Returns the position in this  SerialClobobject
 where the givenStringobject begins, starting
 the search at the specified position. | |
| OutputStream | SerialClob. setAsciiStream(long pos)Retrieves a stream to be used to write Ascii characters to the
  CLOBvalue that thisSerialClobobject represents,
 starting at positionpos. | |
| OutputStream | SerialBlob. setBinaryStream(long pos)Retrieves a stream that can be used to write to the  BLOBvalue that thisBlobobject represents. | |
| int | SerialBlob. setBytes(long pos,
        byte[] bytes)Writes the given array of bytes to the  BLOBvalue that
 thisBlobobject represents, starting at positionpos, and returns the number of bytes written. | |
| int | SerialBlob. setBytes(long pos,
        byte[] bytes,
        int offset,
        int length)Writes all or part of the given  bytearray to theBLOBvalue that thisBlobobject represents
 and returns the number of bytes written. | |
| Writer | SerialClob. setCharacterStream(long pos)Retrieves a stream to be used to write a stream of Unicode characters
 to the  CLOBvalue that thisSerialClobobject
 represents, at positionpos. | |
| void | SerialRef. setObject(Object obj)Sets the SQL structured type that this  SerialRefobject
 references to the givenObjectobject. | |
| int | SerialClob. setString(long pos,
         String str)Writes the given Java  Stringto theCLOBvalue that thisSerialClobobject represents, at the positionpos. | |
| int | SerialClob. setString(long pos,
         String str,
         int offset,
         int length)Writes  lencharacters ofstr, starting
 at characteroffset, to theCLOBvalue
 that thisClobrepresents. | |
| void | SerialBlob. truncate(long length)Truncates the  BLOBvalue that thisBlobobject represents to belenbytes in length. | |
| void | SerialClob. truncate(long length)Truncates the  CLOBvalue that thisSerialClobobject represents so that it has a length oflencharacters. | 
| Constructor | Description | 
|---|---|
| SerialArray(Array array)Constructs a new  SerialArrayobject from the givenArrayobject. | |
| SerialArray(Array array,
           Map<String,Class<?>> map)Constructs a new  SerialArrayobject from the givenArrayobject, using the given type map for the custom
 mapping of each element when the elements are SQL UDTs. | |
| SerialBlob(Blob blob)Constructs a  SerialBlobobject that is a serialized
 version of the givenBlobobject. | |
| SerialBlob(byte[] b)Constructs a  SerialBlobobject that is a serialized version of
 the givenbytearray. | |
| SerialClob(char[] ch)Constructs a  SerialClobobject that is a serialized version of
 the givenchararray. | |
| SerialClob(Clob clob)Constructs a  SerialClobobject that is a serialized
 version of the givenClobobject. | |
| SerialDatalink(URL url)Constructs a new  SerialDatalinkobject from the givenjava.net.URLobject. | |
| SerialJavaObject(Object obj)Constructor for  SerialJavaObjecthelper class. | |
| SerialRef(Ref ref)Constructs a  SerialRefobject from the givenRefobject. | |
| SerialStruct(SQLData in,
            Map<String,Class<?>> map)Constructs a  SerialStructobject from the
 givenSQLDataobject, using the given type
 map to custom map it to a class in the Java programming
 language. | |
| SerialStruct(Struct in,
            Map<String,Class<?>> map)Constructs a  SerialStructobject from the givenStructobject, using the givenjava.util.Mapobject for custom mapping the SQL structured type or any of its
 attributes that are SQL structured types. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.