ru.smartflex.tools.dbf
Class DbfRecord

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

public class DbfRecord
extends java.lang.Object

The class DbfRecord represents xBase record.

Since:
1.00
Author:
galisha

Constructor Summary
protected DbfRecord(byte[] record, DbfHeader dbfHeader)
           
 
Method Summary
 java.lang.String getAsString(DbfColumn column)
          Retrieves the string value of the designated column in the current record of this DbfRecord.
 java.math.BigDecimal getBigDecimal(java.lang.String colName)
          Retrieves the value of the designated column in the current record of this DbfRecord object as a BigDecimal in the Java programming language.
 boolean getBoolean(java.lang.String colName)
          Retrieves the value of the designated column in the current record of this DbfRecord object as a boolean in the Java programming language.
 int getCurrentRecord()
          Return number of current record
 java.util.Date getDate(java.lang.String colName)
          Retrieves the value of the designated column in the current record of this DbfRecord object as a Date in the Java programming language.
 float getFloat(java.lang.String colName)
          Retrieves the value of the designated column in the current record of this DbfRecord object as a float in the Java programming language.
 int getInt(java.lang.String colName)
          Retrieves the value of the designated column in the current record of this DbfRecord object as a int in the Java programming language.
 short getShort(java.lang.String colName)
          Retrieves the value of the designated column in the current record of this DbfRecord object as a short in the Java programming language.
 java.lang.String getString(java.lang.String colName)
          Retrieves the value of the designated column in the current record of this DbfRecord object as a String in the Java programming language.
 boolean isDeleted()
          Returns true is dbf record marked as deleted.
protected  void setCurrentRecord(int currentRecord)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbfRecord

protected DbfRecord(byte[] record,
                    DbfHeader dbfHeader)
Method Detail

getString

public java.lang.String getString(java.lang.String colName)
Retrieves the value of the designated column in the current record of this DbfRecord object as a String in the Java programming language.

Parameters:
colName - xBase field name
Returns:
string object
Since:
1.00

getInt

public int getInt(java.lang.String colName)
Retrieves the value of the designated column in the current record of this DbfRecord object as a int in the Java programming language.

Parameters:
colName - xBase field name
Returns:
int value
Since:
1.00

getShort

public short getShort(java.lang.String colName)
Retrieves the value of the designated column in the current record of this DbfRecord object as a short in the Java programming language.

Parameters:
colName - xBase field name
Returns:
short value
Since:
1.00

getBoolean

public boolean getBoolean(java.lang.String colName)
Retrieves the value of the designated column in the current record of this DbfRecord object as a boolean in the Java programming language.

Parameters:
colName - xBase field name
Returns:
boolean value
Since:
1.00

getBigDecimal

public java.math.BigDecimal getBigDecimal(java.lang.String colName)
Retrieves the value of the designated column in the current record of this DbfRecord object as a BigDecimal in the Java programming language.

Parameters:
colName - xBase field name
Returns:
BigDecimal object
Since:
1.00

getFloat

public float getFloat(java.lang.String colName)
Retrieves the value of the designated column in the current record of this DbfRecord object as a float in the Java programming language.

Parameters:
colName - xBase field name
Returns:
float value
Since:
1.00

getDate

public java.util.Date getDate(java.lang.String colName)
Retrieves the value of the designated column in the current record of this DbfRecord object as a Date in the Java programming language.

Parameters:
colName - xBase field name
Returns:
Date object
Since:
1.00

isDeleted

public boolean isDeleted()
Returns true is dbf record marked as deleted.

Returns:
true is dbf record marked as deleted.
Since:
1.00

setCurrentRecord

protected void setCurrentRecord(int currentRecord)

getAsString

public java.lang.String getAsString(DbfColumn column)
Retrieves the string value of the designated column in the current record of this DbfRecord.

Parameters:
column - column
Returns:
String object
Since:
1.07

getCurrentRecord

public int getCurrentRecord()
Return number of current record

Returns:
Since:
1.07