protected void writeValueIntoRow(AbstractRecord row, DatabaseField field, Object fieldValue) { if (((EISDescriptor)this.getDescriptor()).isXMLFormat()) { row.put(field, fieldValue); } else { row.add(field, fieldValue); } }
/** * INTERNAL: * We override this method in order to set the session on the record if the data * format is XML. * * Get a value from the object and set that in the respective field of the row. */ @Override public void writeFromObjectIntoRow(Object object, AbstractRecord row, AbstractSession session, WriteType writeType) { if (((EISDescriptor) this.getDescriptor()).isXMLFormat()) { ((XMLRecord) row).setSession(session); } super.writeFromObjectIntoRow(object, row, session, writeType); } }
protected void writeValueIntoRow(AbstractRecord row, DatabaseField field, Object fieldValue) { if (((EISDescriptor)this.getDescriptor()).isXMLFormat()) { row.put(field, fieldValue); } else { row.add(field, fieldValue); } }
protected void writeValueIntoRow(AbstractRecord row, DatabaseField field, Object fieldValue) { if (((EISDescriptor)this.getDescriptor()).getDataFormat() == EISDescriptor.XML) { row.put(field, fieldValue); } else { row.add(field, fieldValue); } }
/** * INTERNAL: * We override this method in order to set the session on the record if the data * format is XML. * * Get a value from the object and set that in the respective field of the row. */ public void writeFromObjectIntoRow(Object object, AbstractRecord row, AbstractSession session) { if (((EISDescriptor) this.getDescriptor()).getDataFormat() == EISDescriptor.XML) { ((XMLRecord) row).setSession(session); } super.writeFromObjectIntoRow(object, row, session); } }
/** * INTERNAL: * We override this method in order to set the session on the record if the data * format is XML. * * Get a value from the object and set that in the respective field of the row. */ @Override public void writeFromObjectIntoRow(Object object, AbstractRecord row, AbstractSession session, WriteType writeType) { if (((EISDescriptor) this.getDescriptor()).isXMLFormat()) { ((XMLRecord) row).setSession(session); } super.writeFromObjectIntoRow(object, row, session, writeType); } }