PMF.java
上传用户:cdpainuo
上传日期:2022-07-12
资源大小:5257k
文件大小:0k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. package com.appspot.cindyblog.common;
  2. import javax.jdo.JDOHelper;
  3. import javax.jdo.PersistenceManagerFactory;
  4. /**
  5.  * @author Max Ross <maxr@google.com>
  6.  */
  7. public final class PMF {
  8.   private static final PersistenceManagerFactory INSTANCE =
  9.       JDOHelper.getPersistenceManagerFactory("transactions-optional");
  10.   public static PersistenceManagerFactory get() {
  11.     return INSTANCE;
  12.   }
  13.   private PMF() {}
  14. }