stringBuffer.append("='"); stringBuffer.append(property); stringBuffer.append("'");
if (property != null) { stringBuffer.append("='"); stringBuffer.append(property); stringBuffer.append("'"); } else { stringBuffer.append("= null"); }
    private void concatSQLInstructionUpdate(ClassDescriptor arg0, Object arg1) {        ResultSetAndStatement resultSetAndStatement = getOriginalResultSet(arg0, arg1);        StringBuffer stringBuffer = new StringBuffer();        stringBuffer.append("update ");        stringBuffer.append(arg0.getFullTableName());        stringBuffer.append(" set ");        try {            FieldDescriptor[] fieldDescriptors = arg0.getFieldDescriptions();            for (int i = 0; i < fieldDescriptors.length; i++) {                String columnName = fieldDescriptors[i].getColumnName();                resultSetAndStatement.m_rs.first();                String property = resultSetAndStatement.m_rs.getString(columnName);                stringBuffer.append(columnName);                stringBuffer.append("='");                stringBuffer.append(property);                stringBuffer.append("'");                if (i != fieldDescriptors.length - 1) {                    stringBuffer.append(", ");                }            }            stringBuffer.append(" where ");            FieldDescriptor[] fieldDescriptorsPK = arg0.getPkFields();            addCriteria(arg0, fieldDescriptorsPK, stringBuffer, arg1, " and ");            stringBuffer.append(";\n");            FileUtils.writeFile(PropertiesManager.getProperty("storageFileName"), stringBuffer                    .toString(), true);        } catch (Exception e) {            e.printStackTrace();        }    }