Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
javax.sql.rowset.serial

Class SerialStruct

  • All Implemented Interfaces:
    Serializable, Cloneable, Struct

    public class SerialStruct
    extends Object
    implements Struct, Serializable, Cloneable
    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.

    See Also:
    Serialized Form
    • Constructor Detail

      • SerialStruct

        public SerialStruct(Struct in,
                    Map<String,Class<?>> map)
                     throws SerialException
        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 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
        Throws:
        SerialException - if an error occurs
        See Also:
        Struct
      • SerialStruct

        public SerialStruct(SQLData in,
                    Map<String,Class<?>> map)
                     throws SerialException
        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 class that defines the mapping of the SQL structured type to one or more objects in the Java programming language
        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
        Throws:
        SerialException - if an error occurs
    • Method Detail

      • getSQLTypeName

        public String getSQLTypeName()
                              throws SerialException
        Retrieves the SQL type name for this SerialStruct object. This is the name used in the SQL definition of the structured type
        Specified by:
        getSQLTypeName in interface Struct
        Returns:
        a String object representing the SQL type name for the SQL structured type that this SerialStruct object represents
        Throws:
        SerialException - if an error occurs
      • getAttributes

        public Object[] getAttributes()
                               throws SerialException
        Retrieves an array of Object values containing the attributes of the SQL structured type that this SerialStruct object represents.
        Specified by:
        getAttributes in interface Struct
        Returns:
        an array of Object values, with each element being an attribute of the SQL structured type that this SerialStruct object represents
        Throws:
        SerialException - if an error occurs
      • getAttributes

        public Object[] getAttributes(Map<String,Class<?>> map)
                               throws SerialException
        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.
        Specified by:
        getAttributes in interface Struct
        Parameters:
        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
        Returns:
        an array of Object values, with each element being an attribute of the SQL structured type that this SerialStruct object represents
        Throws:
        SerialException - if an error occurs

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-javax/sql/rowset/serial/serialstruct.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut