63
64
65 /**
66 * The SQL type name for the structured type that this
67 * <code>SerialStruct</code> object represents. This is the name
68 * used in the SQL definition of the SQL structured type.
69 *
70 * @serial
71 */
72 private String SQLTypeName;
73
74 /**
75 * An array of <code>Object</code> instances in which each
76 * element is an attribute of the SQL structured type that this
77 * <code>SerialStruct</code> object represents. The attributes are
78 * ordered according to their order in the definition of the
79 * SQL structured type.
80 *
81 * @serial
82 */
83 private Object attribs[];
84
85 /**
86 * Constructs a <code>SerialStruct</code> object from the given
87 * <code>Struct</code> object, using the given <code>java.util.Map</code>
88 * object for custom mapping the SQL structured type or any of its
89 * attributes that are SQL structured types.
90 *
91 * @param in an instance of {@code Struct}
92 * @param map a <code>java.util.Map</code> object in which
93 * each entry consists of 1) a <code>String</code> object
94 * giving the fully qualified name of a UDT and 2) the
95 * <code>Class</code> object for the <code>SQLData</code> implementation
96 * that defines how the UDT is to be mapped
97 * @throws SerialException if an error occurs
98 * @see java.sql.Struct
99 */
100 public SerialStruct(Struct in, Map<String,Class<?>> map)
101 throws SerialException
102 {
|
63
64
65 /**
66 * The SQL type name for the structured type that this
67 * <code>SerialStruct</code> object represents. This is the name
68 * used in the SQL definition of the SQL structured type.
69 *
70 * @serial
71 */
72 private String SQLTypeName;
73
74 /**
75 * An array of <code>Object</code> instances in which each
76 * element is an attribute of the SQL structured type that this
77 * <code>SerialStruct</code> object represents. The attributes are
78 * ordered according to their order in the definition of the
79 * SQL structured type.
80 *
81 * @serial
82 */
83 @SuppressWarnings("serial") // Not statically typed as Serializable
84 private Object attribs[];
85
86 /**
87 * Constructs a <code>SerialStruct</code> object from the given
88 * <code>Struct</code> object, using the given <code>java.util.Map</code>
89 * object for custom mapping the SQL structured type or any of its
90 * attributes that are SQL structured types.
91 *
92 * @param in an instance of {@code Struct}
93 * @param map a <code>java.util.Map</code> object in which
94 * each entry consists of 1) a <code>String</code> object
95 * giving the fully qualified name of a UDT and 2) the
96 * <code>Class</code> object for the <code>SQLData</code> implementation
97 * that defines how the UDT is to be mapped
98 * @throws SerialException if an error occurs
99 * @see java.sql.Struct
100 */
101 public SerialStruct(Struct in, Map<String,Class<?>> map)
102 throws SerialException
103 {
|