org.jSyncManager.API.Conduit.SatelliteForms

Class SFLogicalColumn


public class SFLogicalColumn
extends SFColumn

Implmentation of SatelliteForms "boolean" column (here called "logical" because the character prefix of the data type is "L").

Field Summary

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

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

Constructor Summary

SFLogicalColumn(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()
Get this column's current data value as a string.

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

SFLogicalColumn

public SFLogicalColumn(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

getValue

public String getValue()
            throws SFTableException
Get this column's current data value as a string. This is an abstract method implemented by the type-specific subclass. Since this always returns a string, it makes a nice "typeless" interface. Be aware that the SFTableException may be thrown if the string value is incompatible with the underlying subclass. Note that the value returned by this method is ALWAYS the value parsed from the DLPRecord used to construct. In other words, SFColumn.setValue(String) doesn't change this value.
Overrides:
getValue in interface SFColumn