Java Doc for RowSetMetaData.java in  » 6.0-JDK-Core » sql » javax » 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 » javax.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.sql.RowSetMetaData

All known Subclasses:   javax.sql.rowset.RowSetMetaDataImpl,
RowSetMetaData
public interface RowSetMetaData extends ResultSetMetaData(Code)
An object that contains information about the columns in a RowSet object. This interface is an extension of the ResultSetMetaData interface with methods for setting the values in a RowSetMetaData object. When a RowSetReader object reads data into a RowSet object, it creates a RowSetMetaData object and initializes it using the methods in the RowSetMetaData interface. Then the reader passes the RowSetMetaData object to the rowset.

The methods in this interface are invoked internally when an application calls the method RowSet.execute; an application programmer would not use them directly.
since:
   1.4





Method Summary
 voidsetAutoIncrement(int columnIndex, boolean property)
     Sets whether the designated column is automatically numbered, The default is for a RowSet object's columns not to be automatically numbered.
 voidsetCaseSensitive(int columnIndex, boolean property)
     Sets whether the designated column is case sensitive.
 voidsetCatalogName(int columnIndex, String catalogName)
     Sets the designated column's table's catalog name, if any, to the given String.
 voidsetColumnCount(int columnCount)
     Sets the number of columns in the RowSet object to the given number.
 voidsetColumnDisplaySize(int columnIndex, int size)
     Sets the designated column's normal maximum width in chars to the given int.
 voidsetColumnLabel(int columnIndex, String label)
     Sets the suggested column title for use in printouts and displays, if any, to the given String.
 voidsetColumnName(int columnIndex, String columnName)
     Sets the name of the designated column to the given String.
 voidsetColumnType(int columnIndex, int SQLType)
     Sets the designated column's SQL type to the one given.
 voidsetColumnTypeName(int columnIndex, String typeName)
     Sets the designated column's type name that is specific to the data source, if any, to the given String.
 voidsetCurrency(int columnIndex, boolean property)
     Sets whether the designated column is a cash value.
 voidsetNullable(int columnIndex, int property)
     Sets whether the designated column's value can be set to NULL.
 voidsetPrecision(int columnIndex, int precision)
     Sets the designated column's number of decimal digits to the given int.
 voidsetScale(int columnIndex, int scale)
     Sets the designated column's number of digits to the right of the decimal point to the given int.
 voidsetSchemaName(int columnIndex, String schemaName)
     Sets the name of the designated column's table's schema, if any, to the given String.
 voidsetSearchable(int columnIndex, boolean property)
     Sets whether the designated column can be used in a where clause.
 voidsetSigned(int columnIndex, boolean property)
     Sets whether the designated column is a signed number.
 voidsetTableName(int columnIndex, String tableName)
     Sets the designated column's table name, if any, to the given String.



Method Detail
setAutoIncrement
void setAutoIncrement(int columnIndex, boolean property) throws SQLException(Code)
Sets whether the designated column is automatically numbered, The default is for a RowSet object's columns not to be automatically numbered.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  property - true if the column is automaticallynumbered; false if it is not
exception:
  SQLException - if a database access error occurs



setCaseSensitive
void setCaseSensitive(int columnIndex, boolean property) throws SQLException(Code)
Sets whether the designated column is case sensitive. The default is false.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  property - true if the column is case sensitive;false if it is not
exception:
  SQLException - if a database access error occurs



setCatalogName
void setCatalogName(int columnIndex, String catalogName) throws SQLException(Code)
Sets the designated column's table's catalog name, if any, to the given String.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  catalogName - the column's catalog name
exception:
  SQLException - if a database access error occurs



setColumnCount
void setColumnCount(int columnCount) throws SQLException(Code)
Sets the number of columns in the RowSet object to the given number.
Parameters:
  columnCount - the number of columns in the RowSet object
exception:
  SQLException - if a database access error occurs



setColumnDisplaySize
void setColumnDisplaySize(int columnIndex, int size) throws SQLException(Code)
Sets the designated column's normal maximum width in chars to the given int.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  size - the normal maximum number of characters for the designated column
exception:
  SQLException - if a database access error occurs



setColumnLabel
void setColumnLabel(int columnIndex, String label) throws SQLException(Code)
Sets the suggested column title for use in printouts and displays, if any, to the given String.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  label - the column title
exception:
  SQLException - if a database access error occurs



setColumnName
void setColumnName(int columnIndex, String columnName) throws SQLException(Code)
Sets the name of the designated column to the given String.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  columnName - the designated column's name
exception:
  SQLException - if a database access error occurs



setColumnType
void setColumnType(int columnIndex, int SQLType) throws SQLException(Code)
Sets the designated column's SQL type to the one given.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  SQLType - the column's SQL type
exception:
  SQLException - if a database access error occurs
See Also:   Types



setColumnTypeName
void setColumnTypeName(int columnIndex, String typeName) throws SQLException(Code)
Sets the designated column's type name that is specific to the data source, if any, to the given String.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  typeName - data source specific type name.
exception:
  SQLException - if a database access error occurs



setCurrency
void setCurrency(int columnIndex, boolean property) throws SQLException(Code)
Sets whether the designated column is a cash value. The default is false.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  property - true if the column is a cash value;false if it is not
exception:
  SQLException - if a database access error occurs



setNullable
void setNullable(int columnIndex, int property) throws SQLException(Code)
Sets whether the designated column's value can be set to NULL. The default is ResultSetMetaData.columnNullableUnknown
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  property - one of the following constants:ResultSetMetaData.columnNoNulls, ResultSetMetaData.columnNullable, orResultSetMetaData.columnNullableUnknown
exception:
  SQLException - if a database access error occurs



setPrecision
void setPrecision(int columnIndex, int precision) throws SQLException(Code)
Sets the designated column's number of decimal digits to the given int.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  precision - the total number of decimal digits
exception:
  SQLException - if a database access error occurs



setScale
void setScale(int columnIndex, int scale) throws SQLException(Code)
Sets the designated column's number of digits to the right of the decimal point to the given int.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  scale - the number of digits to right of decimal point
exception:
  SQLException - if a database access error occurs



setSchemaName
void setSchemaName(int columnIndex, String schemaName) throws SQLException(Code)
Sets the name of the designated column's table's schema, if any, to the given String.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  schemaName - the schema name
exception:
  SQLException - if a database access error occurs



setSearchable
void setSearchable(int columnIndex, boolean property) throws SQLException(Code)
Sets whether the designated column can be used in a where clause. The default is false.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  property - true if the column can be used in a WHERE clause; false if it cannot
exception:
  SQLException - if a database access error occurs



setSigned
void setSigned(int columnIndex, boolean property) throws SQLException(Code)
Sets whether the designated column is a signed number. The default is false.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  property - true if the column is a signed number;false if it is not
exception:
  SQLException - if a database access error occurs



setTableName
void setTableName(int columnIndex, String tableName) throws SQLException(Code)
Sets the designated column's table name, if any, to the given String.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  tableName - the column's table name
exception:
  SQLException - if a database access error occurs



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