javax.sql.rowset.serial

Class SerialJavaObject

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class SerialJavaObject
    extends Object
    implements Serializable, Cloneable
    A serializable mapping in the Java programming language of an SQL JAVA_OBJECT value. Assuming the Java object implements the Serializable interface, this class simply wraps the serialization process.

    If however, the serialization is not possible because the Java object is not immediately serializable, this class will attempt to serialize all non-static members to permit the object state to be serialized. Static or transient fields cannot be serialized; an attempt to serialize them will result in a SerialException object being thrown.

    See Also:
    Serialized Form
    • Constructor Detail

      • SerialJavaObject

        public SerialJavaObject(Object obj)
                         throws SerialException
        Constructor for SerialJavaObject helper class.

        Parameters:
        obj - the Java Object to be serialized
        Throws:
        SerialException - if the object is found not to be serializable
    • Method Detail

      • getObject

        public Object getObject()
                         throws SerialException
        Returns an Object that is a copy of this SerialJavaObject object.
        Returns:
        a copy of this SerialJavaObject object as an Object in the Java programming language
        Throws:
        SerialException - if the instance is corrupt
      • getFields

        public Field[] getFields()
                          throws SerialException
        Returns an array of Field objects that contains each field of the object that this helper class is serializing.
        Returns:
        an array of Field objects
        Throws:
        SerialException - if an error is encountered accessing the serialized object
        See Also:
        Class.getFields()

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 07/12/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/sql/rowset/serial/serialjavaobject.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, SerialJavaObject

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut