Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/objectstyle/cayenne/wocompat/EOObjEntity.java


1   package org.objectstyle.cayenne.wocompat;
2   
3   import org.objectstyle.cayenne.map.ObjEntity;
4   
5   /**
6    * An EOObjEntity is a mapping descriptor of a Java class property with added
7    * fields for WebOBjects EOModel.
8    * It contains the information about the Java class itself, as well
9    * as its mapping to the DbEntity layer.
10   *
11   * @author Dario Bagatto
12   *
13   */
14  public class EOObjEntity extends ObjEntity {
15  
16      // flag that indicates whether this Entity represents a client java class
17      protected boolean isClientEntity;
18      // flag that indicates whether this Entity has a superclass set in the eonmodel
19      protected boolean hasSuperClass;
20      // flag that indicates whether this Entity is set as abstract in the eomodel
21      protected boolean isAbstractEntity;
22  
23  
24      public EOObjEntity() {
25          super();
26      }
27  
28      public EOObjEntity(String s) {
29          super(s);
30      }
31  
32      /**
33       * Sets the the superclass state.
34       * @param value
35       */
36      public void setHasSuperClass(boolean value) {
37          hasSuperClass = value;
38      }
39  
40      /**
41       * Returns the superclass state.
42       * @return true when there is a superclass defined in the eomodel.
43       */
44      public boolean getHasSuperClass() {
45          return hasSuperClass;
46      }
47  
48      /**
49       * Sets the client entity state.
50       * @param value
51       */
52      public void setIsClientEntity(boolean value) {
53          isClientEntity = value;
54      }
55  
56      /**
57       * Returns the client entity flag
58       * @return true when this entity object represents a client java class.
59       */
60      public boolean getIsClientEntity() {
61          return isClientEntity;
62      }
63  
64      /**
65       * Sets the abstract entity flag.
66       * @param value
67       */
68      public void setIsAbstractEntity(boolean value) {
69          isAbstractEntity = value;
70      }
71  
72      /**
73       * Returns the abstract Entity state
74       * @return true if this entity is set as abstract int the eomodel.
75       */
76      public boolean getIsAbstractEntity() {
77          return isAbstractEntity;
78      }
79  
80  }