| java.lang.Object javax.sql.rowset.serial.SerialStruct
SerialStruct | public class SerialStruct implements Struct,Serializable,Cloneable(Code) | | A serialized mapping in the Java programming language of an SQL
structured type. Each attribute that is not already serialized
is mapped to a serialized form, and if an attribute is itself
a structured type, each of its attributes that is not already
serialized is mapped to a serialized form.
In addition, the structured type is custom mapped to a class in the
Java programming language if there is such a mapping, as are
its attributes, if appropriate.
The SerialStruct class provides a constructor for creating
an instance from a Struct object, a method for retrieving
the SQL type name of the SQL structured type in the database, and methods
for retrieving its attribute values.
|
Field Summary | |
final static long | serialVersionUID The identifier that assists in the serialization of this
SerialStruct object. |
Constructor Summary | |
public | 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. | public | 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. |
Method Summary | |
public Object[] | getAttributes() Retrieves an array of Object values containing the
attributes of the SQL structured type that this
SerialStruct object represents. | public Object[] | 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. | public String | getSQLTypeName() Retrieves the SQL type name for this SerialStruct
object. |
serialVersionUID | final static long serialVersionUID(Code) | | The identifier that assists in the serialization of this
SerialStruct object.
|
SerialStruct | public SerialStruct(Struct in, Map<String, Class<?>> map) throws SerialException(Code) | | 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.
Parameters: map - a java.util.Map object in whicheach entry consists of 1) a String objectgiving the fully qualified name of a UDT and 2) theClass object for the SQLData implementationthat defines how the UDT is to be mapped throws: SerialException - if an error occurs See Also: java.sql.Struct |
SerialStruct | public SerialStruct(SQLData in, Map<String, Class<?>> map) throws SerialException(Code) | | 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. The type map gives the SQL type and the class
to which it is mapped. The SQLData object
defines the class to which the SQL type will be mapped.
Parameters: in - an instance of the SQLData classthat defines the mapping of the SQL structuredtype to one or more objects in the Java programming language Parameters: map - a java.util.Map object in whicheach entry consists of 1) a String objectgiving the fully qualified name of a UDT and 2) theClass object for the SQLData implementationthat defines how the UDT is to be mapped throws: SerialException - if an error occurs |
getAttributes | public Object[] getAttributes() throws SerialException(Code) | | Retrieves an array of Object values containing the
attributes of the SQL structured type that this
SerialStruct object represents.
an array of Object values, with eachelement being an attribute of the SQL structured typethat this SerialStruct object represents throws: SerialException - if an error occurs |
getAttributes | public Object[] getAttributes(Map<String, Class<?>> map) throws SerialException(Code) | | 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.
Parameters: map - a java.util.Map object in whicheach entry consists of 1) a String objectgiving the fully qualified name of a UDT and 2) theClass object for the SQLData implementationthat defines how the UDT is to be mapped an array of Object values, with eachelement being an attribute of the SQL structuredtype that this SerialStruct objectrepresents throws: SerialException - if an error occurs |
getSQLTypeName | public String getSQLTypeName() throws SerialException(Code) | | Retrieves the SQL type name for this SerialStruct
object. This is the name used in the SQL definition of the
structured type
a String object representing the SQLtype name for the SQL structured type that thisSerialStruct object represents throws: SerialException - if an error occurs |
|
|