BEA Systems, Inc.

BEA WebLogic Server 9.0 API Reference


weblogic.wtc.jatmi
Class DynamicFldTbl

java.lang.Object
  extended byweblogic.wtc.jatmi.DynamicFldTbl
All Implemented Interfaces:
FldTbl

public class DynamicFldTbl
extends Object
implements FldTbl

This class provides a dynamic implementation of the FldTbl interface. It parses an FML or FML32 field definition file at run-time, then provides name-to-field id and field id-to-name mappings.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
DynamicFldTbl(String fieldFileName, boolean hdrType32)
          Parses an FML or FML32 field table definition file.
DynamicFldTbl(String fieldFileName, boolean hdrType32, int initialCapacity, float loadFactor)
          Parses an FML or FML32 field table definition file.
 
Method Summary
 String Fldid_to_name(int fldId)
          Returns the name of the field corresponding to the given field id.
 String[] getFldNames()
          Returns an array of strings representing the names of the fields in the table.
 int name_to_Fldid(String name)
          Returns the id of the field corresponding to the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicFldTbl

public DynamicFldTbl(String fieldFileName,
                     boolean hdrType32)
Parses an FML or FML32 field table definition file. Because applications written to use field tables do not expect exceptions, no exceptions are thrown if the definition file cannot be found or if there are parsing errors. If such an error occurred, the methods returning name sets and field/name mappings will return null or error values.


DynamicFldTbl

public DynamicFldTbl(String fieldFileName,
                     boolean hdrType32,
                     int initialCapacity,
                     float loadFactor)
Parses an FML or FML32 field table definition file. Because applications written to use field tables do not expect exceptions, no exceptions are thrown if the definition file cannot be found or if there are parsing errors. If such an error occurred, the methods returning name sets and field/name mappings will return null or error values.

Method Detail

Fldid_to_name

public String Fldid_to_name(int fldId)
Returns the name of the field corresponding to the given field id.

Specified by:
Fldid_to_name in interface FldTbl
Parameters:
fldId - The field id of the field.
Returns:
The string for this field id or null if none is found

getFldNames

public String[] getFldNames()
Returns an array of strings representing the names of the fields in the table.

Specified by:
getFldNames in interface FldTbl
Returns:
The names of the fields in the table. If there was trouble finding or parsing the table, returns an empty array.

name_to_Fldid

public int name_to_Fldid(String name)
Returns the id of the field corresponding to the given name.

Specified by:
name_to_Fldid in interface FldTbl
Parameters:
name - The name of the field.
Returns:
A field id or -1 if none could be found with this name

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs90
Copyright 2005 BEA Systems Inc.