org.jSyncManager.API.Conduit.SatelliteForms
Class SFLogicalColumn
public class SFLogicalColumn
Implmentation of SatelliteForms "boolean" column (here called "logical"
because the character prefix of the data type is "L").
SFLogicalColumn(byte[] cdef, int pos)- Construct a SFColumnDef from an array slice.
|
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.
|
getColSize, getDBItem, getDataArray, getDataOffset, getDataSize, getDecimals, getName, getType, getValue, main, setCurRec, setValue, toString |
SFLogicalColumn
public SFLogicalColumn(byte[] cdef,
int pos) Construct a SFColumnDef from an array slice. The byte array "cdef" should
contain one entry from the fields array of the AppBlock. The methods of
SFColumn allow you to get and set the value of the column in a
DLPRecordobject passed to the
SFColumn.getValue()or
SFColumn.setValue(String)calls. SFColumn is an abstract class. There are
specific concrete implementation classes for each SatelliteForms column
type.
cdef - The byte array of the field descriptorpos - The position (relative to the start of data) of the field in
the data record.
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.
- 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.
- getValue in interface SFColumn