1 19 20 package org.netbeans.modules.j2ee.dd.api.ejb; 21 22 26 import org.netbeans.modules.j2ee.dd.api.common.VersionNotSupportedException; 27 28 public interface Entity extends EntityAndSession { 29 30 public static final String PERSISTENCE_TYPE = "PersistenceType"; public static final String PRIM_KEY_CLASS = "PrimKeyClass"; public static final String REENTRANT = "Reentrant"; public static final String CMP_VERSION = "CmpVersion"; public static final String ABSTRACT_SCHEMA_NAME = "AbstractSchemaName"; public static final String CMP_FIELD = "CmpField"; public static final String PRIMKEY_FIELD = "PrimkeyField"; public static final String PRIMKEYFIELDID = "PrimkeyFieldId"; public static final String QUERY = "Query"; public static final String PERSISTENCE_TYPE_BEAN = "Bean"; public static final String PERSISTENCE_TYPE_CONTAINER = "Container"; public static final String CMP_VERSION_ONE = "1.x"; public static final String CMP_VERSION_TWO = "2.x"; 44 public void setPersistenceType(String value); 45 46 public String getPersistenceType(); 47 48 public void setPrimKeyClass(String value); 49 50 public String getPrimKeyClass(); 51 52 public void setReentrant(boolean value); 53 54 public boolean isReentrant(); 55 56 public void setCmpVersion(String value); 57 58 public String getCmpVersion(); 59 60 public void setAbstractSchemaName(String value); 61 62 public String getAbstractSchemaName(); 63 64 public void setCmpField(int index, CmpField value); 65 66 public CmpField getCmpField(int index); 67 68 public void setCmpField(CmpField[] value); 69 70 public CmpField[] getCmpField(); 71 72 public int sizeCmpField(); 73 74 public int addCmpField(org.netbeans.modules.j2ee.dd.api.ejb.CmpField value); 75 76 public int removeCmpField(org.netbeans.modules.j2ee.dd.api.ejb.CmpField value); 77 78 public CmpField newCmpField(); 79 80 public void setPrimkeyField(String value); 81 82 public String getPrimkeyField(); 83 84 public void setPrimkeyFieldId(java.lang.String value); 85 86 public java.lang.String getPrimkeyFieldId(); 87 88 public void setQuery(int index, Query value); 89 90 public Query getQuery(int index); 91 92 public void setQuery(Query[] value); 93 94 public Query[] getQuery(); 95 96 public int sizeQuery(); 97 98 public int removeQuery(org.netbeans.modules.j2ee.dd.api.ejb.Query value); 99 100 public int addQuery(org.netbeans.modules.j2ee.dd.api.ejb.Query value); 101 102 public Query newQuery(); 103 104 105 106 } 107 108 | Popular Tags |