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 | |
---|
30 | package serpro.mailarchiver.util.jdo; |
---|
31 | |
---|
32 | import org.datanucleus.ObjectManager; |
---|
33 | import org.datanucleus.query.typesafe.TypesafeQuery; |
---|
34 | |
---|
35 | public interface PersistenceManager |
---|
36 | extends javax.jdo.PersistenceManager |
---|
37 | { |
---|
38 | |
---|
39 | public ObjectManager getObjectManager(); |
---|
40 | |
---|
41 | @Override |
---|
42 | public PersistenceManagerFactory getPersistenceManagerFactory(); |
---|
43 | |
---|
44 | // public boolean getDetachAllOnCommit(); |
---|
45 | |
---|
46 | // public boolean getCopyOnAttach(); |
---|
47 | |
---|
48 | // public javax.jdo.FetchPlan getFetchPlan(); |
---|
49 | |
---|
50 | // public boolean getIgnoreCache(); |
---|
51 | |
---|
52 | // public boolean getMultithreaded(); |
---|
53 | |
---|
54 | // public void setDetachAllOnCommit(boolean flag); |
---|
55 | |
---|
56 | // public void setCopyOnAttach(boolean flag); |
---|
57 | |
---|
58 | // public void setIgnoreCache(boolean flag); |
---|
59 | |
---|
60 | // public void setMultithreaded(boolean flag); |
---|
61 | |
---|
62 | // public Date getServerDate(); |
---|
63 | |
---|
64 | // public void close(); |
---|
65 | |
---|
66 | // public boolean isClosed(); |
---|
67 | |
---|
68 | // public javax.jdo.Transaction currentTransaction(); |
---|
69 | |
---|
70 | // public void evict(Object obj); |
---|
71 | |
---|
72 | // public void evictAll(boolean subclasses, Class cls); |
---|
73 | |
---|
74 | // public void evictAll(Object[] pcs); |
---|
75 | |
---|
76 | // public void evictAll(Collection pcs); |
---|
77 | |
---|
78 | // public void evictAll(); |
---|
79 | |
---|
80 | // public void refresh(Object obj); |
---|
81 | |
---|
82 | // public void refreshAll(Object[] pcs); |
---|
83 | |
---|
84 | // public void refreshAll(Collection pcs); |
---|
85 | |
---|
86 | // public void refreshAll(); |
---|
87 | |
---|
88 | // public void refreshAll(javax.jdo.JDOException exc); |
---|
89 | |
---|
90 | // public void retrieve(Object pc, boolean useFetchPlan); |
---|
91 | |
---|
92 | // public void retrieve(Object pc); |
---|
93 | |
---|
94 | // public void retrieveAll(Object[] pcs); |
---|
95 | |
---|
96 | // public void retrieveAll(Object[] pcs, boolean useFetchPlan); |
---|
97 | |
---|
98 | // public void retrieveAll(boolean useFetchPlan, Object[] pcs); |
---|
99 | |
---|
100 | // public void retrieveAll(Collection pcs, boolean useFetchPlan); |
---|
101 | |
---|
102 | // public void retrieveAll(Collection pcs); |
---|
103 | |
---|
104 | // public Object makePersistent(Object obj); |
---|
105 | |
---|
106 | // public Object[] makePersistentAll(Object[] pcs); |
---|
107 | |
---|
108 | // public Collection makePersistentAll(Collection pcs); |
---|
109 | |
---|
110 | // public void deletePersistent(Object obj); |
---|
111 | |
---|
112 | // public void deletePersistentAll(Object[] pcs); |
---|
113 | |
---|
114 | // public void deletePersistentAll(Collection pcs); |
---|
115 | |
---|
116 | // public void makeTransient(Object pc, boolean useFetchPlan); |
---|
117 | |
---|
118 | // public void makeTransient(Object pc); |
---|
119 | |
---|
120 | // public void makeTransientAll(Object[] pcs); |
---|
121 | |
---|
122 | // public void makeTransientAll(Object[] pcs, boolean includeFetchPlan); |
---|
123 | |
---|
124 | // public void makeTransientAll(boolean includeFetchPlan, Object[] pcs); |
---|
125 | |
---|
126 | // public void makeTransientAll(Collection pcs, boolean useFetchPlan); |
---|
127 | |
---|
128 | // public void makeTransientAll(Collection pcs); |
---|
129 | |
---|
130 | // public void makeTransactional(Object pc); |
---|
131 | |
---|
132 | // public void makeTransactionalAll(Object[] pcs); |
---|
133 | |
---|
134 | // public void makeTransactionalAll(Collection pcs); |
---|
135 | |
---|
136 | // public void makeNontransactional(Object pc); |
---|
137 | |
---|
138 | // public void makeNontransactionalAll(Object[] pcs); |
---|
139 | |
---|
140 | // public void makeNontransactionalAll(Collection pcs); |
---|
141 | |
---|
142 | // public Object detachCopy(Object pc); |
---|
143 | |
---|
144 | // public Object[] detachCopyAll(Object[] pcs); |
---|
145 | |
---|
146 | // public Collection detachCopyAll(Collection pcs); |
---|
147 | |
---|
148 | // public javax.jdo.Query newQuery(); |
---|
149 | |
---|
150 | // public javax.jdo.Query newQuery(Object obj); |
---|
151 | |
---|
152 | // public javax.jdo.Query newQuery(String query); |
---|
153 | |
---|
154 | // public javax.jdo.Query newQuery(String language, Object query); |
---|
155 | |
---|
156 | // public javax.jdo.Query newQuery(Class cls); |
---|
157 | |
---|
158 | // public javax.jdo.Query newQuery(javax.jdo.Extent cln); |
---|
159 | |
---|
160 | // public javax.jdo.Query newQuery(Class cls, Collection cln); |
---|
161 | |
---|
162 | // public javax.jdo.Query newQuery(Class cls, String filter); |
---|
163 | |
---|
164 | // public javax.jdo.Query newQuery(Class cls, Collection cln, String filter); |
---|
165 | |
---|
166 | // public javax.jdo.Query newQuery(javax.jdo.Extent cln, String filter); |
---|
167 | |
---|
168 | // public javax.jdo.Query newNamedQuery(Class cls, String queryName); |
---|
169 | |
---|
170 | public <T extends Object> TypesafeQuery<T> newTypesafeQuery(Class cls); |
---|
171 | |
---|
172 | // public javax.jdo.Extent getExtent(Class pcClass, boolean subclasses); |
---|
173 | |
---|
174 | // public javax.jdo.Extent getExtent(Class pcClass); |
---|
175 | |
---|
176 | // public Object newInstance(Class pc); |
---|
177 | |
---|
178 | // public Object newObjectIdInstance(Class pcClass, Object key); |
---|
179 | |
---|
180 | // public Set getManagedObjects(); |
---|
181 | |
---|
182 | // public Set getManagedObjects(Class[] classes); |
---|
183 | |
---|
184 | // public Set getManagedObjects(EnumSet states); |
---|
185 | |
---|
186 | // public Set getManagedObjects(EnumSet states, Class[] classes); |
---|
187 | |
---|
188 | // public Object getObjectById(Object id); |
---|
189 | |
---|
190 | // public Object getObjectById(Object id, boolean validate); |
---|
191 | |
---|
192 | // public Object getObjectById(Class cls, Object key); |
---|
193 | |
---|
194 | // public Object[] getObjectsById(boolean validate, Object[] oids); |
---|
195 | |
---|
196 | // public Object[] getObjectsById(Object[] oids, boolean validate); |
---|
197 | |
---|
198 | // public Object[] getObjectsById(Object[] oids); |
---|
199 | |
---|
200 | // public Collection getObjectsById(Collection oids); |
---|
201 | |
---|
202 | // public Collection getObjectsById(Collection oids, boolean validate); |
---|
203 | |
---|
204 | // public Object getObjectId(Object pc); |
---|
205 | |
---|
206 | // public Object getTransactionalObjectId(Object pc); |
---|
207 | |
---|
208 | // public Class getObjectIdClass(Class cls); |
---|
209 | |
---|
210 | // public Object putUserObject(Object key, Object value); |
---|
211 | |
---|
212 | // public Object getUserObject(Object key); |
---|
213 | |
---|
214 | // public Object removeUserObject(Object key); |
---|
215 | |
---|
216 | // public void setUserObject(Object userObject); |
---|
217 | |
---|
218 | // public Object getUserObject(); |
---|
219 | |
---|
220 | // public void flush(); |
---|
221 | |
---|
222 | // public void checkConsistency(); |
---|
223 | |
---|
224 | // public javax.jdo.datastore.Sequence getSequence(String sequenceName); |
---|
225 | |
---|
226 | // public void addInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener listener, Class[] classes); |
---|
227 | |
---|
228 | // public void removeInstanceLifecycleListener(javax.jdo.listener.InstanceLifecycleListener listener); |
---|
229 | |
---|
230 | // public javax.jdo.datastore.JDOConnection getDataStoreConnection(); |
---|
231 | |
---|
232 | // public javax.jdo.FetchGroup getFetchGroup(Class cls, String name); |
---|
233 | |
---|
234 | // public void setDatastoreReadTimeoutMillis(Integer timeout); |
---|
235 | |
---|
236 | // public Integer getDatastoreReadTimeoutMillis(); |
---|
237 | |
---|
238 | // public void setDatastoreWriteTimeoutMillis(Integer timeout); |
---|
239 | |
---|
240 | // public Integer getDatastoreWriteTimeoutMillis(); |
---|
241 | |
---|
242 | } |
---|