68 lines
4.9 KiB
HTML
68 lines
4.9 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="RecordFormat class" />
|
||
|
<meta name="abstract" content="The RecordFormat class allows the Java program to describe a group of fields or parameters. A record object contains data described by a RecordFormat object. If the program is using record-level access classes, the RecordFormat class also allows the program to specify descriptions for key fields." />
|
||
|
<meta name="description" content="The RecordFormat class allows the Java program to describe a group of fields or parameters. A record object contains data described by a RecordFormat object. If the program is using record-level access classes, the RecordFormat class also allows the program to specify descriptions for key fields." />
|
||
|
<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="dtadrfmt" />
|
||
|
<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>RecordFormat class</title>
|
||
|
</head>
|
||
|
<body id="dtadrfmt"><a name="dtadrfmt"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">RecordFormat class</h1>
|
||
|
<div><p>The RecordFormat class allows the Java™ program to describe a group of fields
|
||
|
or parameters. A record object contains data described by a RecordFormat object.
|
||
|
If the program is using record-level access classes, the RecordFormat class
|
||
|
also allows the program to specify descriptions for key fields.</p>
|
||
|
<div class="section"><p><a href="javadoc/com/ibm/as400/access/RecordFormat.html#NAVBAR_TOP">RecordFormat</a> </p>
|
||
|
<p>A RecordFormat object contains a
|
||
|
set of field descriptions. The field description can be accessed by index
|
||
|
or by name. Methods exist on the RecordFormat class to do the following:</p>
|
||
|
<ul><li><a href="javadoc/com/ibm/as400/access/RecordFormat.html#ADDFIELDDESCRIPTION(COM.IBM.AS400.ACCESS.FIELDDESCRIPTION)"> Add</a> field descriptions to the record format.</li>
|
||
|
<li><a href="javadoc/com/ibm/as400/access/RecordFormat.html#ADDKEYFIELDDESCRIPTION(INT)"> Add key</a> field descriptions to the record format.</li>
|
||
|
<li><a href="javadoc/com/ibm/as400/access/RecordFormat.html#GETFIELDDESCRIPTION(INT)"> Retrieve</a> field descriptions from the record format by
|
||
|
index or by name.</li>
|
||
|
<li><a href="javadoc/com/ibm/as400/access/RecordFormat.html#GETKEYFIELDDESCRIPTION(INT)"> Retrieve key</a> field descriptions from the record format
|
||
|
by index or by name.</li>
|
||
|
<li><a href="javadoc/com/ibm/as400/access/RecordFormat.html#GETFIELDNAMES()"> Retrieve the names</a> of the fields that make up the record
|
||
|
format.</li>
|
||
|
<li><a href="javadoc/com/ibm/as400/access/RecordFormat.html#GETKEYFIELDNAMES()"> Retrieve the names</a> of the key fields that make up the
|
||
|
record format.</li>
|
||
|
<li><a href="javadoc/com/ibm/as400/access/RecordFormat.html#GETNUMBEROFFIELDS()"> Retrieve the number</a> of fields in the record format.</li>
|
||
|
<li><a href="javadoc/com/ibm/as400/access/RecordFormat.html#GETNUMBEROFKEYFIELDS()"> Retrieve the number</a> of key fields in the record format.</li>
|
||
|
<li><a href="javadoc/com/ibm/as400/access/RecordFormat.html#GETNEWRECORD()"> Create a Record object</a> based on this record format.</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="section"><h4 class="sectiontitle">Example: Adding field descriptions to a record format</h4><p>The
|
||
|
following example adds the field descriptions created in the <a href="dtadfld.htm#dtadfld">field
|
||
|
description</a> example to a record format:</p>
|
||
|
<pre> // Create a record format object, then fill it with field descriptions.
|
||
|
RecordFormat rf = new RecordFormat();
|
||
|
rf.addFieldDescription(bfd);
|
||
|
rf.addFieldDescription(cfd1);
|
||
|
rf.addFieldDescription(cfd2);</pre>
|
||
|
<p>To see how to create a record
|
||
|
from the record format, see the example on the following page:</p>
|
||
|
<blockquote><a href="dtadrec.htm#dtadrec">Record class</a></blockquote>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</body>
|
||
|
</html>
|