1
2
3
4
5
6
7
8
9
10 package com.sri.emo.dbobj;
11
12 import com.jcorporate.expresso.core.controller.Transition;
13 import com.jcorporate.expresso.core.db.DBException;
14
15 /***
16 * provide a transition for viewing, suitable for creating an
17 * HTTP link when all you have is a reference to this object. therefore, one requirement
18 * is that all information for such a transition
19 * (typically a controller/state combo, plus ID, plus name for label) must be
20 * contained in the object.
21 *
22 * @author Larry Hamel
23 */
24 public interface IViewable {
25
26 /***
27 * Provide a transition for viewing this object, suitable for creating an
28 * HTTP link.
29 *
30 * @return transtion for viewing, including label for name of object; never null
31 * @throws DBException upon database access error.
32 */
33 Transition getViewTrans() throws DBException;
34 }