Move the output buffer to this field (Override this to use non-standard buffers).
Warning: Check to make sure the field.isSelected() before moving data!
@param field The field to move the data from.
@exception DBException File exception.
559606
public int dataToField(Field field) throws DBException
    {
        int iErrorCode = field.setData(((Vector)this.getDataSource()).elementAt(m_iCurrentField), Constants.DISPLAY, Constants.READ_MOVE);
        m_iCurrentField++;
        return iErrorCode;
    }
219966
public void processInputData(PrintWriter out)
        throws DBException
    {
        String strMoveValue = this.getProperty(DBParams.COMMAND);      // Display record
        if (strMoveValue == null)
            strMoveValue = Constants.BLANK;

        String strError = this.getTask().getLastError(0);
        if ((strError != null) && (strError.length() > 0))
            strError = strError + " on " + strMoveValue;
        if ((strError != null) && (strError.length() > 0))
        {
            out.println(Utility.startTag(XMLTags.STATUS_TEXT));
            out.println(Utility.startTag(XMLTags.TEXT) + "Error: " + strError + Utility.endTag(XMLTags.TEXT));
            out.println(Utility.startTag(XMLTags.ERROR) + "error" + Utility.endTag(XMLTags.ERROR));
            Record record = ((BasePanel)this.getScreenField()).getMainRecord();
            if (record != null)
                record.setEditMode(Constants.EDIT_NONE);    // Make sure this isn't updated on screen free
            out.println(Utility.endTag(XMLTags.STATUS_TEXT));
        }
        else
        {
            String strMessage = this.getTask().getStatusText(DBConstants.INFORMATION_MESSAGE);
            if (strMessage != null)
                if (strMoveValue.length() > 0)
                    if ((strMessage.length() > 0) && (!(this.getScreenField() instanceof BaseGridScreen))) // TODO localize
                    {
                        out.println(Utility.startTag(XMLTags.STATUS_TEXT));
                        out.println(Utility.startTag(XMLTags.TEXT) + strMessage + Utility.endTag(XMLTags.TEXT));
                        out.println(Utility.startTag(XMLTags.ERROR) + "information" + Utility.endTag(XMLTags.ERROR));
                        out.println(Utility.endTag(XMLTags.STATUS_TEXT));
                    }
        }
    }
927097
public int dataToFields(Rec record) throws DBException
    {
        try   {
            return ((BaseBuffer)m_dataSource).bufferToFields((FieldList)record, DBConstants.DONT_DISPLAY, DBConstants.READ_MOVE);
        } catch (Exception ex) {
            throw DatabaseException.toDatabaseException(ex);
        }
    }
937751
private static void writeValue(ObjectOutput out, Fieldable field) throws IOException
   {
      Object o = field.stringValue();
      if (o != null)
      {
         // Use writeObject instead of writeUTF because the value could contain unsupported
         // characters
         out.writeObject(o);
         return;
      }
      o = field.tokenStreamValue();
      if (o != null)
      {
         out.writeObject(o);
         return;
      }
      o = field.readerValue();
      throw new RuntimeException("Unsupported value " + o);
   }
271751
public void writeFields(ArrayList<String> fields) throws IOException {

		if (newWriter) {
			this.newWriter = false;
		} else {
			this.newLine();
		}
		Iterator<String> si = fields.iterator();
		while (si.hasNext()) {
			this.writeField(si.next());
		}
	}
1011506
public void fieldsToData(Rec record) throws DBException
    {
        this.setupNewDataSource();
        int fieldCount = record.getFieldCount(); // Number of fields to write out
        for (int iFieldSeq = Constants.MAIN_FIELD; iFieldSeq < fieldCount + Constants.MAIN_FIELD; iFieldSeq++)
        {
            Field field = record.getField(iFieldSeq);
            if (field.isVirtual()) //x || (!field.isSelected()))
                continue;               // This field is never moved to a buffer
            this.fieldToData(field);
        }
    }
821780
@Override
	public void addField(final SchemaField field) {

		if (field instanceof FieldDefinition) {
			addField((FieldDefinition) field);
		} else if (field instanceof CopyFieldDefinition) {
			addCopyField((CopyFieldDefinition) field);
		}
	}
150298
public void init(BaseField field, boolean bChangeDataOnRefresh)
    {
        super.init(field);
        m_objOriginalData = null;
        m_bAlwaysEnabled = false;
        m_bChangeDataOnRefresh = bChangeDataOnRefresh;
        this.setRespondsToMode(DBConstants.SCREEN_MOVE, false);
    }
