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 and Description |
---|---|
Object |
SerialArray.getArray()
Returns a new array that is a copy of this
SerialArray
object. |
Object |
SerialArray.getArray(long index,
int count)
Returns a new array that is a copy of a slice
of this
SerialArray 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 this
SerialArray 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 this
SerialArray
object, using the given type map for the custom
mapping of each element when the elements are SQL UDTs. |
InputStream |
SerialClob.getAsciiStream()
Retrieves the
CLOB value designated by this SerialClob
object as an ascii stream. |
Object[] |
SerialStruct.getAttributes()
Retrieves an array of
Object values containing the
attributes of the SQL structured type that this
SerialStruct object represents. |
Object[] |
SerialStruct.getAttributes(Map<String,Class<?>> map)
Retrieves the attributes for the SQL structured type that
this
SerialStruct represents as an array of
Object values, using the given type map for
custom mapping if appropriate. |
int |
SerialArray.getBaseType()
Retrieves the SQL type of the elements in this
SerialArray
object. |
String |
SerialRef.getBaseTypeName()
Returns a string describing the base type name of the
Ref . |
String |
SerialArray.getBaseTypeName()
Retrieves the DBMS-specific type name for the elements in this
SerialArray object. |
InputStream |
SerialBlob.getBinaryStream()
Returns this
SerialBlob object as an input stream. |
byte[] |
SerialBlob.getBytes(long pos,
int length)
Copies the specified number of bytes, starting at the given
position, from this
SerialBlob object to
another array of bytes. |
Reader |
SerialClob.getCharacterStream()
Returns this
SerialClob object's data as a stream
of Unicode characters. |
URL |
SerialDatalink.getDatalink()
Returns a new URL that is a copy of this
SerialDatalink
object. |
Field[] |
SerialJavaObject.getFields()
Returns an array of
Field objects that contains each
field of the object that this helper class is serializing. |
Object |
SerialRef.getObject()
Returns an
Object representing the SQL structured type
to which this SerialRef object refers. |
Object |
SerialJavaObject.getObject()
Returns an
Object that is a copy of this SerialJavaObject
object. |
Object |
SerialRef.getObject(Map<String,Class<?>> map)
Returns an
Object representing the SQL structured type
to which this SerialRef object refers. |
ResultSet |
SerialArray.getResultSet()
Retrieves a
ResultSet object that contains all of
the elements in the ARRAY value that this
SerialArray object represents. |
ResultSet |
SerialArray.getResultSet(long index,
int count)
Retrieves a
ResultSet 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 a
ResultSet object that contains a subarray of the
elements in this SerialArray object, starting at
index index and containing up to count successive
elements. |
ResultSet |
SerialArray.getResultSet(Map<String,Class<?>> map)
Retrieves a
ResultSet object that contains all of
the elements of the SQL ARRAY
value represented by this SerialArray object. |
String |
SerialStruct.getSQLTypeName()
Retrieves the SQL type name for this
SerialStruct
object. |
String |
SerialClob.getSubString(long pos,
int length)
Returns a copy of the substring contained in this
SerialClob object, starting at the given position
and continuing for the specified number or characters. |
long |
SerialClob.length()
Retrieves the number of characters in this
SerialClob
object's array of characters. |
long |
SerialBlob.length()
Retrieves the number of bytes in this
SerialBlob
object's array of bytes. |
long |
SerialBlob.position(Blob pattern,
long start)
Returns the position in this
SerialBlob object where
the given Blob object begins, starting the search at the
specified position. |
long |
SerialBlob.position(byte[] pattern,
long start)
Returns the position in this
SerialBlob 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 this
SerialClob object
where the given Clob signature begins, starting
the search at the specified position. |
long |
SerialClob.position(String searchStr,
long start)
Returns the position in this
SerialClob object
where the given String 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 the
CLOB value that this SerialClob object represents,
starting at position pos . |
OutputStream |
SerialBlob.setBinaryStream(long pos)
Retrieves a stream that can be used to write to the
BLOB
value that this Blob object represents. |
int |
SerialBlob.setBytes(long pos,
byte[] bytes)
Writes the given array of bytes to the
BLOB value that
this Blob object represents, starting at position
pos , 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
byte array to the
BLOB value that this Blob 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 the
CLOB value that this SerialClob object
represents, at position pos . |
void |
SerialRef.setObject(Object obj)
Sets the SQL structured type that this
SerialRef object
references to the given Object object. |
int |
SerialClob.setString(long pos,
String str)
Writes the given Java
String to the CLOB
value that this SerialClob object represents, at the position
pos . |
int |
SerialClob.setString(long pos,
String str,
int offset,
int length)
Writes
len characters of str , starting
at character offset , to the CLOB value
that this Clob represents. |
void |
SerialClob.truncate(long length)
Truncates the
CLOB value that this SerialClob
object represents so that it has a length of len
characters. |
void |
SerialBlob.truncate(long length)
Truncates the
BLOB value that this Blob
object represents to be len bytes in length. |
Constructor and Description |
---|
SerialArray(Array array)
Constructs a new
SerialArray object from the given
Array object. |
SerialArray(Array array,
Map<String,Class<?>> map)
Constructs a new
SerialArray object from the given
Array object, using the given type map for the custom
mapping of each element when the elements are SQL UDTs. |
SerialBlob(Blob blob)
Constructs a
SerialBlob object that is a serialized
version of the given Blob object. |
SerialBlob(byte[] b)
Constructs a
SerialBlob object that is a serialized version of
the given byte array. |
SerialClob(char[] ch)
Constructs a
SerialClob object that is a serialized version of
the given char array. |
SerialClob(Clob clob)
Constructs a
SerialClob object that is a serialized
version of the given Clob object. |
SerialDatalink(URL url)
Constructs a new
SerialDatalink object from the given
java.net.URL object. |
SerialJavaObject(Object obj)
Constructor for
SerialJavaObject helper class. |
SerialRef(Ref ref)
Constructs a
SerialRef object from the given Ref
object. |
SerialStruct(SQLData in,
Map<String,Class<?>> map)
Constructs a
SerialStruct object from the
given SQLData 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 a
SerialStruct object from the given
Struct object, using the given java.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, 2011, Oracle and/or its affiliates. All rights reserved.
DRAFT ea-b138