ru.smartflex.tools.dbf
Class DbfStatement

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

public class DbfStatement
extends java.lang.Object

The class DbfStatement is used for record preparation and insertion.

Since:
1.00
Author:
galisha

Constructor Summary
protected DbfStatement(DbfHeader dbfHeader, DbfCodePages dbfCodePage, DbfAppender dbfAppender)
           
 
Method Summary
protected  java.io.InputStream getDbfBodyInputStream()
           
 void insertStatement()
          Insert current record into dbf file.
 void markAsDeleted()
          Marks current record as deleted.
 void setBigDecimal(java.lang.String colName, java.math.BigDecimal value)
          Sets the designated parameter to the given Java BigDecimal value
 void setBoolean(java.lang.String colName, java.lang.Boolean value)
          Sets the designated parameter to the given Java Boolean value
 void setDate(java.lang.String colName, java.util.Date value)
          Sets the designated parameter to the given Java Date value
 void setFloat(java.lang.String colName, java.lang.Float value)
          Sets the designated parameter to the given Java Float value
 void setString(java.lang.String colName, java.lang.String value)
          Sets the designated parameter to the given Java String value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbfStatement

protected DbfStatement(DbfHeader dbfHeader,
                       DbfCodePages dbfCodePage,
                       DbfAppender dbfAppender)
Method Detail

markAsDeleted

public void markAsDeleted()
Marks current record as deleted.

Since:
1.00

getDbfBodyInputStream

protected java.io.InputStream getDbfBodyInputStream()

insertStatement

public void insertStatement()
Insert current record into dbf file.

Since:
1.00

setString

public void setString(java.lang.String colName,
                      java.lang.String value)
Sets the designated parameter to the given Java String value

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

setDate

public void setDate(java.lang.String colName,
                    java.util.Date value)
Sets the designated parameter to the given Java Date value

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

setBigDecimal

public void setBigDecimal(java.lang.String colName,
                          java.math.BigDecimal value)
Sets the designated parameter to the given Java BigDecimal value

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

setFloat

public void setFloat(java.lang.String colName,
                     java.lang.Float value)
Sets the designated parameter to the given Java Float value

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

setBoolean

public void setBoolean(java.lang.String colName,
                       java.lang.Boolean value)
Sets the designated parameter to the given Java Boolean value

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