PageRenderTime 38ms CodeModel.GetById 30ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/demos/helloorm/src/com/google/appengine/demos/helloorm/PMF.java

http://datanucleus-appengine.googlecode.com/
Java | 20 lines | 11 code | 5 blank | 4 comment | 0 complexity | 1a78b3e0ad9a75e4d22ca3e6a5a9c456 MD5 | raw file
 1// Copyright 2008 Google Inc. All Rights Reserved.
 2package com.google.appengine.demos.helloorm;
 3
 4import javax.jdo.JDOHelper;
 5import javax.jdo.PersistenceManagerFactory;
 6
 7/**
 8 * @author Max Ross <maxr@google.com>
 9 */
10public final class PMF {
11
12  private static final PersistenceManagerFactory INSTANCE =
13      JDOHelper.getPersistenceManagerFactory("transactional");
14
15  public static PersistenceManagerFactory get() {
16    return INSTANCE;
17  }
18
19  private PMF() {}
20}