See:
Description
| Class Summary | |
|---|---|
| SerialArray | A serialized version of an Array
object, which is the mapping in the Java programming language of an SQL
ARRAY value. |
| SerialBlob | A serialized mapping in the Java programming language of an SQL
BLOB value. |
| SerialClob | A serialized mapping in the Java programming language of an SQL
CLOB value. |
| SerialDatalink | A serialized mapping in the Java programming language of an SQL
DATALINK value. |
| SerialJavaObject | A serializable mapping in the Java programming language of an SQL
JAVA_OBJECT value. |
| SerialRef | A serialized mapping of a Ref object, which is the mapping in the
Java programming language of an SQL REF value. |
| SerialStruct | A serialized mapping in the Java programming language of an SQL structured type. |
| SQLInputImpl | An input stream used for custom mapping user-defined types (UDTs). |
| SQLOutputImpl | The output stream for writing the attributes of a custom-mapped user-defined type (UDT) back to the database. |
| Exception Summary | |
|---|---|
| SerialException | Indicates and an error with the serialization or de-serialization of
SQL types such as BLOB, CLOB, STRUCT or ARRAY in
addition to SQL types such as DATALINK and JAVAOBJECT |
Provides utility classes to allow serializable mappings between SQL types and data types in the Java programming language.
Standard JDBC RowSet implementations may use these utility
classes to
assist in the serialization of disconnected RowSet objects.
This is useful
when transmitting a disconnected RowSet object over the wire to
a different VM or across layers within an application.
RowSet implementations can use the method RowSet.getURL() to retrieve
a java.net.URL object, which can be used to manipulate the external data.
Map object is passed to one of the constructors or
to the method getAttributes, the structured type is custom mapped
according to the mapping specified in the Map object.
wasNull is used to determine whether the the last value read was SQL NULL.
Map object is called,
the JDBC driver calls the method
SQLData.getSQLType to determine the SQL type of the UDT being custom
mapped. The driver creates an instance of SQLInputImpl, populating it with
the attributes of the UDT. The driver then passes the input stream to the
method SQLData.readSQL, which in turn calls the SQLInputImpl
methods to read the attributes from the input stream. SQLOutputImpl and pass it to the method
SQLData.writeSQL.
The method writeSQL in turn calls the appropriate SQLOutputImpl
writer methods to write data from the SQLData object to the
SQLOutputImpl
output stream as the representation of an SQL user-defined type.
A programmer defines the mapping by implementing the interface SQLData.
For example, if an SQL structured type named AUTHORS has the attributes NAME,
TITLE, and PUBLISHER, it could be mapped to a Java class named Authors. The
Authors class could have the fields name, title, and publisher, to which the
attributes of AUTHORS are mapped. In such a case, the implementation of
SQLData could look like the following:
return sql_type; } sql_type = type; name = stream.readString(); title = stream.readString(); publisher = stream.readString(); } stream.writeString(name); stream.writeString(title); stream.writeString(publisher); } }
java.util.Map object is used to associate the SQL structured
type with its mapping to the class Authors. The following code fragment shows
how a Map object might be created and given an entry associating
AUTHORS and Authors.
Map object map now contains an entry with the
fully qualified name of the SQL structured type and the Class
object for the class Authors. It can be passed to a method
to tell the driver how to map AUTHORS to Authors.
For a disconnected RowSet object, custom mapping can be done
only when a Map object is passed to the method or constructor
that will be doing the custom mapping. The situation is different for
connected RowSet objects because they maintain a connection
with the data source. A method that does custom mapping and is called by
a disconnected RowSet object may use the Map
object that is associated with the Connection object being
used. So, in other words, if no map is specified, the connection's type
map can be used by default.
Ces informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
8 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)