2004.04.29


com.jdc.app.rdb.tbl.ref.tco
Class ReferenceTCO

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.io.FileReader
              |
              +--com.jdc.app.rdb.tbl.ref.tco.ReferenceTCO
Direct Known Subclasses:
CountryTCO

public abstract class ReferenceTCO
extends FileReader

ReferenceTCO represents a database reference table creation object.

Version:
1.0
Author:
Jay Damon

Field Summary
protected static String DELIMITER
          The default reference data file delimiter.
 
Fields inherited from class com.jdc.lang.Object
string
 
Constructor Summary
ReferenceTCO(String dataFileName)
          Constructs a new ReferenceTCO object to read from the data jdc.java.io.File with the specified file name.
 
Method Summary
 int getInt(int dataIndex)
          Returns an int value from the data file line data array.
 String getString(int dataIndex)
          Returns a String value from the data file line data array.
abstract  void readData()
          Reads the line data from the table data File.
 void readLine(String fileLine)
          Reads a line from the table data File, parses the line to create an array of line field values, and invokes the readData method.
 
Methods inherited from class com.jdc.io.FileReader
close, finalize, getFile, getLineNumber, open, readFile
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELIMITER

protected static final String DELIMITER
The default reference data file delimiter.

See Also:
Constant Field Values
Constructor Detail

ReferenceTCO

public ReferenceTCO(String dataFileName)
Constructs a new ReferenceTCO object to read from the data jdc.java.io.File with the specified file name.

Method Detail

getInt

public int getInt(int dataIndex)
Returns an int value from the data file line data array.

Returns:
An int value.

getString

public String getString(int dataIndex)
Returns a String value from the data file line data array.

Returns:
A String value.

readData

public abstract void readData()
Reads the line data from the table data File. This method must be overridden in the subclass to process the file line data.


readLine

public void readLine(String fileLine)
Reads a line from the table data File, parses the line to create an array of line field values, and invokes the readData method.

Overrides:
readLine in class FileReader

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.