1 7 package org.jboss.ejb3.dd; 8 9 import java.util.ArrayList ; 10 import java.util.List ; 11 12 19 public class EntityEnterpriseBean extends EnterpriseBean 20 { 21 22 private String persistenceType; 23 24 private List cmpFields = new ArrayList (); 25 26 private List queries = new ArrayList (); 27 28 public String getPersistenceType() 29 { 30 return persistenceType; 31 } 32 33 public void setPersistenceType(String persistenceType) 34 { 35 this.persistenceType = persistenceType; 36 } 37 38 public List getCmpFields() 39 { 40 return cmpFields; 41 } 42 43 public void setCmpFields(List cmpFields) 44 { 45 this.cmpFields = cmpFields; 46 } 47 48 public void addCmpField(CmpField cmpField) 49 { 50 cmpFields.add(cmpField); 51 } 52 53 public List getQueries() 54 { 55 return queries; 56 } 57 58 public void setQueries(List queries) 59 { 60 this.queries = queries; 61 } 62 63 public void addQuery(Query query) 64 { 65 queries.add(query); 66 } 67 68 public String toString() 69 { 70 StringBuffer sb = new StringBuffer (100); 71 sb.append('['); 72 sb.append(super.toString()); 73 sb.append(","); 74 sb.append("persistenceType=").append(persistenceType); 75 sb.append(']'); 76 return sb.toString(); 77 } 78 } 79 | Popular Tags |