1
2
3
4
5
6
7 package org.apache.jetspeed.om.registry;
8 import java.util.List;
9 import org.apache.torque.TorqueException;
10 /***
11 * @author susinha
12 *
13 * To change the template for this generated type comment go to
14 * Window>Preferences>Java>Code Generation>Code and Comments
15 */
16 public interface DBRegistry {
17
18 /*** the default database name for this class */
19 public static final String DATABASE_NAME = "default";
20
21 /***
22 * Method to get data.
23 *
24 * @param criteria object used to create the SELECT statement.
25 * @return List of selected Objects
26 * @throws TorqueException Any exceptions caught during processing will be
27 * rethrown wrapped into a TorqueException.
28 */
29 public List getXREGDataFromDb() throws TorqueException;
30
31 /***
32 * Method to data.
33 *
34 * @param timestamp when database service ran last time.
35 * @return boolean if data has been modified
36 * @throws TorqueException Any exceptions caught during processing will be
37 * rethrown wrapped into a TorqueException.
38 */
39 public boolean isModified(String lastUpdateDate ) throws TorqueException;
40
41 }