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