private String valueAsString(Object value) { if (value instanceof RecordDataItem) { RecordDataItem recordDataItem = (RecordDataItem) value; if (!recordDataItem.isValueNull()) { return recordDataItem.getDisplayValue().toString(); } else { return ""; } } else { return (value != null ? value.toString() : ""); } }
private boolean isCDATA(RecordDataItem valueAt) { int type = valueAt.getDataType(); return (type == Types.CHAR || type == Types.VARCHAR || type == Types.LONGVARCHAR); }