Java Doc for BaseRowSetX.java in  » IDE-Netbeans » visualweb.api.designer » com » sun » sql » rowset » 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 » IDE Netbeans » visualweb.api.designer » com.sun.sql.rowset 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.sql.rowset.BaseRowSet
      com.sun.sql.rowset.BaseRowSetX

All known Subclasses:   com.sun.sql.rowset.CachedRowSetXImpl5,
BaseRowSetX
abstract public class BaseRowSetX extends BaseRowSet (Code)
An abstract class extending javax.sql.rowset.BaseRowSet which contains changes necessary to support using RowSets as java beans.




Method Summary
public  intgetFetchDirection()
     Retrieves this RowSet object's current setting for the fetch direction.
public  intgetFetchSize()
     Returns the fetch size for this RowSet object.
public  intgetMaxRows()
     Retrieves the maximum number of rows that this RowSet object may contain.
public  voidsetCommand(String cmd)
     Sets this RowSet object's command property to the given String object and clears the parameters, if any, that were set for the previous command.
public  voidsetDataSourceName(String name)
     Sets the DataSource name property for this RowSet object to the given logical name and sets this RowSet object's Url property to null.
public  voidsetFetchDirection(int direction)
     Gives the driver a performance hint as to the direction in which the rows in this RowSet object will be processed.
public  voidsetFetchSize(int rows)
     Sets the fetch size for this RowSet object to the given number of rows.
public  voidsetMaxRows(int max)
     Sets the maximum number of rows that this RowSet object may contain to the given number.
public  voidsetUrl(String url)
     Sets the Url property for this RowSet object to the given String object and sets the dataSource name property to null.



Method Detail
getFetchDirection
public int getFetchDirection() throws SQLException(Code)
Retrieves this RowSet object's current setting for the fetch direction. The default type is ResultSet.FETCH_FORWARD one of ResultSet.FETCH_FORWARD,ResultSet.FETCH_REVERSE, orResultSet.FETCH_UNKNOWN
throws:
  SQLException - if an error occurs in determining the current fetch direction for fetching rows
See Also:   BaseRowSetX.setFetchDirection



getFetchSize
public int getFetchSize() throws SQLException(Code)
Returns the fetch size for this RowSet object. The default value is zero. the number of rows suggested as the fetch size when this RowSet object needs more rows from the database
throws:
  SQLException - if an error occurs determining the number of rows in thecurrent fetch size
See Also:   BaseRowSetX.setFetchSize



getMaxRows
public int getMaxRows() throws SQLException(Code)
Retrieves the maximum number of rows that this RowSet object may contain. If this limit is exceeded, the excess rows are silently dropped. an int indicating the current maximum number ofrows; zero means that there is no limit
throws:
  SQLException - if an error occurs internally determining themaximum limit of rows that a Rowset object can contain



setCommand
public void setCommand(String cmd) throws SQLException(Code)
Sets this RowSet object's command property to the given String object and clears the parameters, if any, that were set for the previous command.

The command property may not be needed if the RowSet object gets its data from a source that does not support commands, such as a spreadsheet or other tabular file. Thus, this property is optional and may be null.
Parameters:
  cmd - a String object containing an SQL querythat will be set as this RowSet object's commandproperty; may be null but may not be an empty string
throws:
  SQLException - if an empty string is provided as the command value
See Also:   BaseRowSetX.getCommand




setDataSourceName
public void setDataSourceName(String name) throws SQLException(Code)
Sets the DataSource name property for this RowSet object to the given logical name and sets this RowSet object's Url property to null. The name must have been bound to a DataSource object in a JNDI naming service so that an application can do a lookup using that name to retrieve the DataSource object bound to it. The DataSource object can then be used to establish a connection to the data source it represents.

Users should set either the Url property or the dataSourceName property. If both properties are set, the driver will use the property set most recently.
Parameters:
  name - a String object with the name that can be suppliedto a naming service based on JNDI technology to retrieve theDataSource object that can be used to get a connection;may be null but must not be an empty string
