Uses of Class
javax.sql.rowset.serial.SerialException
-
Packages that use SerialException Package Description javax.sql.rowset.serial Provides utility classes to allow serializable mappings between SQL types and data types in the Java programming language. -
-
Uses of SerialException in javax.sql.rowset.serial
Methods in javax.sql.rowset.serial that throw SerialException Modifier and Type Method and Description Object
SerialArray. getArray()
Returns a new array that is a copy of thisSerialArray
object.Object
SerialArray. getArray(long index, int count)
Returns a new array that is a copy of a slice of thisSerialArray
object, 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 thisSerialArray
object, 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 thisSerialArray
object, using the given type map for the custom mapping of each element when the elements are SQL UDTs.InputStream
SerialClob. getAsciiStream()
Retrieves theCLOB
value designated by thisSerialClob
object as an ascii stream.Object[]
SerialStruct. getAttributes()
Retrieves an array ofObject
values containing the attributes of the SQL structured type that thisSerialStruct
object represents.Object[]
SerialStruct. getAttributes(Map<String,Class<?>> map)
Retrieves the attributes for the SQL structured type that thisSerialStruct
represents as an array ofObject
values, using the given type map for custom mapping if appropriate.int
SerialArray. getBaseType()
Retrieves the SQL type of the elements in thisSerialArray
object.String
SerialArray. getBaseTypeName()
Retrieves the DBMS-specific type name for the elements in thisSerialArray
object.String
SerialRef. getBaseTypeName()
Returns a string describing the base type name of theRef
.InputStream
SerialBlob. getBinaryStream()
Returns thisSerialBlob
object as an input stream.byte[]
SerialBlob. getBytes(long pos, int length)
Copies the specified number of bytes, starting at the given position, from thisSerialBlob
object to another array of bytes.Reader
SerialClob. getCharacterStream()
Returns thisSerialClob
object's data as a stream of Unicode characters.URL
SerialDatalink. getDatalink()
Returns a new URL that is a copy of thisSerialDatalink
object.Field[]
SerialJavaObject. getFields()
Returns an array ofField
objects that contains each field of the object that this helper class is serializing.Object
SerialJavaObject. getObject()
Returns anObject
that is a copy of thisSerialJavaObject
object.Object
SerialRef. getObject()
Returns anObject
representing the SQL structured type to which thisSerialRef
object refers.Object
SerialRef. getObject(Map<String,Class<?>> map)
Returns anObject
representing the SQL structured type to which thisSerialRef
object refers.ResultSet
SerialArray. getResultSet()
Retrieves aResultSet
object that contains all of the elements in theARRAY
value that thisSerialArray
object represents.ResultSet
SerialArray. getResultSet(long index, int count)
Retrieves aResultSet
object 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 aResultSet
object that contains a subarray of the elements in thisSerialArray
object, starting at index index and containing up to count successive elements.ResultSet
SerialArray. getResultSet(Map<String,Class<?>> map)
Retrieves aResultSet
object that contains all of the elements of the SQLARRAY
value represented by thisSerialArray
object.String
SerialStruct. getSQLTypeName()
Retrieves the SQL type name for thisSerialStruct
object.String
SerialClob. getSubString(long pos, int length)
Returns a copy of the substring contained in thisSerialClob
object, starting at the given position and continuing for the specified number or characters.long
SerialBlob. length()
Retrieves the number of bytes in thisSerialBlob
object's array of bytes.long
SerialClob. length()
Retrieves the number of characters in thisSerialClob
object's array of characters.long
SerialBlob. position(Blob pattern, long start)
Returns the position in thisSerialBlob
object where the givenBlob
object begins, starting the search at the specified position.long
SerialBlob. position(byte[] pattern, long start)
Returns the position in thisSerialBlob
object 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 thisSerialClob
object where the givenClob
signature begins, starting the search at the specified position.long
SerialClob. position(String searchStr, long start)
Returns the position in thisSerialClob
object where the givenString
object begins, starting the search at the specified position.OutputStream
SerialClob. setAsciiStream(long pos)
Retrieves a stream to be used to write Ascii characters to theCLOB
value that thisSerialClob
object represents, starting at positionpos
.OutputStream
SerialBlob. setBinaryStream(long pos)
Retrieves a stream that can be used to write to theBLOB
value that thisBlob
object represents.int
SerialBlob. setBytes(long pos, byte[] bytes)
Writes the given array of bytes to theBLOB
value that thisBlob
object 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 givenbyte
array to theBLOB
value that thisBlob
object 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 theCLOB
value that thisSerialClob
object represents, at positionpos
.void
SerialRef. setObject(Object obj)
Sets the SQL structured type that thisSerialRef
object references to the givenObject
object.int
SerialClob. setString(long pos, String str)
Writes the given JavaString
to theCLOB
value that thisSerialClob
object represents, at the positionpos
.int
SerialClob. setString(long pos, String str, int offset, int length)
Writeslen
characters ofstr
, starting at characteroffset
, to theCLOB
value that thisClob
represents.void
SerialBlob. truncate(long length)
Truncates theBLOB
value that thisBlob
object represents to belen
bytes in length.void
SerialClob. truncate(long length)
Truncates theCLOB
value that thisSerialClob
object represents so that it has a length oflen
characters.Constructors in javax.sql.rowset.serial that throw SerialException Constructor and Description SerialArray(Array array)
Constructs a newSerialArray
object from the givenArray
object.SerialArray(Array array, Map<String,Class<?>> map)
Constructs a newSerialArray
object from the givenArray
object, using the given type map for the custom mapping of each element when the elements are SQL UDTs.SerialBlob(Blob blob)
Constructs aSerialBlob
object that is a serialized version of the givenBlob
object.SerialBlob(byte[] b)
Constructs aSerialBlob
object that is a serialized version of the givenbyte
array.SerialClob(char[] ch)
Constructs aSerialClob
object that is a serialized version of the givenchar
array.SerialClob(Clob clob)
Constructs aSerialClob
object that is a serialized version of the givenClob
object.SerialDatalink(URL url)
Constructs a newSerialDatalink
object from the givenjava.net.URL
object.SerialJavaObject(Object obj)
Constructor forSerialJavaObject
helper class.SerialRef(Ref ref)
Constructs aSerialRef
object from the givenRef
object.SerialStruct(SQLData in, Map<String,Class<?>> map)
Constructs aSerialStruct
object from the givenSQLData
object, 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 aSerialStruct
object from the givenStruct
object, using the givenjava.util.Map
object 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, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.