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

Quick Search    Search Deep

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


1   package org.objectstyle.cayenne.wocompat;
2   
3   import org.objectstyle.cayenne.map.ObjAttribute;
4   import org.objectstyle.cayenne.map.ObjEntity;
5   
6   /**
7    * An EOObjAttribute is a mapping descriptor of a Java class property with added
8    * fields for WebOBjects EOModel.
9    *
10   * @author Dario Bagatto
11   *
12   */
13  public class EOObjAttribute extends ObjAttribute {
14  
15      // flag whether this attribute is read only.
16      protected boolean readOnly;
17  
18  
19      public EOObjAttribute() {
20          super();
21      }
22  
23  
24      public EOObjAttribute(String name) {
25          super(name);
26      }
27  
28  
29      public EOObjAttribute(String name, String type, ObjEntity entity) {
30          super(name, type, entity);
31      }
32  
33  
34      /**
35       * Sets the read only state of this attribute.
36       * @param readOnly
37       */
38      public void setReadOnly(boolean readOnly) {
39          this.readOnly = readOnly;
40      }
41  
42      /**
43       * Get the read only state of this attribute
44       * @return read only state of this attribute
45       */
46      public boolean getReadOnly() {
47          return readOnly;
48      }
49  
50  }