KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > genimen > djeneric > test > strong > impl > TestObjectImpl


1 package com.genimen.djeneric.test.strong.impl;
2
3 import com.genimen.djeneric.repository.DjExtent;
4 import com.genimen.djeneric.repository.DjSession;
5 import com.genimen.djeneric.repository.exceptions.DjenericException;
6 import com.genimen.djeneric.repository.rdbms.RdbmsDjenericObject;
7 import com.genimen.djeneric.test.strong.TestException;
8
9 // Place your custom code BETWEEN the following tags
10
//<DjenericManualCode id="1">
11
//</DjenericManualCode>
12
public class TestObjectImpl extends RdbmsDjenericObject
13 {
14
15   protected TestObjectImpl(DjSession session, DjExtent extent) throws DjenericException
16   {
17     super(session, extent);
18   }
19
20   public boolean isMarkedForDestroy()
21   {
22     return isMarkedForDelete();
23   }
24
25   public void destroy() throws TestException
26   {
27     try
28     {
29       markForDelete();
30     }
31     catch (Exception JavaDoc x)
32     {
33       throw new TestException(x);
34     }
35   }
36
37   public void checkRequired() throws TestException
38   {
39     try
40     {
41       checkRequiredProperties();
42     }
43     catch (Exception JavaDoc x)
44     {
45       throw new TestException(x);
46     }
47   }
48
49   public void reloadFromStore() throws TestException
50   {
51     try
52     {
53       reload();
54     }
55     catch (Exception JavaDoc x)
56     {
57       throw new TestException(x);
58     }
59   }
60
61   public void makeTransient() throws TestException
62   {
63     try
64     {
65       setTransient(true);
66     }
67     catch (Exception JavaDoc x)
68     {
69       throw new TestException(x);
70     }
71   }
72
73   // Place your custom code BETWEEN the following tags
74
//<DjenericManualCode>
75
//</DjenericManualCode>
76
}
Popular Tags