PageRenderTime 16ms CodeModel.GetById 7ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/tests/META-INF/jdoconfig.xml

http://datanucleus-appengine.googlecode.com/
XML | 92 lines | 67 code | 10 blank | 15 comment | 0 complexity | ea7284ddc90b4c32a2cb58d16ce5d5ce MD5 | raw file
 1<?xml version="1.0" encoding="UTF-8"?>
 2<!--**********************************************************************
 3Copyright (c) 2009 Google Inc.
 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
 8    http://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**********************************************************************-->
16<jdoconfig xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
17    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18    xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
19
20    <persistence-manager-factory name="originalStorageVersion">
21        <property name="javax.jdo.PersistenceManagerFactoryClass" value="org.datanucleus.api.jdo.JDOPersistenceManagerFactory"/>
22        <property name="javax.jdo.option.ConnectionURL" value="appengine"/>
23        <property name="datanucleus.appengine.ignorableMetaDataBehavior" value="ERROR"/>
24		<property name="datanucleus.cache.level2.type" value="None"/>
25		<property name="datanucleus.appengine.storageVersion" value="PARENTS_DO_NOT_REFER_TO_CHILDREN"/>
26    </persistence-manager-factory>
27
28    <persistence-manager-factory name="transactional">
29        <property name="javax.jdo.PersistenceManagerFactoryClass" value="org.datanucleus.api.jdo.JDOPersistenceManagerFactory"/>
30        <property name="javax.jdo.option.ConnectionURL" value="appengine"/>
31        <property name="datanucleus.appengine.ignorableMetaDataBehavior" value="ERROR"/>
32		<property name="datanucleus.cache.level2.type" value="None"/>
33    </persistence-manager-factory>
34
35    <persistence-manager-factory name="nontransactional">
36        <property name="javax.jdo.PersistenceManagerFactoryClass" value="org.datanucleus.api.jdo.JDOPersistenceManagerFactory"/>
37        <property name="javax.jdo.option.ConnectionURL" value="appengine"/>
38        <property name="javax.jdo.option.NontransactionalRead" value="true"/>
39        <property name="javax.jdo.option.NontransactionalWrite" value="true"/>
40        <property name="javax.jdo.option.RetainValues" value="true"/>
41		<property name="datanucleus.cache.level2.type" value="None"/>
42        <property name="datanucleus.appengine.autoCreateDatastoreTxns" value="false"/>
43        <property name="datanucleus.appengine.ignorableMetaDataBehavior" value="ERROR"/>
44    </persistence-manager-factory>
45
46    <persistence-manager-factory name="datastoreserviceconfigprops">
47        <property name="javax.jdo.PersistenceManagerFactoryClass" value="org.datanucleus.api.jdo.JDOPersistenceManagerFactory"/>
48        <property name="javax.jdo.option.ConnectionURL" value="appengine"/>
49        <property name="javax.jdo.option.NontransactionalRead" value="true"/>
50        <property name="javax.jdo.option.NontransactionalWrite" value="true"/>
51        <property name="javax.jdo.option.RetainValues" value="true"/>
52		<property name="datanucleus.cache.level2.type" value="None"/>
53        <property name="datanucleus.appengine.autoCreateDatastoreTxns" value="true"/>
54
55        <property name="javax.jdo.option.DatastoreReadTimeoutMillis" value="5000"/>
56        <property name="javax.jdo.option.DatastoreWriteTimeoutMillis" value="10000"/>
57        <property name="datanucleus.appengine.datastoreReadConsistency" value="EVENTUAL"/>
58    </persistence-manager-factory>
59
60    <!-- PMF for testing singleton flag -->
61    <persistence-manager-factory name="nontransactional-singleton">
62        <property name="javax.jdo.PersistenceManagerFactoryClass" value="org.datanucleus.api.jdo.JDOPersistenceManagerFactory"/>
63        <property name="javax.jdo.option.ConnectionURL" value="appengine"/>
64        <property name="javax.jdo.option.NontransactionalRead" value="true"/>
65        <property name="javax.jdo.option.NontransactionalWrite" value="true"/>
66        <property name="javax.jdo.option.RetainValues" value="true"/>
67        <property name="datanucleus.singletonPMFForName" value="true"/>
68		<property name="datanucleus.cache.level2.type" value="None"/>
69        <property name="datanucleus.appengine.autoCreateDatastoreTxns" value="false"/>
70        <property name="datanucleus.appengine.ignorableMetaDataBehavior" value="ERROR"/>
71    </persistence-manager-factory>
72
73
74    <persistence-manager-factory name="allowXGTxns">
75        <property name="javax.jdo.PersistenceManagerFactoryClass" value="org.datanucleus.api.jdo.JDOPersistenceManagerFactory"/>
76        <property name="javax.jdo.option.ConnectionURL" value="appengine"/>
77        <property name="javax.jdo.option.NontransactionalRead" value="true"/>
78        <property name="javax.jdo.option.NontransactionalWrite" value="true"/>
79        <property name="javax.jdo.option.RetainValues" value="true"/>
80        <property name="datanucleus.appengine.datastoreEnableXGTransactions" value="true"/>
81    </persistence-manager-factory>
82
83    <persistence-manager-factory name="disallowXGTxns">
84        <property name="javax.jdo.PersistenceManagerFactoryClass" value="org.datanucleus.api.jdo.JDOPersistenceManagerFactory"/>
85        <property name="javax.jdo.option.ConnectionURL" value="appengine"/>
86        <property name="javax.jdo.option.NontransactionalRead" value="true"/>
87        <property name="javax.jdo.option.NontransactionalWrite" value="true"/>
88        <property name="javax.jdo.option.RetainValues" value="true"/>
89        <property name="datanucleus.appengine.datastoreEnableXGTransactions" value="false"/>
90    </persistence-manager-factory>
91
92</jdoconfig>