1 22 package org.jboss.ejb3.metamodel; 23 24 import java.util.ArrayList ; 25 import java.util.List ; 26 27 34 public class EntityEnterpriseBean extends EnterpriseBean 35 { 36 37 private String persistenceType; 38 39 private List cmpFields = new ArrayList (); 40 41 private List queries = new ArrayList (); 42 43 public String getPersistenceType() 44 { 45 return persistenceType; 46 } 47 48 public void setPersistenceType(String persistenceType) 49 { 50 this.persistenceType = persistenceType; 51 } 52 53 public List getCmpFields() 54 { 55 return cmpFields; 56 } 57 58 public void setCmpFields(List cmpFields) 59 { 60 this.cmpFields = cmpFields; 61 } 62 63 public void addCmpField(CmpField cmpField) 64 { 65 cmpFields.add(cmpField); 66 } 67 68 public List getQueries() 69 { 70 return queries; 71 } 72 73 public void setQueries(List queries) 74 { 75 this.queries = queries; 76 } 77 78 public void addQuery(Query query) 79 { 80 queries.add(query); 81 } 82 83 public String toString() 84 { 85 StringBuffer sb = new StringBuffer (100); 86 sb.append('['); 87 sb.append(super.toString()); 88 sb.append(","); 89 sb.append("persistenceType=").append(persistenceType); 90 sb.append(']'); 91 return sb.toString(); 92 } 93 } 94 | Popular Tags |