Java Doc for Struct.java in  » 6.0-JDK-Core » sql » java » sql » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » sql » java.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.sql.Struct

All known Subclasses:   javax.sql.rowset.serial.SerialStruct,
Struct
public interface Struct (Code)

The standard mapping in the Java programming language for an SQL structured type. A Struct object contains a value for each attribute of the SQL structured type that it represents. By default, an instance ofStruct is valid as long as the application has a reference to it.

All methods on the Struct interface must be fully implemented if the JDBC driver supports the data type.
since:
   1.2





Method Summary
 Object[]getAttributes()
     Produces the ordered values of the attributes of the SQL structured type that this Struct object represents.
 Object[]getAttributes(java.util.Map<String, Class<?>> map)
     Produces the ordered values of the attributes of the SQL structured type that this Struct object represents. As individual attrbutes are proccessed, this method uses the given type map for customizations of the type mappings. If there is no entry in the given type map that matches the structured type that an attribute represents, the driver uses the standard mapping.
 StringgetSQLTypeName()
     Retrieves the SQL type name of the SQL structured type that this Struct object represents.



Method Detail
getAttributes
Object[] getAttributes() throws SQLException(Code)
Produces the ordered values of the attributes of the SQL structured type that this Struct object represents. As individual attributes are processed, this method uses the type map associated with the connection for customizations of the type mappings. If there is no entry in the connection's type map that matches the structured type that an attribute represents, the driver uses the standard mapping.

Conceptually, this method calls the method getObject on each attribute of the structured type and returns a Java array containing the result. an array containing the ordered attribute values
exception:
  SQLException - if a database access error occurs
exception:
  SQLFeatureNotSupportedException - if the JDBC driver does not supportthis method
since:
   1.2




getAttributes
Object[] getAttributes(java.util.Map<String, Class<?>> map) throws SQLException(Code)
Produces the ordered values of the attributes of the SQL structured type that this Struct object represents. As individual attrbutes are proccessed, this method uses the given type map for customizations of the type mappings. If there is no entry in the given type map that matches the structured type that an attribute represents, the driver uses the standard mapping. This method never uses the type map associated with the connection.

Conceptually, this method calls the method getObject on each attribute of the structured type and returns a Java array containing the result.
Parameters:
  map - a mapping of SQL type names to Java classes an array containing the ordered attribute values
exception:
  SQLException - if a database access error occurs
exception:
  SQLFeatureNotSupportedException - if the JDBC driver does not supportthis method
since:
   1.2




getSQLTypeName
String getSQLTypeName() throws SQLException(Code)
Retrieves the SQL type name of the SQL structured type that this Struct object represents. the fully-qualified type name of the SQL structured type for which this Struct objectis the generic representation
exception:
  SQLException - if a database access error occurs
exception:
  SQLFeatureNotSupportedException - if the JDBC driver does not supportthis method
since:
   1.2



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.