UPDATE table-name SET param1=?,param2=? WHERE id1=? AND id2=?
UPDATE table-name SET param1=?,param2=?,version={newvers} WHERE id1=? AND id2=? AND version={oldvers}
330331332333334335336337338339340341
updateTable(supertable, sm, clr, fieldMetaData); } // Do the actual update of this table // TODO Assert if this table is not yet initialised ? UpdateRequest req = getUpdateRequest(table, fieldMetaData, sm.getObject().getClass(), clr); req.execute(sm); // Update any secondary tables Collection secondaryTables = table.getSecondaryDatastoreClasses(); if (secondaryTables != null) {
362363364365366367368369370371372373374
private UpdateRequest getUpdateRequest(DatastoreClass table, AbstractMemberMetaData[] fieldMetaData, Class cls, ClassLoaderResolver clr) { RequestIdentifier reqID = new RequestIdentifier(table, fieldMetaData, RequestIdentifier.Type.UPDATE, cls.getName()); UpdateRequest req = (UpdateRequest) requestsByID.get(reqID); if (req == null) { req = new UpdateRequest(table, fieldMetaData, cls, clr); requestsByID.put(reqID, req); } return req; }