org.jSyncManager.API.Conduit.SatelliteForms

Class SFIntColumn


public class SFIntColumn
extends SFColumn

Subclass of SFColumnto handle integer SF data.

Field Summary

Fields inherited from class org.jSyncManager.API.Conduit.SatelliteForms.SFColumn

colDec, colName, colPos, colSize, colType, d, dbItemSize, futureValue

Constructor Summary

SFIntColumn(byte[] cdef, int pos)
Construct a SFColumnDef from an array slice.

Method Summary

byte[]
getDBItem()
Create the data column fragment from the "futureValue" of this column.
String
getValue()
The getValue for integer columns never returns null.

Methods inherited from class org.jSyncManager.API.Conduit.SatelliteForms.SFColumn

getColSize, getDBItem, getDataArray, getDataOffset, getDataSize, getDecimals, getName, getType, getValue, main, setCurRec, setValue, toString

Constructor Details

SFIntColumn

public SFIntColumn(byte[] cdef,
                   int pos)
Parameters:
cdef - The byte array of the field descriptor
pos - The position (relative to the start of data) of the field in the data record.

Method Details

getDBItem

public byte[] getDBItem()
            throws SFTableException
Create the data column fragment from the "futureValue" of this column. This takes the value set for the column and converts it to a byte array compatible with a SatelliteForms table.
Overrides:
getDBItem in interface SFColumn
See Also:
org.jSyncManager.API.Conduit.SatelliteForms.SFColumn.setValue(org.jSyncManager.API.Protocol.Util.DLPRecord, java.lang.String)

getValue

public String getValue()
            throws SFTableException
The getValue for integer columns never returns null. A Null is a zero.
Overrides:
getValue in interface SFColumn
See Also:
org.jSyncManager.API.Conduit.SatelliteForms.SFColumn.getValue(org.jSyncManager.API.Protocol.Util.DLPRecord)