use of com.revolsys.identifier.SingleIdentifier in project com.revolsys.open by revolsys.
the class FileGdbRecordStore method appendValue.
public void appendValue(final StringBuilder buffer, Object value) {
if (value instanceof SingleIdentifier) {
final SingleIdentifier identifier = (SingleIdentifier) value;
value = identifier.getValue(0);
}
if (value == null) {
buffer.append("''");
} else if (value instanceof Number) {
buffer.append(value);
} else if (value instanceof java.util.Date) {
final String stringValue = Dates.format("yyyy-MM-dd", (java.util.Date) value);
buffer.append("DATE '" + stringValue + "'");
} else {
final Object value1 = value;
final String stringValue = DataTypes.toString(value1);
buffer.append("'");
buffer.append(stringValue.replaceAll("'", "''"));
buffer.append("'");
}
}
Aggregations