throws:
  SQLException - if there is a problem setting thedataSourceName property or name is an empty string
See Also:   BaseRowSetX.getDataSourceName




setFetchDirection
public void setFetchDirection(int direction) throws SQLException(Code)
Gives the driver a performance hint as to the direction in which the rows in this RowSet object will be processed. The driver may ignore this hint.

A RowSet object inherits the default properties of the ResultSet object from which it got its data. That ResultSet object's default fetch direction is set by the Statement object that created it.

This method applies to a RowSet object only while it is connected to a database using a JDBC driver.

A RowSet object may use this method at any time to change its setting for the fetch direction.
Parameters:
  direction - one of ResultSet.FETCH_FORWARD,ResultSet.FETCH_REVERSE, orResultSet.FETCH_UNKNOWN
throws:
  SQLException - if (1) the RowSet type isTYPE_FORWARD_ONLY and the given fetch direction is notFETCH_FORWARD or (2) the given fetch direction is notone of the following:ResultSet.FETCH_FORWARD,ResultSet.FETCH_REVERSE, orResultSet.FETCH_UNKNOWN
See Also:   BaseRowSetX.getFetchDirection




setFetchSize
public void setFetchSize(int rows) throws SQLException(Code)
Sets the fetch size for this RowSet object to the given number of rows. The fetch size gives a JDBC technology-enabled driver ("JDBC driver") a hint as to the number of rows that should be fetched from the database when more rows are needed for this RowSet object. If the fetch size specified is zero, the driver ignores the value and is free to make its own best guess as to what the fetch size should be.

A RowSet object inherits the default properties of the ResultSet object from which it got its data. That ResultSet object's default fetch size is set by the Statement object that created it.

This method applies to a RowSet object only while it is connected to a database using a JDBC driver. For connected RowSet implementations such as JdbcRowSet, this method has a direct and immediate effect on the underlying JDBC driver.

A RowSet object may use this method at any time to change its setting for the fetch size.

For RowSet implementations such as CachedRowSet, which operate in a disconnected environment, the SyncProvider object being used may leverage the fetch size to poll the data source and retrieve a number of rows that do not exceed the fetch size and that may form a subset of the actual rows returned by the original query. This is an implementation variance determined by the specific SyncProvider object employed by the disconnected RowSet object.


Parameters:
  rows - the number of rows to fetch; 0 to let thedriver decide what the best fetch size is; must not be lessthan 0 or more than the maximum number of rowsallowed for this RowSet object (the number returnedby a call to the method BaseRowSetX.getMaxRows)
throws:
  SQLException - if the specified fetch size is less than 0or more than the limit for the maximum number of rows
See Also:   BaseRowSetX.getFetchSize




setMaxRows
public void setMaxRows(int max) throws SQLException(Code)
Sets the maximum number of rows that this RowSet object may contain to the given number. If this limit is exceeded, the excess rows are silently dropped.
Parameters:
  max - an int indicating the current maximum numberof rows; zero means that there is no limit
throws:
  SQLException - if an error occurs internally setting themaximum limit on the number of rows that a JDBC RowSet objectcan contain; or if max is less than 0; orif max is less than the fetchSize of theRowSet



setUrl
public void setUrl(String url) throws SQLException(Code)
Sets the Url property for this RowSet object to the given String object and sets the dataSource name property to null. The Url property is a JDBC URL that is used when the connection is created using a JDBC technology-enabled driver ("JDBC driver") and the DriverManager. The correct JDBC URL for the specific driver to be used can be found in the driver documentation. Although there are guidelines for for how a JDBC URL is formed, a driver vendor can specify any String object except one with a length of 0 (an empty string).

Setting the Url property is optional if connections are established using a DataSource object instead of the DriverManager. The driver will use either the URL property or the dataSourceName property to create a connection, whichever was specified most recently. If an application uses a JDBC URL, it must load a JDBC driver that accepts the JDBC URL before it uses the RowSet object to connect to a database. The RowSet object will use the URL internally to create a database connection in order to read or write data.
Parameters:
  url - a String object that contains the JDBC URLthat will be used to establish the connection to a database for thisRowSet object; may be null but must notbe an empty string
