KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > pim > business > base > BasePimImpl


1 package org.enhydra.pim.business.base;
2
3 import java.math.BigDecimal JavaDoc;
4 import org.enhydra.pim.business.api.BasePimInterface;
5
6 /**
7  * @author P.Djojic Apr 21, 2005 2:54:33 AM
8  *
9  * TODO BasePimImpl
10  */

11 public class BasePimImpl implements BasePimInterface , java.io.Serializable JavaDoc {
12
13     protected boolean dirty = false;
14
15     protected BigDecimal JavaDoc handle = null;
16
17     /**
18      *
19      */

20     public BasePimImpl(BigDecimal JavaDoc handle) {
21         super();
22         this.dirty = false;
23         this.handle = handle;
24     }
25
26     /**
27      * Data are changed.
28      *
29      * @param __dirty
30      * new value.
31      */

32     public void setDirty(boolean _dirty) {
33         dirty = _dirty;
34     }
35
36     /**
37      * Are data changed
38      *
39      * @return Are data changed.
40      */

41     public boolean isDirty() {
42         return dirty;
43     }
44
45     /**
46      * @return Returns the handle.
47      */

48     public BigDecimal JavaDoc getHandle() {
49         return handle;
50     }
51
52     /**
53      * @param handle
54      * The handle to set.
55      */

56     public void setHandle(BigDecimal JavaDoc handle) {
57         this.handle = handle;
58     }
59
60     /**
61      * Reset all properties to null/defult
62      */

63     public void clean() {
64         this.dirty = false;
65         this.handle = null;
66     }
67
68 }
Popular Tags