summaryrefslogtreecommitdiff
path: root/src/lq/PMF.java
blob: 25ffde6efb5fe1ff961727fe19569943ef7d2983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package lq;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;

// Based on: http://code.google.com/appengine/docs/java/datastore/usingjdo.html
public final class PMF {
    private static final PersistenceManagerFactory pmfInstance =
        JDOHelper.getPersistenceManagerFactory("transactions-optional");

    private PMF() {}

    public static PersistenceManagerFactory get() {
        return pmfInstance;
    }
}