78 lines
5.5 KiB
HTML
78 lines
5.5 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="concept" />
|
|
<meta name="DC.Title" content="RowSet characteristics" />
|
|
<meta name="abstract" content="You can request certain properties to be satisfied by the rowsets. Common properties include the set of interfaces to be supported by the resulting rowset." />
|
|
<meta name="description" content="You can request certain properties to be satisfied by the rowsets. Common properties include the set of interfaces to be supported by the resulting rowset." />
|
|
<meta name="DC.Relation" scheme="URI" content="rowsetty.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="db2cache.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="db2jdbcr.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rsetchar" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>RowSet characteristics</title>
|
|
</head>
|
|
<body id="rsetchar"><a name="rsetchar"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">RowSet characteristics</h1>
|
|
<div><p>You can request certain properties to be satisfied by the rowsets.
|
|
Common properties include the set of interfaces to be supported by the resulting
|
|
rowset.</p>
|
|
<div class="section"><h4 class="sectiontitle">RowSets are ResultSets</h4><p>The RowSet interface extends
|
|
the ResultSet interface which means that RowSets have the ability to perform
|
|
all the functions that ResultSets can do. For example, RowSets can be scrollable
|
|
and updateable.</p>
|
|
</div>
|
|
<div class="section"><h4 class="sectiontitle">RowSets can be disconnected from the database</h4><p>There
|
|
are two categories of RowSets:</p>
|
|
<ul><li><strong>Connected</strong> While connected RowSets are populated with data, they
|
|
always have internal connections to the underlying database open and serve
|
|
as wrappers around a ResultSet implementation.</li>
|
|
<li><strong>Disconnected</strong> Disconnected RowSets are not required to maintain
|
|
connections to their data source at all times. Disconnected RowSets can be
|
|
detached from the database, be used in a variety of ways, and then be reconnected
|
|
to the database to mirror any changes made to them.</li>
|
|
</ul>
|
|
</div>
|
|
<div class="section"><h4 class="sectiontitle">RowSets are JavaBeans™ components</h4><p>RowSets
|
|
have support for event handling based on the JavaBeans event-handling model. They
|
|
also have properties that can be set. These properties can be used by the
|
|
RowSet to perform the following:</p>
|
|
<ul><li>Establish a connection to the database.</li>
|
|
<li>Process an SQL statement.</li>
|
|
<li>Determine features of the data that the RowSet represents and handle other
|
|
internal features of the RowSet object.</li>
|
|
</ul>
|
|
</div>
|
|
<div class="section"><h4 class="sectiontitle">RowSets are serializable</h4><p>RowSets can be serialized
|
|
and deserialized to allow them to flow over a network connection, be written
|
|
out to a flat file (that is, a text document without any word processing or
|
|
other structure characters), and so on. </p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rowsetty.htm" title="RowSets were originally added to the Java Database Connectivity (JDBC) 2.0 Optional Package. Unlike some of the better-known interfaces of the JDBC specification, the RowSet specification is designed to be more of a framework than an actual implementation. The RowSet interfaces define a set of core functionality that all RowSets have. RowSet implementation providers have considerable freedom to define the functionality that is needed to fit their needs in a specific problem space.">RowSets</a></div>
|
|
</div>
|
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
|
<div><a href="db2cache.htm" title="The DB2CachedRowSet object is a disconnected RowSet, meaning that it can be used without being connected to the database. Its implementation adheres closely to the description of a CachedRowSet. The DB2CachedRowSet is a container for rows of data from a ResultSet. The DB2CachedRowSet holds all its own data so it does not need to maintain a connection to the database other than explicitly while reading or writing data to the database.">DB2CachedRowSet</a></div>
|
|
<div><a href="db2jdbcr.htm" title="The DB2JdbcRowSet is a connected RowSet, meaning that it can only be used with the support of an underlying Connection object, PreparedStatement object, or ResultSet object. Its implementation adheres closely to the description of a JdbcRowSet.">DB2JdbcRowSet</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |