001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package javax.jdo;
018:
019: import java.util.Collection;
020:
021: /**
022: * Mock class providing the declarations required to compile the Cocoon code when
023: * the actual library is not present.
024: *
025: * @version CVS $Id: PersistenceManager.java 433543 2006-08-22 06:22:54Z crossley $
026: */
027: abstract public interface PersistenceManager {
028: abstract void close();
029:
030: abstract public Transaction currentTransaction();
031:
032: abstract public void deletePersistent(Object o);
033:
034: abstract public void deletePersistentAll(Object[] o);
035:
036: abstract public void deletePersistentAll(Collection c);
037:
038: abstract public void evict(Object o);
039:
040: abstract public void evictAll();
041:
042: abstract public void evictAll(Object[] o);
043:
044: abstract public void evictAll(Collection o);
045:
046: abstract public Extent getExtent(Class c, boolean b);
047:
048: abstract public boolean getIgnoreCache();
049:
050: abstract public boolean getMultiThreaded();
051:
052: abstract public Object getObjectById(Object o, boolean b);
053:
054: abstract public Object getObjectId(Object o);
055:
056: abstract public Class getObjectIdClass(Class c);
057:
058: abstract public PersistenceManagerFactory getPersistenceManagerFactory();
059:
060: abstract public Object getTransactionlaObjectId(Object o);
061:
062: abstract public Object getUserObjec();
063:
064: abstract public boolean isClosed();
065:
066: abstract public void makeNontransactional(Object o);
067:
068: abstract public void makeNontransactionalAll(Object[] o);
069:
070: abstract public void makeNontransactionalAll(Collection c);
071:
072: abstract public void makePersistent(Object O);
073:
074: abstract public void makePersistentAll(Object[] O);
075:
076: abstract public void makePersistentAll(Collection O);
077:
078: abstract public void makeTransactional(Object O);
079:
080: abstract public void makeTransactionalAll(Object[] O);
081:
082: abstract public void makeTransactionalAll(Collection O);
083:
084: abstract public void makeTransient(Object O);
085:
086: abstract public void makeTransientAll(Object[] O);
087:
088: abstract public void makeTransientAll(Collection O);
089:
090: abstract public Object newObjectIdInstance(Class c, String s);
091:
092: abstract public Query newQuery();
093:
094: abstract public Query newQuery(Class c);
095:
096: abstract public Query newQuery(Class c, String s);
097:
098: abstract public Query newQuery(Class c, Collection co);
099:
100: abstract public Query newQuery(Class c, Collection co, String s);
101:
102: abstract public Query newQuery(Object o);
103:
104: abstract public Query newQuery(String s, Object o);
105:
106: abstract public Query newQuery(Extent e);
107:
108: abstract public Query newQuery(Extent e, String s);
109:
110: abstract public void refresh(Object o);
111:
112: abstract public void refreshAll();
113:
114: abstract public void refreshAll(Object[] o);
115:
116: abstract public void refreshAll(Collection c);
117:
118: abstract public void retrieve(Object o);
119:
120: abstract public void retrieveAll(Object[] o);
121:
122: abstract public void retrieveAll(Collection c);
123:
124: abstract public void setIgnoreCache(boolean b);
125:
126: abstract public void setMultithreaded(boolean b);
127:
128: abstract public void setUserObject(Object o);
129:
130: }
|