Serializable, Cloneable, Struct
public class SerialStruct extends Object implements Struct, Serializable, Cloneable
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. 
| Constructor | Description | 
|---|---|
| SerialStruct | Constructs a  SerialStructobject from the givenSQLDataobject, using the given type map to custom map it to a class in the Java programming language. | 
| SerialStruct | Constructs a  SerialStructobject from the givenStructobject, using the givenjava.util.Mapobject for custom mapping the SQL structured type or any of its attributes that are SQL structured types. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Object | clone() | Returns a clone of this  SerialStruct. | 
| boolean | equals | Compares this SerialStruct to the specified object. | 
| Object[] | getAttributes() | Retrieves an array of  Objectvalues containing the attributes of the SQL structured type that thisSerialStructobject represents. | 
| Object[] | getAttributes | Retrieves the attributes for the SQL structured type that this  SerialStructrepresents as an array ofObjectvalues, using the given type map for custom mapping if appropriate. | 
| String | getSQLTypeName() | Retrieves the SQL type name for this  SerialStructobject. | 
| int | hashCode() | Returns a hash code for this  SerialStruct. | 
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.in - an instance of Struct
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 mappedSerialException - if an error occurspublic 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 mappedSerialException - if an error occurspublic String getSQLTypeName() throws SerialException
SerialStruct object. This is the name used in the SQL definition of the structured typegetSQLTypeName in interface Struct
String object representing the SQL type name for the SQL structured type that this SerialStruct object representsSerialException - 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 Struct
Object values, with each element being an attribute of the SQL structured type that this SerialStruct object representsSerialException - 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 Struct
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 mappedObject values, with each element being an attribute of the SQL structured type that this SerialStruct object representsSerialException - if an error occurspublic boolean equals(Object obj)
true if and only if the argument is not null and is a SerialStruct object whose attributes are identical to this object's attributespublic int hashCode()
SerialStruct. The hash code for a SerialStruct object is computed using the hash codes of the attributes of the SerialStruct object and its SQLTypeName
public Object clone()
SerialStruct. The copy will contain a reference to a clone of the underlying attribs array, not a reference to the original underlying attribs array of this SerialStruct object.
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.sql.rowset/javax/sql/rowset/serial/SerialStruct.html