1 package org.apache.turbine.om;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 /***
20 * This interface specifies methods for uniquely identifying an object.
21 *
22 * @author <a href="mailto:jmcnally@collab.net">John D. McNally</a>
23 * @version $Id: Retrievable.java 264148 2005-08-29 14:21:04Z henning $
24 */
25 public interface Retrievable
26 {
27 /***
28 * get an id that differentiates this object from others
29 * of its class.
30 *
31 * @return The id value
32 */
33 String getQueryKey();
34
35 /***
36 * set an id that differentiates this object from others
37 * of its class.
38 *
39 * @param key The new id value
40 *
41 * @throws Exception A problem occured while setting the id.
42 */
43 void setQueryKey(String key)
44 throws Exception;
45
46 }