org.jSyncManager.API.Conduit.SatelliteForms

Class SFColumnFactory


public class SFColumnFactory
extends java.lang.Object

This class will instantiate a specific subclass of SFColumn, returning it as a reference to the abstract class. This is a static factory class.

Method Summary

static SFColumn
genColumn(byte[] cdef, int pos)
This method takes a byte array pointing at a SatelliteForms column definition array entry from the App Block of a SatelliteForms database, instantiates the approriate subclass of SFColumnand returns a reference to the abstract class.

Method Details

genColumn

public static SFColumn genColumn(byte[] cdef,
                                 int pos)
            throws SFTableException
This method takes a byte array pointing at a SatelliteForms column definition array entry from the App Block of a SatelliteForms database, instantiates the approriate subclass of SFColumnand returns a reference to the abstract class.
Parameters:
cdef - A byte array pointing at an SF column array entry.
pos - The position (relative to start of data) of the column within a data record
Returns:
SFColumn An instance of an SFColumn subclass.