Java Doc for ParameterMetaData.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.ParameterMetaData

ParameterMetaData
public interface ParameterMetaData extends Wrapper(Code)
An object that can be used to get information about the types and properties for each parameter marker in a PreparedStatement object. For some queries and driver implementations, the data that would be returned by a ParameterMetaData object may not be available until the PreparedStatement has been executed.

Some driver implementations may not be able to provide information about the types and properties for each parameter marker in a CallableStatement object.
since:
   1.4



Field Summary
 intparameterModeIn
     The constant indicating that the parameter's mode is IN.
 intparameterModeInOut
     The constant indicating that the parameter's mode is INOUT.
 intparameterModeOut
     The constant indicating that the parameter's mode is OUT.
 intparameterModeUnknown
     The constant indicating that the mode of the parameter is unknown.
 intparameterNoNulls
     The constant indicating that a parameter will not allow NULL values.
 intparameterNullable
     The constant indicating that a parameter will allow NULL values.
 intparameterNullableUnknown
     The constant indicating that the nullability of a parameter is unknown.


Method Summary
 StringgetParameterClassName(int param)
     Retrieves the fully-qualified name of the Java class whose instances should be passed to the method PreparedStatement.setObject.
Parameters:
  param - the first parameter is 1, the second is 2, ...
 intgetParameterCount()
     Retrieves the number of parameters in the PreparedStatement object for which this ParameterMetaData object contains information.
 intgetParameterMode(int param)
     Retrieves the designated parameter's mode.
Parameters:
  param - the first parameter is 1, the second is 2, ...
 intgetParameterType(int param)
     Retrieves the designated parameter's SQL type.
Parameters:
  param - the first parameter is 1, the second is 2, ...
 StringgetParameterTypeName(int param)
     Retrieves the designated parameter's database-specific type name.
Parameters:
  param - the first parameter is 1, the second is 2, ...
 intgetPrecision(int param)
     Retrieves the designated parameter's specified column size.

The returned value represents the maximum column size for the given parameter.

 intgetScale(int param)
     Retrieves the designated parameter's number of digits to right of the decimal point. 0 is returned for data types where the scale is not applicable.
Parameters:
  param - the first parameter is 1, the second is 2, ...
 intisNullable(int param)
     Retrieves whether null values are allowed in the designated parameter.
Parameters:
  param - the first parameter is 1, the second is 2, ...
 booleanisSigned(int param)
     Retrieves whether values for the designated parameter can be signed numbers.
Parameters:
  param - the first parameter is 1, the second is 2, ...

Field Detail
parameterModeIn
int parameterModeIn(Code)
The constant indicating that the parameter's mode is IN.



parameterModeInOut
int parameterModeInOut(Code)
The constant indicating that the parameter's mode is INOUT.



parameterModeOut
int parameterModeOut(Code)
The constant indicating that the parameter's mode is OUT.



parameterModeUnknown
int parameterModeUnknown(Code)
The constant indicating that the mode of the parameter is unknown.



parameterNoNulls
int parameterNoNulls(Code)
The constant indicating that a parameter will not allow NULL values.



parameterNullable
int parameterNullable(Code)
The constant indicating that a parameter will allow NULL values.



parameterNullableUnknown
int parameterNullableUnknown(Code)
The constant indicating that the nullability of a parameter is unknown.





Method Detail
getParameterClassName
String getParameterClassName(int param) throws SQLException(Code)
Retrieves the fully-qualified name of the Java class whose instances should be passed to the method PreparedStatement.setObject.
Parameters:
  param - the first parameter is 1, the second is 2, ... the fully-qualified name of the class in the Java programminglanguage that would be used by the method PreparedStatement.setObject to set the value in the specified parameter. This is the class name used for custom mapping.
exception:
  SQLException - if a database access error occurs
since:
   1.4



getParameterCount
int getParameterCount() throws SQLException(Code)
Retrieves the number of parameters in the PreparedStatement object for which this ParameterMetaData object contains information. the number of parameters
exception:
  SQLException - if a database access error occurs
since:
   1.4



getParameterMode
int getParameterMode(int param) throws SQLException(Code)
Retrieves the designated parameter's mode.
Parameters:
  param - the first parameter is 1, the second is 2, ... mode of the parameter; one of ParameterMetaData.parameterModeIn,ParameterMetaData.parameterModeOut, orParameterMetaData.parameterModeInOutParameterMetaData.parameterModeUnknown.
exception:
  SQLException - if a database access error occurs
since:
   1.4



getParameterType
int getParameterType(int param) throws SQLException(Code)
Retrieves the designated parameter's SQL type.
Parameters:
  param - the first parameter is 1, the second is 2, ... SQL type from java.sql.Types
exception:
  SQLException - if a database access error occurs
since:
   1.4
See Also:   Types



getParameterTypeName
String getParameterTypeName(int param) throws SQLException(Code)
Retrieves the designated parameter's database-specific type name.
Parameters:
  param - the first parameter is 1, the second is 2, ... type the name used by the database. If the parameter type isa user-defined type, then a fully-qualified type name is returned.
exception:
  SQLException - if a database access error occurs
since:
   1.4



getPrecision
int getPrecision(int param) throws SQLException(Code)
Retrieves the designated parameter's specified column size.

The returned value represents the maximum column size for the given parameter. For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, this is the length in bytes. 0 is returned for data types where the column size is not applicable.
Parameters:
  param - the first parameter is 1, the second is 2, ... precision
exception:
  SQLException - if a database access error occurs
since:
   1.4




getScale
int getScale(int param) throws SQLException(Code)
Retrieves the designated parameter's number of digits to right of the decimal point. 0 is returned for data types where the scale is not applicable.
Parameters:
  param - the first parameter is 1, the second is 2, ... scale
exception:
  SQLException - if a database access error occurs
since:
   1.4



isNullable
int isNullable(int param) throws SQLException(Code)
Retrieves whether null values are allowed in the designated parameter.
Parameters:
  param - the first parameter is 1, the second is 2, ... the nullability status of the given parameter; one of ParameterMetaData.parameterNoNulls, ParameterMetaData.parameterNullable, or ParameterMetaData.parameterNullableUnknown
exception:
  SQLException - if a database access error occurs
since:
   1.4



isSigned
boolean isSigned(int param) throws SQLException(Code)
Retrieves whether values for the designated parameter can be signed numbers.
Parameters:
  param - the first parameter is 1, the second is 2, ... true if so; false otherwise
exception:
  SQLException - if a database access error occurs
since:
   1.4



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