1 19 package org.apache.cayenne.map; 20 21 28 public class ClientObjAttribute extends ObjAttribute { 29 30 protected boolean mandatory; 31 protected int maxLength = -1; 32 33 34 public ClientObjAttribute() { 35 super(); 36 } 37 38 public ClientObjAttribute(String name, String type, ObjEntity entity) { 39 super(name, type, entity); 40 } 41 42 public ClientObjAttribute(String name) { 43 super(name); 44 } 45 46 50 public boolean isMandatory() { 51 return mandatory; 52 } 53 54 public void setMandatory(boolean mandatory) { 55 this.mandatory = mandatory; 56 } 57 58 62 public int getMaxLength() { 63 return maxLength; 64 } 65 66 public void setMaxLength(int maxLength) { 67 this.maxLength = maxLength; 68 } 69 70 } 71 | Popular Tags |