PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/com/google/appengine/datanucleus/BatchPutManager.java

http://datanucleus-appengine.googlecode.com/
Java | 36 lines | 11 code | 5 blank | 20 comment | 0 complexity | 9f247bbf74b7e9f19329e2c3ab185ae0 MD5 | raw file
 1/**********************************************************************
 2Copyright (c) 2009 Google Inc.
 3
 4Licensed under the Apache License, Version 2.0 (the "License");
 5you may not use this file except in compliance with the License.
 6You may obtain a copy of the License at
 7
 8http://www.apache.org/licenses/LICENSE-2.0
 9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15**********************************************************************/
16package com.google.appengine.datanucleus;
17
18import org.datanucleus.state.ObjectProvider;
19
20import java.util.List;
21
22/**
23 * Manages batch inserts that are initiated via standard JDO calls.
24 *
25 * @author Max Ross <maxr@google.com>
26 */
27public class BatchPutManager extends BatchManager<ObjectProvider> {
28
29  String getOperation() {
30    return "insert";
31  }
32
33  void processBatchState(DatastorePersistenceHandler handler, List<ObjectProvider> opList) {
34    handler.insertObjectsInternal(opList);
35  }
36}