Dataman
Class DatamanRecord

java.lang.Object
  extended by Dataman.DatamanRecord

public class DatamanRecord
extends java.lang.Object

Definitions for the master and workfile records. When any data is retrieved it is placed in either of the two data records. The master record refers to anything retrieved via a reference to an index, and the workfile record is data that is retrieved from the workfile named on the command line.


Field Summary
 DatamanField[] field
           
static int MASTER
           
static int WORK
           
 
Method Summary
 boolean getfile()
          Return if the file in a sort routine has been newly opened.
 short getfmt()
          Return the format number of the current record.
 boolean release()
          Release the current record and retrieve the next from the datafile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

field

public DatamanField[] field

WORK

public static final int WORK
See Also:
Constant Field Values

MASTER

public static final int MASTER
See Also:
Constant Field Values
Method Detail

getfmt

public short getfmt()
Return the format number of the current record.

Returns:
short

getfile

public boolean getfile()
Return if the file in a sort routine has been newly opened. This is useful in sort routines to change states depending on which file is being processed.

Returns:
true if the file is newly opened, false if a release has been performed.

release

public boolean release()
Release the current record and retrieve the next from the datafile. This is used in sort routines to retrieve records to be sorted. If at the end of the current work file, the file is closed, the next is opened, the first record of that file is returned, and the new file flag is set to true. If the current record is the last in the last named file, false is returned.

Returns:
true if there was another record, else false
Throws:
DatamanRuntimeException