Java Doc for ParameterMetaData.java in  » Apache-Harmony-Java-SE » java-package » java » sql » Java Source Code / Java DocumentationJava Source Code and Java Documentation

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 geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » java package » java.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.sql.ParameterMetaData

ParameterMetaData
public interface ParameterMetaData (Code)
An interface used to get information about the types and properties of parameters in a PreparedStatement object.


Field Summary
final public static  intparameterModeIn
     Indicates that the parameter mode is IN.
final public static  intparameterModeInOut
     Indicates that the parameter mode is INOUT.
final public static  intparameterModeOut
     Indicates that the parameter mode is OUT.
final public static  intparameterModeUnknown
     Indicates that the parameter mode is not known.
final public static  intparameterNoNulls
     Indicates that a parameter is not permitted to be NULL.
final public static  intparameterNullable
     Indicates that a parameter is permitted to be NULL.
final public static  intparameterNullableUnknown
     Indicates that whether a parameter is allowed to be null or not is not known.


Method Summary
public  StringgetParameterClassName(int paramIndex)
     Gets the fully-qualified name of the Java class which should be passed as a parameter to the method PreparedStatement.setObject.
Parameters:
  paramIndex - the index number of the parameter, where the first parameterhas an index of 1 a String with the fully qualified Java class name of theparameter with the specified index.
public  intgetParameterCount()
     Gets the number of parameters in the PreparedStatement for which this ParameterMetaData contains information.
public  intgetParameterMode(int paramIndex)
     Gets the mode of the specified parameter.
Parameters:
  paramIndex - the index number of the parameter, where the first parameterhas an index of 1 the parameters mode.
public  intgetParameterType(int paramIndex)
     Gets the SQL type of a specified parameter.
public  StringgetParameterTypeName(int paramIndex)
     Gets the database-specific type name of a specified parameter.
Parameters:
  paramIndex - the index number of the parameter, where the first parameterhas an index of 1 the type name for the parameter as used by the database.
public  intgetPrecision(int paramIndex)
     Gets the number of decimal digits for a specified parameter.
public  intgetScale(int paramIndex)
     Gets the number of digits after the decimal point for a specified parameter.
Parameters:
  paramIndex - the index number of the parameter, where the first parameterhas an index of 1 the number of digits after the decimal point ("the scale") forthe parameter.
public  intisNullable(int paramIndex)
     Gets whether null values are allowed for the specified parameter.
public  booleanisSigned(int paramIndex)
     Gets whether values for the specified parameter can be signed numbers.

Field Detail
parameterModeIn
final public static int parameterModeIn(Code)
Indicates that the parameter mode is IN.



parameterModeInOut
final public static int parameterModeInOut(Code)
Indicates that the parameter mode is INOUT.



parameterModeOut
final public static int parameterModeOut(Code)
Indicates that the parameter mode is OUT.



parameterModeUnknown
final public static int parameterModeUnknown(Code)
Indicates that the parameter mode is not known.



parameterNoNulls
final public static int parameterNoNulls(Code)
Indicates that a parameter is not permitted to be NULL.



parameterNullable
final public static int parameterNullable(Code)
Indicates that a parameter is permitted to be NULL.



parameterNullableUnknown
final public static int parameterNullableUnknown(Code)
Indicates that whether a parameter is allowed to be null or not is not known.





Method Detail
getParameterClassName
public String getParameterClassName(int paramIndex) throws SQLException(Code)
Gets the fully-qualified name of the Java class which should be passed as a parameter to the method PreparedStatement.setObject.
Parameters:
  paramIndex - the index number of the parameter, where the first parameterhas an index of 1 a String with the fully qualified Java class name of theparameter with the specified index. This class name is used forcustom mapping.
throws:
  SQLException - if a database error happens



getParameterCount
public int getParameterCount() throws SQLException(Code)
Gets the number of parameters in the PreparedStatement for which this ParameterMetaData contains information. the number of parameters as an int
throws:
  SQLException - if a database error happens



getParameterMode
public int getParameterMode(int paramIndex) throws SQLException(Code)
Gets the mode of the specified parameter.
Parameters:
  paramIndex - the index number of the parameter, where the first parameterhas an index of 1 the parameters mode. Can be: ParameterMetaData.parameterModeIn,ParameterMetaData.parameterModeOut,ParameterMetaData.parameterModeInOut orParameterMetaData.parameterModeUnknown.
throws:
  SQLException - if a database error happens



getParameterType
public int getParameterType(int paramIndex) throws SQLException(Code)
Gets the SQL type of a specified parameter.
Parameters:
  paramIndex - the index number of the parameter, where the first parameterhas an index of 1 the type of the parameter - an SQL type as defined injava.sql.Types.
throws:
  SQLException - if a database error happens



getParameterTypeName
public String getParameterTypeName(int paramIndex) throws SQLException(Code)
Gets the database-specific type name of a specified parameter.
Parameters:
  paramIndex - the index number of the parameter, where the first parameterhas an index of 1 the type name for the parameter as used by the database. Afully-qualified name is returned if the parameter is a UserDefined Type.
throws:
  SQLException - if a database error happens



getPrecision
public int getPrecision(int paramIndex) throws SQLException(Code)
Gets the number of decimal digits for a specified parameter.
Parameters:
  paramIndex - the index number of the parameter, where the first parameterhas an index of 1 the number of decimal digits ("the precision") for the parameter.0 if the parameter is not a numeric type.
throws:
  SQLException - if a database error happens



getScale
public int getScale(int paramIndex) throws SQLException(Code)
Gets the number of digits after the decimal point for a specified parameter.
Parameters:
  paramIndex - the index number of the parameter, where the first parameterhas an index of 1 the number of digits after the decimal point ("the scale") forthe parameter. 0 if the parameter is not a numeric type.
throws:
  SQLException - if a database error happens



isNullable
public int isNullable(int paramIndex) throws SQLException(Code)
Gets whether null values are allowed for the specified parameter.
Parameters:
  paramIndex - the index number of the parameter, where the first parameterhas an index of 1 indicator of nullability, can be:ParameterMetaData.parameterNoNulls,ParameterMetaData.parameterNullable, orParameterMetaData.parameterNullableUnknown
throws:
  SQLException - if a database error is encountered



isSigned
public boolean isSigned(int paramIndex) throws SQLException(Code)
Gets whether values for the specified parameter can be signed numbers.
Parameters:
  paramIndex - the index number of the parameter, where the first parameterhas an index of 1 true if values can be signed numbers for this parameter, falseotherwise.
throws:
  SQLException - if a database error happens



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