|
Préférences
Moteurs de recherche
|
|||||||||||||||
| JavaTM 2 Platform Std. Ed. v1.6.0
javax.sql.rowset.serial
|
||||||||||||||||
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
Object[] |
getAttributes()
Retrieves an array of Object values containing the
attributes of the SQL structured type that this
SerialStruct object represents. |
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. |
String |
getSQLTypeName()
Retrieves the SQL type name for this SerialStruct
object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SerialStruct(Struct in, Map<String,Class<?>> map) throws SerialException
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.
map - a java.util.Map object in which
each entry consists of 1) a String object
giving the fully qualified name of a UDT and 2) the
Class object for the SQLData implementation
that defines how the UDT is to be mapped
SerialException - if an error occursStructpublic SerialStruct(SQLData in, Map<String,Class<?>> map) throws SerialException
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.
in - an instance of the SQLData class
that defines the mapping of the SQL structured
type to one or more objects in the Java programming languagemap - a java.util.Map object in which
each entry consists of 1) a String object
giving the fully qualified name of a UDT and 2) the
Class object for the SQLData implementation
that defines how the UDT is to be mapped
SerialException - if an error occurs| Method Detail |
|---|
public String getSQLTypeName() throws SerialException
SerialStruct
object. This is the name used in the SQL definition of the
structured type
getSQLTypeName in interface StructString object representing the SQL
type name for the SQL structured type that this
SerialStruct object represents
SerialException - if an error occurspublic Object[] getAttributes() throws SerialException
Object values containing the
attributes of the SQL structured type that this
SerialStruct object represents.
getAttributes in interface StructObject values, with each
element being an attribute of the SQL structured type
that this SerialStruct object represents
SerialException - if an error occurspublic Object[] getAttributes(Map<String,Class<?>> map) throws SerialException
SerialStruct represents as an array of
Object values, using the given type map for
custom mapping if appropriate.
getAttributes in interface Structmap - a java.util.Map object in which
each entry consists of 1) a String object
giving the fully qualified name of a UDT and 2) the
Class object for the SQLData implementation
that defines how the UDT is to be mapped
Object values, with each
element being an attribute of the SQL structured
type that this SerialStruct object
represents
SerialException - if an error occurs