source: contrib/MailArchiver/sources/src/serpro/mailarchiver/util/jdo/PersistenceManagerFactory.java @ 6785

Revision 6785, 6.7 KB checked in by rafaelraymundo, 12 years ago (diff)

Ticket #2946 - Liberado codigo do MailArchiver?. Documentação na subpasta DOCS.

Line 
1/**
2 * MailArchiver is an application that provides services for storing and managing e-mail messages through a Web Services SOAP interface.
3 * Copyright (C) 2012  Marcio Andre Scholl Levien and Fernando Alberto Reuter Wendt and Jose Ronaldo Nogueira Fonseca Junior
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Affero General Public License as
7 * published by the Free Software Foundation, either version 3 of the
8 * License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU Affero General Public License for more details.
14 *
15 * You should have received a copy of the GNU Affero General Public License
16 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 */
18
19/******************************************************************************\
20*
21*  This product was developed by
22*
23*        SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO),
24*
25*  a government company established under Brazilian law (5.615/70),
26*  at Department of Development of Porto Alegre.
27*
28\******************************************************************************/
29
30package serpro.mailarchiver.util.jdo;
31
32import java.util.Collection;
33import java.util.List;
34import java.util.Map;
35
36import javax.jdo.datastore.Sequence;
37import javax.naming.Reference;
38
39import org.datanucleus.api.jdo.JDOPersistenceManager;
40import org.datanucleus.api.jdo.JDOQueryCache;
41import org.datanucleus.api.jdo.LifecycleListenerForClass;
42import org.datanucleus.query.cache.QueryCompilationCache;
43import org.datanucleus.store.query.cache.QueryDatastoreCompilationCache;
44
45public interface PersistenceManagerFactory
46    extends javax.jdo.PersistenceManagerFactory
47{
48    @Override
49    public PersistenceManager getPersistenceManager();
50
51    @Override
52    public PersistenceManager getPersistenceManager(String userName, String password);
53
54//    public boolean equals(Object obj);
55
56//    public Object getObjectInstance(Object obj, Name name, Context ctx, Hashtable env) throws Exception;
57
58    public Reference getReference();
59
60    @Override
61    public PersistenceManager getPersistenceManagerProxy();
62
63//    public Properties getProperties();
64
65//    public Collection<String> supportedOptions();
66
67    public void releasePersistenceManager(JDOPersistenceManager pm);
68
69//    public boolean isClosed();
70
71//    public void close();
72
73//    public DataStoreCache getDataStoreCache();
74
75    public JDOQueryCache getQueryCache();
76
77    public QueryCompilationCache getQueryGenericCompilationCache();
78
79    public QueryDatastoreCompilationCache getQueryDatastoreCompilationCache();
80
81//    public void setConnectionUserName(String userName);
82
83//    public  void setConnectionPassword(String password);
84
85//    public void setConnectionURL(String url);
86
87//    public void setConnectionDriverName(String driverName);
88
89//    public void setConnectionFactoryName(String connectionFactoryName);
90
91//    public void setConnectionFactory(Object connectionFactory);
92
93//    public void setConnectionFactory2Name(String connectionFactoryName);
94
95//    public void setConnectionFactory2(Object connectionFactory);
96
97//    public void setMultithreaded(boolean flag);
98
99//    public void setOptimistic(boolean flag);
100
101//    public void setRetainValues(boolean flag);
102
103//    public void setRestoreValues(boolean flag);
104
105//    public void setNontransactionalRead(boolean flag);
106
107//    public void setNontransactionalWrite(boolean flag);
108
109//    public void setIgnoreCache(boolean flag);
110
111//    public void setDetachAllOnCommit(boolean flag);
112
113//    public void setCopyOnAttach(boolean flag);
114
115//    public void setMapping(String mapping);
116
117    public void setCatalog(String catalog);
118
119    public void setSchema(String schema);
120
121//    public void setDatastoreReadTimeoutMillis(Integer timeout);
122
123//    public void setDatastoreWriteTimeoutMillis(Integer timeout);
124
125//    public void setTransactionType(String type);
126
127//    public void setPersistenceUnitName(String name);
128
129    public void setPersistenceXmlFilename(String name);
130
131//    public void setName(String name);
132
133//    public void setServerTimeZoneID(String id);
134
135//    public void setReadOnly(boolean flag);
136
137//    public void setTransactionIsolationLevel(String level);
138
139//    public String getConnectionUserName();
140
141    public String getConnectionPassword();
142
143//    public String getConnectionURL();
144
145//    public String getConnectionDriverName();
146
147//    public String getConnectionFactoryName();
148
149//    public String getConnectionFactory2Name();
150
151//    public Object getConnectionFactory();
152
153//    public Object getConnectionFactory2();
154
155//    public boolean getMultithreaded();
156
157//    public boolean getOptimistic();
158
159//    public boolean getRetainValues();
160
161//    public boolean getRestoreValues();
162
163//    public boolean getNontransactionalRead();
164
165//    public boolean getNontransactionalWrite();
166
167//    public boolean getIgnoreCache();
168
169//    public boolean getDetachAllOnCommit();
170
171//    public boolean getCopyOnAttach();
172
173//    public String getMapping();
174
175    public String getCatalog();
176
177    public String getSchema();
178
179//    public String getName();
180
181//    public String getPersistenceUnitName();
182
183    public String getPersistenceXmlFilename();
184
185//    public Integer getDatastoreReadTimeoutMillis();
186
187//    public Integer getDatastoreWriteTimeoutMillis();
188
189//    public String getServerTimeZoneID();
190
191//    public boolean getReadOnly();
192
193//    public String getTransactionType();
194
195//    public String getTransactionIsolationLevel();
196
197    public void setPrimaryClassLoader(ClassLoader loader);
198
199    public ClassLoader getPrimaryClassLoader();
200
201    public void setPersistenceProperties(Map<String, Object> props);
202
203    public Map<String, Object> getPersistenceProperties();
204
205    public List<LifecycleListenerForClass> getLifecycleListenerSpecifications();
206
207//    public void addInstanceLifecycleListener(InstanceLifecycleListener listener, Class[] classes);
208
209//    public void removeInstanceLifecycleListener(InstanceLifecycleListener listener);
210
211    public void addSequenceForFactoryClass(String factoryClassName, Sequence sequence);
212
213    public Sequence getSequenceForFactoryClass(String factoryClassName);
214
215//    public Set<FetchGroup> getFetchGroups();
216
217//    public FetchGroup getFetchGroup(Class cls, String name);
218
219//    public void addFetchGroups(FetchGroup[] groups);
220
221//    public void removeFetchGroups(FetchGroup[] groups);
222
223//    public void removeAllFetchGroups();
224
225//    public JDOMetadata newMetadata();
226
227//    public void registerMetadata(JDOMetadata metadata);
228
229//    public TypeMetadata getMetadata(String className);
230
231    public Collection<Class> getManagedClasses();
232
233}
Note: See TracBrowser for help on using the repository browser.