throws:
  SQLException - if an error occurs setting the Url property or theparameter supplied is a string with a length of 0 (anempty string)
See Also:   BaseRowSetX.getUrl




Fields inherited from javax.sql.rowset.BaseRowSet
final public static int ASCII_STREAM_PARAM(Code)(Java Doc)
final public static int BINARY_STREAM_PARAM(Code)(Java Doc)
final public static int UNICODE_STREAM_PARAM(Code)(Java Doc)
protected java.io.InputStream asciiStream(Code)(Java Doc)
protected java.io.InputStream binaryStream(Code)(Java Doc)
protected java.io.Reader charStream(Code)(Java Doc)
protected java.io.InputStream unicodeStream(Code)(Java Doc)

Methods inherited from javax.sql.rowset.BaseRowSet
public void addRowSetListener(RowSetListener listener)(Code)(Java Doc)
public void clearParameters() throws SQLException(Code)(Java Doc)
public String getCommand()(Code)(Java Doc)
public int getConcurrency() throws SQLException(Code)(Java Doc)
public String getDataSourceName()(Code)(Java Doc)
public boolean getEscapeProcessing() throws SQLException(Code)(Java Doc)
public int getFetchDirection() throws SQLException(Code)(Java Doc)
public int getFetchSize() throws SQLException(Code)(Java Doc)
public int getMaxFieldSize() throws SQLException(Code)(Java Doc)
public int getMaxRows() throws SQLException(Code)(Java Doc)
public Object[] getParams() throws SQLException(Code)(Java Doc)
public String getPassword()(Code)(Java Doc)
public int getQueryTimeout() throws SQLException(Code)(Java Doc)
public boolean getShowDeleted() throws SQLException(Code)(Java Doc)
public int getTransactionIsolation()(Code)(Java Doc)
public int getType() throws SQLException(Code)(Java Doc)
public java.util.Map<String, Class<?>> getTypeMap()(Code)(Java Doc)
public String getUrl() throws SQLException(Code)(Java Doc)
public String getUsername()(Code)(Java Doc)
protected void initParams()(Code)(Java Doc)
public boolean isReadOnly()(Code)(Java Doc)
protected void notifyCursorMoved() throws SQLException(Code)(Java Doc)
protected void notifyRowChanged() throws SQLException(Code)(Java Doc)
protected void notifyRowSetChanged() throws SQLException(Code)(Java Doc)
public void removeRowSetListener(RowSetListener listener)(Code)(Java Doc)
public void setArray(int parameterIndex, Array array) throws SQLException(Code)(Java Doc)
public void setAsciiStream(int parameterIndex, java.io.InputStream x, int length) throws SQLException(Code)(Java Doc)
public void setAsciiStream(int parameterIndex, java.io.InputStream x) throws SQLException(Code)(Java Doc)
public void setAsciiStream(String parameterName, java.io.InputStream x, int length) throws SQLException(Code)(Java Doc)
public void setAsciiStream(String parameterName, java.io.InputStream x) throws SQLException(Code)(Java Doc)
public void setBigDecimal(int parameterIndex, java.math.BigDecimal x) throws SQLException(Code)(Java Doc)
public void setBigDecimal(String parameterName, BigDecimal x) throws SQLException(Code)(Java Doc)
public void setBinaryStream(int parameterIndex, java.io.InputStream x, int length) throws SQLException(Code)(Java Doc)
public void setBinaryStream(int parameterIndex, java.io.InputStream x) throws SQLException(Code)(Java Doc)
public void setBinaryStream(String parameterName, java.io.InputStream x, int length) throws SQLException(Code)(Java Doc)
public void setBinaryStream(String parameterName, java.io.InputStream x) throws SQLException(Code)(Java Doc)
public void setBlob(int parameterIndex, Blob x) throws SQLException(Code)(Java Doc)
public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException(Code)(Java Doc)
public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException(Code)(Java Doc)
public void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException(Code)(Java Doc)
public void setBlob(String parameterName, Blob x) throws SQLException(Code)(Java Doc)
public void setBlob(String parameterName, InputStream inputStream) throws SQLException(Code)(Java Doc)
public void setBoolean(int parameterIndex, boolean x) throws SQLException(Code)(Java Doc)
public void setBoolean(String parameterName, boolean x) throws SQLException(Code)(Java Doc)
public void setByte(int parameterIndex, byte x) throws SQLException(Code)(Java Doc)
public void setByte(String parameterName, byte x) throws SQLException(Code)(Java Doc)
public void setBytes(int parameterIndex, byte x) throws SQLException(Code)(Java Doc)
public void setBytes(String parameterName, byte x) throws SQLException(Code)(Java Doc)
public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException(Code)(Java Doc)
public void setCharacterStream(int parameterIndex, java.io.Reader reader) throws SQLException(Code)(Java Doc)
public void setCharacterStream(String parameterName, java.io.Reader reader, int length) throws SQLException(Code)(Java Doc)
public void setCharacterStream(String parameterName, java.io.Reader reader) throws SQLException(Code)(Java Doc)
public void setClob(int parameterIndex, Clob x) throws SQLException(Code)(Java Doc)
public void setClob(int parameterIndex, Reader reader, long length) throws SQLException(Code)(Java Doc)
public void setClob(int parameterIndex, Reader reader) throws SQLException(Code)(Java Doc)
public void setClob(String parameterName, Reader reader, long length) throws SQLException(Code)(Java Doc)
public void setClob(String parameterName, Clob x) throws SQLException(Code)(Java Doc)
public void setClob(String parameterName, Reader reader) throws SQLException(Code)(Java Doc)
public void setCommand(String cmd) throws SQLException(Code)(Java Doc)
public void setConcurrency(int concurrency) throws SQLException(Code)(Java Doc)
public void setDataSourceName(String name) throws SQLException(Code)(Java Doc)
public void setDate(int parameterIndex, java.sql.Date x) throws SQLException(Code)(Java Doc)
public void setDate(int parameterIndex, java.sql.Date x, Calendar cal) throws SQLException(Code)(Java Doc)
public void setDate(String parameterName, java.sql.Date x) throws SQLException(Code)(Java Doc)
public void setDate(String parameterName, java.sql.Date x, Calendar cal) throws SQLException(Code)(Java Doc)
public void setDouble(int parameterIndex, double x) throws SQLException(Code)(Java Doc)
public void setDouble(String parameterName, double x) throws SQLException(Code)(Java Doc)
public void setEscapeProcessing(boolean enable) throws SQLException(Code)(Java Doc)
public void setFetchDirection(int direction) throws SQLException(Code)(Java Doc)
public void setFetchSize(int rows) throws SQLException(Code)(Java Doc)
public void setFloat(int parameterIndex, float x) throws SQLException(Code)(Java Doc)
public void setFloat(String parameterName, float x) throws SQLException(Code)(Java Doc)
public void setInt(int parameterIndex, int x) throws SQLException(Code)(Java Doc)
public void setInt(String parameterName, int x) throws SQLException(Code)(Java Doc)
public void setLong(int parameterIndex, long x) throws SQLException(Code)(Java Doc)
public void setLong(String parameterName, long x) throws SQLException(Code)(Java Doc)
public void setMaxFieldSize(int max) throws SQLException(Code)(Java Doc)
public void setMaxRows(int max) throws SQLException(Code)(Java Doc)
public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException(Code)(Java Doc)
public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException(Code)(Java Doc)
public void setNCharacterStream(String parameterName, Reader value, long length) throws SQLException(Code)(Java Doc)
public void setNCharacterStream(String parameterName, Reader value) throws SQLException(Code)(Java Doc)
public void setNClob(String parameterName, NClob value) throws SQLException(Code)(Java Doc)
public void setNClob(String parameterName, Reader reader, long length) throws SQLException(Code)(Java Doc)
public void setNClob(String parameterName, Reader reader) throws SQLException(Code)(Java Doc)
public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException(Code)(Java Doc)
public void setNClob(int parameterIndex, NClob value) throws SQLException(Code)(Java Doc)
public void setNClob(int parameterIndex, Reader reader) throws SQLException(Code)(Java Doc)
public void setNString(int parameterIndex, String value) throws SQLException(Code)(Java Doc)
public void setNString(String parameterName, String value) throws SQLException(Code)(Java Doc)
public void setNull(int parameterIndex, int sqlType) throws SQLException(Code)(Java Doc)
public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException(Code)(Java Doc)
public void setNull(String parameterName, int sqlType) throws SQLException(Code)(Java Doc)
public void setNull(String parameterName, int sqlType, String typeName) throws SQLException(Code)(Java Doc)
public void setObject(int parameterIndex, Object x, int targetSqlType, int scale) throws SQLException(Code)(Java Doc)
public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException(Code)(Java Doc)
public void setObject(int parameterIndex, Object x) throws SQLException(Code)(Java Doc)
public void setObject(String parameterName, Object x, int targetSqlType, int scale) throws SQLException(Code)(Java Doc)
public void setObject(String parameterName, Object x, int targetSqlType) throws SQLException(Code)(Java Doc)
public void setObject(String parameterName, Object x) throws SQLException(Code)(Java Doc)
public void setPassword(String pass)(Code)(Java Doc)
public void setQueryTimeout(int seconds) throws SQLException(Code)(Java Doc)
public void setReadOnly(boolean value)(Code)(Java Doc)
public void setRef(int parameterIndex, Ref ref) throws SQLException(Code)(Java Doc)
public void setRowId(int parameterIndex, RowId x) throws SQLException(Code)(Java Doc)
public void setRowId(String parameterName, RowId x) throws SQLException(Code)(Java Doc)
public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException(Code)(Java Doc)
public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException(Code)(Java Doc)
public void setShort(int parameterIndex, short x) throws SQLException(Code)(Java Doc)
public void setShort(String parameterName, short x) throws SQLException(Code)(Java Doc)
public void setShowDeleted(boolean value) throws SQLException(Code)(Java Doc)
public void setString(int parameterIndex, String x) throws SQLException(Code)(Java Doc)
public void setString(String parameterName, String x) throws SQLException(Code)(Java Doc)
public void setTime(int parameterIndex, java.sql.Time x) throws SQLException(Code)(Java Doc)
public void setTime(int parameterIndex, java.sql.Time x, Calendar cal) throws SQLException(Code)(Java Doc)
public void setTime(String parameterName, java.sql.Time x) throws SQLException(Code)(Java Doc)
public void setTime(String parameterName, java.sql.Time x, Calendar cal) throws SQLException(Code)(Java Doc)
public void setTimestamp(int parameterIndex, java.sql.Timestamp x) throws SQLException(Code)(Java Doc)
public void setTimestamp(int parameterIndex, java.sql.Timestamp x, Calendar cal) throws SQLException(Code)(Java Doc)
public void setTimestamp(String parameterName, java.sql.Timestamp x) throws SQLException(Code)(Java Doc)
public void setTimestamp(String parameterName, java.sql.Timestamp x, Calendar cal) throws SQLException(Code)(Java Doc)
public void setTransactionIsolation(int level) throws SQLException(Code)(Java Doc)
public void setType(int type) throws SQLException(Code)(Java Doc)
public void setTypeMap(java.util.Map<String, Class<?>> map)(Code)(Java Doc)
public void setURL(int parameterIndex, java.net.URL x) throws SQLException(Code)(Java Doc)
public void setUnicodeStream(int parameterIndex, java.io.InputStream x, int length) throws SQLException(Code)(Java Doc)
public void setUrl(String url) throws SQLException(Code)(Java Doc)
public void setUsername(String name)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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