98 lines
5.0 KiB
HTML
98 lines
5.0 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="reference" />
|
|
<meta name="DC.Title" content="Vaccess record-level access classes" />
|
|
<meta name="abstract" content="" />
|
|
<meta name="description" content="" />
|
|
<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="vrla" />
|
|
<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>Vaccess record-level access classes</title>
|
|
</head>
|
|
<body id="vrla"><a name="vrla"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Vaccess record-level access classes</h1>
|
|
<div><p></p>
|
|
<div class="section"><p>The record-level access classes in the vaccess package allow a Java™ program
|
|
to present various views of server files.</p>
|
|
</div>
|
|
<div class="section"><p>The following components are available:</p>
|
|
</div>
|
|
<div class="section"><ul><li><a href="vrlaform.htm#vrlaform">RecordListFormPane</a> presents
|
|
a list of records from a server file in a form.</li>
|
|
<li><a href="vrlatbpn.htm#vrlatbpn">RecordListTablePane</a> presents
|
|
a list of records from a server file in a table.</li>
|
|
<li><a href="vrlatbmd.htm#vrlatbmd">RecordListTableModel</a> manages
|
|
the list of records from a server file for a table.</li>
|
|
</ul>
|
|
</div>
|
|
<div class="section"><p><strong><span class="synph" id="vrla__keyedaccess"><a name="vrla__keyedaccess"><!-- --></a><span class="kwd"></span></span>Keyed access</strong></p>
|
|
</div>
|
|
<div class="section"><p>You can use the record-level access graphical user interface components
|
|
with keyed access to a server file. Keyed access means that the Java program
|
|
can access the records of a file by specifying a key.</p>
|
|
</div>
|
|
<div class="section"><p>Keyed access works the same for each record-level access graphical
|
|
user interface component. Use setKeyed() to specify keyed access instead of
|
|
sequential access. Specify a key using the constructor or the setKey() method.
|
|
See <a href="rlakey.htm#rlakey__keyspec">Specifying the key</a> for
|
|
more information about how to specify the key.</p>
|
|
</div>
|
|
<div class="section"><p>By default, only records whose keys are equal to the specified
|
|
key are displayed. To change this, specify the searchType property using the
|
|
constructor or setSearchType() method. Possible choices are as follows:</p>
|
|
</div>
|
|
<div class="section"><ul><li>KEY_EQ - Display records whose keys are equal to the specified key.</li>
|
|
<li>KEY_GE - Display records whose keys are greater than or equal to the specified
|
|
key.</li>
|
|
<li>KEY_GT - Display records whose keys are greater than the specified key.</li>
|
|
<li>KEY_LE - Display records whose keys are less than or equal to the specified
|
|
key.</li>
|
|
<li>KEY_LT - Display records whose keys are less than the specified key.</li>
|
|
</ul>
|
|
</div>
|
|
<div class="section"><p><span class="synph" id="vrla__vrlaex1"><a name="vrla__vrlaex1"><!-- --></a><span class="kwd"></span></span>The following example creates
|
|
a RecordListTablePane object to display all records less than or equal to
|
|
a key.</p>
|
|
</div>
|
|
<div class="section"><div class="p"><pre> // Create a key that contains a
|
|
// single element, the Integer 5.
|
|
Object[] key = new Object[1];
|
|
key[0] = new Integer (5);
|
|
|
|
// Create a RecordListTablePane
|
|
// object. Assume that "system" is an
|
|
// AS400 object that is created and
|
|
// initialized elsewhere. Specify
|
|
// the key and search type.
|
|
RecordListTablePane tablePane = new RecordListTablePane (system,
|
|
"/QSYS.LIB/QGPL.LIB/PARTS.FILE", key, RecordListTablePane.KEY_LE);
|
|
|
|
// Load the file contents.
|
|
tablePane.load ();
|
|
|
|
// Add the table pane to a frame.
|
|
// Assume that "frame" is a JFrame
|
|
// created elsewhere.
|
|
frame.getContentPane ().add (tablePane);</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |