91 lines
5.7 KiB
HTML
91 lines
5.7 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="Resource and ChangeableResource classes" />
|
|
<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="resourceclass" />
|
|
<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 and ChangeableResource classes</title>
|
|
</head>
|
|
<body id="resourceclass"><a name="resourceclass"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Resource and ChangeableResource classes</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/Resource.html#NAVBAR_TOP"> com.ibm.as400.resource.Resource</a> and <a href="javadoc/com/ibm/as400/resource/ResourceList.html#NAVBAR_TOP"> com.ibm.as400.resource.ChangeableResource</a> abstract
|
|
classes represent an iSeries™ resource.</p>
|
|
<p><strong>Resource</strong></p>
|
|
<p>Resource
|
|
is an abstract class that provides generic access to the attributes of any
|
|
resource. Every attribute is identified using an attribute ID, and any given
|
|
subclass of Resource will normally document the attribute IDs that it supports.</p>
|
|
<p>Resource
|
|
provides only read access to the attribute values.</p>
|
|
<p>IBM<sup>®</sup> Toolbox for Java™ provides
|
|
the following resource objects:</p>
|
|
<ul><li><a href="javadoc/com/ibm/as400/resource/RIFSFile.html#NAVBAR_TOP"> RIFSFile</a> - represents a file or directory in the iSeries integrated
|
|
file system</li>
|
|
<li><a href="javadoc/com/ibm/as400/resource/RJavaProgram.html#NAVBAR_TOP"> RJavaProgram</a> - represents a Java program on the iSeries</li>
|
|
<li><a href="javadoc/com/ibm/as400/resource/RJob.html#NAVBAR_TOP"> RJob</a> - represents an iSeries job</li>
|
|
<li><a href="javadoc/com/ibm/as400/resource/RPrinter.html#NAVBAR_TOP"> RPrinter</a> - represents an iSeries printer</li>
|
|
<li><a href="javadoc/com/ibm/as400/resource/RQueuedMessage.html#NAVBAR_TOP"> RQueuedMessage</a> - represents a message in an iSeries message
|
|
queue or job log</li>
|
|
<li><a href="javadoc/com/ibm/as400/resource/RSoftwareResource.html#NAVBAR_TOP"> RSoftwareResource</a> - represents a licensed program on
|
|
the iSeries</li>
|
|
<li><a href="javadoc/com/ibm/as400/resource/RUser.html#NAVBAR_TOP"> RUser</a> - represents an iSeries user</li>
|
|
</ul>
|
|
<p><strong>ChangeableResource</strong></p>
|
|
<p>The ChangeableResource abstract class,
|
|
a subclass of Resource, adds the ability to change attribute values of an iSeries resource.
|
|
Attribute changes are cached internally until they are committed or canceled.
|
|
This allows you to change many attribute values at once.</p>
|
|
<div class="note"><span class="notetitle">Note:</span> The <a href="netserver.htm#netserver">NetServer™</a> classes in the <a href="classes.htm#classes">access package</a> are also concrete subclasses
|
|
of Resource and ChangeableResource.</div>
|
|
</div>
|
|
<div class="section"><h4 class="sectiontitle">Examples</h4><p>The following examples show how you can
|
|
directly use concrete subclasses of Resource and ChangeableResource, and also
|
|
how generic code can work with any Resource or ChangeableResource subclass.</p>
|
|
<ul><li><a href="ruser.htm#ruser">Retrieving an attribute value from RUser</a>,
|
|
a concrete subclass of Resource</li>
|
|
<li><a href="rjob.htm#rjob">Setting attribute values for RJob</a>,
|
|
a concrete subclass of ChangeableResource</li>
|
|
<li><a href="resourcegeneric.htm#resourcegeneric">Using generic code</a> to
|
|
access resources</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> |