MCPcopy Create free account
hub / github.com/apache/cayenne / update

Method update

cayenne/src/main/java/org/apache/cayenne/query/SQLExec.java:179–189  ·  view source on GitHub ↗
(ObjectContext context)

Source from the content-addressed store, hash-verified

177 }
178
179 public int update(ObjectContext context) {
180
181 // TODO: create a corresponding method in ObjectContext
182 QueryResult results = execute(context);
183
184 if (results.size() != 1) {
185 throw new CayenneRuntimeException("Expected a single update result. Got a total of %d", results.size());
186 }
187
188 return results.firstUpdateCount();
189 }
190
191 public int[] updateBatch(ObjectContext context) {
192 // TODO: create a corresponding method in ObjectContext

Callers 2

setUpMethod · 0.45
createHmacMethod · 0.45

Calls 3

executeMethod · 0.95
sizeMethod · 0.95
firstUpdateCountMethod · 0.95

Tested by 1

setUpMethod · 0.36