ru.smartflex.tools.dbf
Class DbfColumn

java.lang.Object
  extended by ru.smartflex.tools.dbf.DbfColumn

public class DbfColumn
extends java.lang.Object

The class DbfColumn is responsible for xBase field definition.

Since:
1.00
Author:
galisha

Constructor Summary
protected DbfColumn(DbfHeader dbfHeader)
           
  DbfColumn(java.lang.String columnName, DbfColumnTypes dbfColumnType, int width, int dec)
          Constructs a newly allocated DbfColumn object that represents xBase field.
 
Method Summary
 java.lang.String getColumnName()
          Returns column name.
protected  DbfColumnPosition getDbfColumnPosition()
           
 DbfColumnTypes getDbfColumnType()
          Returns type of column.
protected  java.lang.String getOriginalType()
           
protected  void parse(byte[] recField)
           
protected  void setColumnName(java.lang.String columnName)
           
protected  void setDbfColumnPosition(DbfColumnPosition dbfColumnPosition)
           
 java.lang.String toString()
          toString method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DbfColumn

protected DbfColumn(DbfHeader dbfHeader)

DbfColumn

public DbfColumn(java.lang.String columnName,
                 DbfColumnTypes dbfColumnType,
                 int width,
                 int dec)
Constructs a newly allocated DbfColumn object that represents xBase field.

Parameters:
columnName -
dbfColumnType - enumeration for column type
width - column width
dec - column scale ( in other words amount point after comma )
Since:
1.00
Method Detail

getDbfColumnType

public DbfColumnTypes getDbfColumnType()
Returns type of column.

Returns:
type of column
Since:
1.05

parse

protected void parse(byte[] recField)

getColumnName

public java.lang.String getColumnName()
Returns column name.

Returns:
column name
Since:
1.05

setColumnName

protected void setColumnName(java.lang.String columnName)

getDbfColumnPosition

protected DbfColumnPosition getDbfColumnPosition()

setDbfColumnPosition

protected void setDbfColumnPosition(DbfColumnPosition dbfColumnPosition)

getOriginalType

protected java.lang.String getOriginalType()

toString

public java.lang.String toString()
toString method

Overrides:
toString in class java.lang.Object
Since:
1.07