714508
public int moveFieldToThis(BaseField field, boolean bDisplayOption, int iMoveMode)
    {   // Save the record and datarecord.
        if (field == null)
            return DBConstants.NORMAL_RETURN;
        if (field instanceof CounterField)
        {
            if (this.getReferenceRecord(null, false) == null)
                if (field.getRecord().getListener(ClearFieldReferenceOnCloseHandler.class) == null) // While it is okay to have two fields reference on record, don't default it.
                    this.setReferenceRecord(field.getRecord());
        }
        else if (field instanceof ReferenceField)
        {
//x no           this.setReferenceRecord(((ReferenceField)field).getReferenceRecord());
        }
        else
            this.setReferenceRecord(null);
        return super.moveFieldToThis(field, bDisplayOption, iMoveMode);
    }
512216
public void updateField(Field field) {
        this.name = field.getName();
        this.obj = TypeCheckUtil.isObjClass(field);
        this.list = TypeCheckUtil.isListClass(field);
        this.number = TypeCheckUtil.isNumberClass(field);
        this.enumType = field.getType().isEnum();
        this.typeClass = field.getType();
        this.type = field.getType().getSimpleName();

        if (this.list) {
            this.innerClass = ValidationObjUtil.getListInnerClassFromGenericType(field.getGenericType());
            this.type += "<" + this.innerClass.getSimpleName() + ">";
        }
    }
1103814
public void doRemove(FieldTable table, KeyAreaInfo keyArea, BaseBuffer buffer) throws DBException
    {
        if (!this.atCurrent(buffer))
        {
            buffer = this.doSeek("==", table, keyArea);
            if (buffer == null)
                throw new DBException(Constants.FILE_INCONSISTENCY);
        }
        this.removeCurrent(buffer);
    }
292941
public boolean compareNextToField(FieldInfo field)   // Must be to call right Get calls
    {
        Object objNext = this.getNextData();
        if (objNext == DATA_ERROR)
            return false;  // EOF
        if (objNext == DATA_EOF)
            return false;  // EOF
        if (objNext == DATA_SKIP)
            return true;  // Don't set this field
        Object objField = field.getData();
        if ((objNext == null) || (objField == null))
        {
            if ((objNext == null) && (objField == null))
                return true;
            return false;
        }
        return objNext.equals(objField);
    }
341802
private void processField(Field field) {
    PropertyMetadata propertyMetadata = IntrospectionUtils.getPropertyMetadata(field);
    if (propertyMetadata != null) {
      // If the field is from a super class, there might be some
      // overrides, so process those.
      if (!field.getDeclaringClass().equals(entityClass)) {
        applyPropertyOverride(propertyMetadata);
      }
      entityMetadata.putPropertyMetadata(propertyMetadata);
      if (field.isAnnotationPresent(Version.class)) {
        processVersionField(propertyMetadata);
      } else if (field.isAnnotationPresent(CreatedTimestamp.class)) {
        processCreatedTimestampField(propertyMetadata);
      } else if (field.isAnnotationPresent(UpdatedTimestamp.class)) {
        processUpdatedTimestampField(propertyMetadata);
      }
    }
  }
821577
public void remove() throws DBException
    {
        super.remove();
        if ((m_iLogicalFilePosition != UNKNOWN_POSITION) && (m_iLogicalFilePosition != ADD_NEW_POSITION))
            m_gridBuffer.addElement(m_iLogicalFilePosition, null, m_gridList);
    }
257185
public void writeField(ObjectOutputStream daOut, Converter converter) throws IOException
    {
        String strFieldName = DBConstants.BLANK;
        if (converter != null) if (converter.getField() != null)
            strFieldName = converter.getField().getClass().getName();
        Object data = null;
        if (converter != null)
            data = converter.getData();
        daOut.writeUTF(strFieldName);
        daOut.writeObject(data);
    }
1149363
public void fieldsToData(Rec record) throws DBException
    {
        BaseBuffer buffer = this.getNewDataBuffer();
        this.doSetHandle(buffer, DBConstants.DATA_SOURCE_HANDLE); // This way you can retrieve the current buffer.
        super.fieldsToData(record);
        buffer.finishBuffer();
    }
508526
@Override
	public void writeTo(T t, CodedOutputStream out) throws IOException {
		for (FieldInfo fieldInfo : fieldInfos) {
			Object value = FieldUtils.getField(t, fieldInfo.getField());
			if (value != null) {
				writeTo(fieldInfo, value, out);
			}
		}

	}