ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahh_5.4.0.1/resourcelist.htm

93 lines
5.8 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?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="Resource lists" />
<meta name="abstract" content="The Resource package and its classes have been deprecated. You are advised to use the Access package instead." />
<meta name="description" content="The Resource package and its classes have been deprecated. You are advised to use the Access package instead." />
<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="resourcelist" />
<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>Resource lists</title>
</head>
<body id="resourcelist"><a name="resourcelist"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Resource lists</h1>
<div><p>The Resource package and its classes have been deprecated. You
are advised to use the Access package instead.</p>
<div class="section"><p>The <a href="javadoc/com/ibm/as400/resource/ResourceList.html#NAVBAR_TOP"> com.ibm.as400.resource.ResourceList</a> class represents
a list of iSeries™ resources.
This is an abstract class which provides generic access to the contents of
the list.</p>
<p>IBM<sup>®</sup> Toolbox for Java™ provides the following resource lists:</p>
<ul><li><a href="javadoc/com/ibm/as400/resource/RIFSFileList.html#NAVBAR_TOP"> RIFSFileList</a> - represents a list of files and directories
in the iSeries integrated
file system</li>
<li><a href="javadoc/com/ibm/as400/resource/RJobList.html#NAVBAR_TOP"> RJobList</a> - represents a list of iSeries jobs</li>
<li><a href="javadoc/com/ibm/as400/resource/RJobLog.html#NAVBAR_TOP"> RJobLog</a> - represents a list of messages in an iSeries job
log</li>
<li><a href="javadoc/com/ibm/as400/resource/RMessageQueue.html#NAVBAR_TOP"> RMessageQueue</a> - represents a list of messages in an iSeries message
queue</li>
<li><a href="javadoc/com/ibm/as400/resource/RPrinterList.html#NAVBAR_TOP"> RPrinterList</a> - represents a list of iSeries printers</li>
<li><a href="javadoc/com/ibm/as400/resource/RUserList.html#NAVBAR_TOP"> RUserList</a> - represents a list of iSeries users</li>
</ul>
<p>A resource list is always either open or closed. The resource list
must be open in order to access its contents. In order to provide immediate
access to the contents of the list and manage memory efficiently, most resource
lists are loaded incrementally.</p>
<p>Resource lists allow you to:</p>
<ul><li><a href="javadoc/com/ibm/as400/resource/ResourceList.html#OPEN()">Open</a> the list</li>
<li><a href="javadoc/com/ibm/as400/resource/ResourceList.html#CLOSE()"> Close</a> the list</li>
<li><a href="javadoc/com/ibm/as400/resource/ResourceList.html#RESOURCEAT(LONG)"> Access a specific Resource</a> from the list</li>
<li><a href="javadoc/com/ibm/as400/resource/ResourceList.html#WAITFORRESOURCE(LONG)"> Wait for a particular resource</a> to load</li>
<li><a href="javadoc/com/ibm/as400/resource/ResourceList.html#WAITFORCOMPLETE()"> Wait for the complete resource list</a> to load</li>
</ul>
<p>You can also filter resource lists by using selection values. Every
selection value is identified using a selection ID. Similarly, resource lists
can be sorted using sort values. Every sort value is identified using a sort
ID. Any given subclass of ResourceList will normally document the selection
IDs and sort IDs that it supports.</p>
</div>
<div class="section"><h4 class="sectiontitle">Examples</h4><p>The following examples show various ways
of working with resource lists:</p>
<ul><li>Example: <a href="resourceexamples.htm#resourceexamples">Getting
and printing the contents of a ResourceList</a></li>
<li>Example: <a href="resourcegeneric.htm#resourcegeneric__usinggenericcode">Using
generic code to access a ResourceList</a></li>
<li>Example: <a href="resourcepresentlist.htm#resourcepresentlist"> Presenting
a resource list in a servlet (HTML table)</a></li>
</ul>
</div>
<div class="section"><h4 class="sectiontitle">Code example disclaimer</h4><p>The following disclaimer
applies to all of the IBM Toolbox for Java examples:</p>
<blockquote> <p>IBM grants you
a nonexclusive copyright license to use all programming code examples from
which you can generate similar function tailored to your own specific needs.</p>
<p>All
sample code is provided by IBM for illustrative purposes only. These examples have
not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply
reliability, serviceability, or function of these programs.</p>
<p>All programs
contained herein are provided to you "AS IS" without any warranties of any
kind. The implied warranties of non-infringement, merchantability and fitness
for a particular purpose are expressly disclaimed.</p>
</blockquote>
</div>
</div>
</body>
</html>