public BaseField setupField(int iFieldSeq)
    {
        BaseField field = null;
        //if (iFieldSeq == 0)
        //{
        //  field = new CounterField(this, ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
        //  field.setHidden(true);
        //}
        //if (iFieldSeq == 1)
        //{
        //  field = new RecordChangedField(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);
        //  field.setHidden(true);
        //}
        //if (iFieldSeq == 2)
        //{
        //  field = new BooleanField(this, DELETED, Constants.DEFAULT_FIELD_LENGTH, null, new Boolean(false));
        //  field.setHidden(true);
        //}
        if (iFieldSeq == 3)
            field = new StringField(this, CODE, 30, null, null);
        if (iFieldSeq == 4)
        {
            field = new MessageProcessInfoField(this, MESSAGE_PROCESS_INFO_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
            field.setNullable(false);
        }
        if (iFieldSeq == 5)
            field = new MessageTransportField(this, MESSAGE_TRANSPORT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
        if (iFieldSeq == 6)
            field = new MessageVersionField(this, MESSAGE_VERSION_ID, Constants.DEFAULT_FIELD_LENGTH, null, new Integer(MessageVersion.NO_VERSION));
        if (iFieldSeq == 7)
            field = new BooleanField(this, ACTIVE, Constants.DEFAULT_FIELD_LENGTH, null, new Boolean(true));
        if (iFieldSeq == 8)
            field = new BooleanField(this, DEFAULT_TRANSPORT, Constants.DEFAULT_FIELD_LENGTH, null, null);
        if (iFieldSeq == 9)
            field = new PropertiesField(this, PROPERTIES, Constants.DEFAULT_FIELD_LENGTH, null, null);
        if (field == null)
            field = super.setupField(iFieldSeq);
        return field;
    }
public BaseField setupField ( int iFieldSeq ) { BaseField field = null ; if ( iFieldSeq == 3 ) field = new StringField ( this , CODE , 30 , null , null ) ; if ( iFieldSeq == 4 ) { field = new MessageProcessInfoField ( this , MESSAGE_PROCESS_INFO_ID , Constants . DEFAULT_FIELD_LENGTH , null , null ) ; field . setNullable ( false ) ; } if ( iFieldSeq == 5 ) field = new MessageTransportField ( this , MESSAGE_TRANSPORT_ID , Constants . DEFAULT_FIELD_LENGTH , null , null ) ; if ( iFieldSeq == 6 ) field = new MessageVersionField ( this , MESSAGE_VERSION_ID , Constants . DEFAULT_FIELD_LENGTH , null , new Integer ( MessageVersion . NO_VERSION ) ) ; if ( iFieldSeq == 7 ) field = new BooleanField ( this , ACTIVE , Constants . DEFAULT_FIELD_LENGTH , null , new Boolean ( true ) ) ; if ( iFieldSeq == 8 ) field = new BooleanField ( this , DEFAULT_TRANSPORT , Constants . DEFAULT_FIELD_LENGTH , null , null ) ; if ( iFieldSeq == 9 ) field = new PropertiesField ( this , PROPERTIES , Constants . DEFAULT_FIELD_LENGTH , null , null ) ; if ( field == null ) field = super . setupField ( iFieldSeq ) ; return field ; }
Add this field in the Record's field sequence.