1 19 20 package org.netbeans.modules.j2ee.dd.api.ejb; 21 22 import org.netbeans.modules.j2ee.dd.api.common.VersionNotSupportedException; 26 27 public interface Session extends EntityAndSession { 28 29 public static final String SERVICE_ENDPOINT = "ServiceEndpoint"; public static final String SESSION_TYPE = "SessionType"; public static final String TRANSACTION_TYPE = "TransactionType"; public static final String SESSION_TYPE_STATEFUL = "Stateful"; public static final String SESSION_TYPE_STATELESS = "Stateless"; public static final String TRANSACTION_TYPE_BEAN = "Bean"; public static final String TRANSACTION_TYPE_CONTAINER = "Container"; public static final String BUSINESS_LOCAL = "BusinessLocal"; public static final String BUSINESS_REMOTE = "BusinessRemote"; 39 public String getSessionType(); 40 41 public void setSessionType(String value); 42 43 public String getTransactionType(); 44 45 public void setTransactionType(String value); 46 47 49 public void setServiceEndpoint(String value) throws VersionNotSupportedException; 50 51 public String getServiceEndpoint() throws VersionNotSupportedException; 52 53 55 void setMappedName(String value) throws VersionNotSupportedException; 56 String getMappedName() throws VersionNotSupportedException; 57 void setBusinessLocal(int index, String value) throws VersionNotSupportedException; 58 String getBusinessLocal(int index) throws VersionNotSupportedException; 59 int sizeBusinessLocal() throws VersionNotSupportedException; 60 void setBusinessLocal(String [] value) throws VersionNotSupportedException; 61 String [] getBusinessLocal() throws VersionNotSupportedException; 62 int addBusinessLocal(String value) throws VersionNotSupportedException; 63 int removeBusinessLocal(String value) throws VersionNotSupportedException; 64 void setBusinessRemote(int index, String value) throws VersionNotSupportedException; 65 String getBusinessRemote(int index) throws VersionNotSupportedException; 66 int sizeBusinessRemote() throws VersionNotSupportedException; 67 void setBusinessRemote(String [] value) throws VersionNotSupportedException; 68 String [] getBusinessRemote() throws VersionNotSupportedException; 69 int addBusinessRemote(String value) throws VersionNotSupportedException; 70 int removeBusinessRemote(String value) throws VersionNotSupportedException; 71 void setTimeoutMethod(NamedMethod valueInterface) throws VersionNotSupportedException; 72 NamedMethod getTimeoutMethod() throws VersionNotSupportedException; 73 void setInitMethod(int index, InitMethod valueInterface) throws VersionNotSupportedException; 74 InitMethod getInitMethod(int index) throws VersionNotSupportedException; 75 int sizeInitMethod() throws VersionNotSupportedException; 76 void setInitMethod(InitMethod[] value) throws VersionNotSupportedException; 77 InitMethod[] getInitMethod() throws VersionNotSupportedException; 78 int addInitMethod(InitMethod valueInterface) throws VersionNotSupportedException; 79 int removeInitMethod(InitMethod valueInterface) throws VersionNotSupportedException; 80 void setRemoveMethod(int index, RemoveMethod valueInterface) throws VersionNotSupportedException; 81 RemoveMethod getRemoveMethod(int index) throws VersionNotSupportedException; 82 int sizeRemoveMethod() throws VersionNotSupportedException; 83 void setRemoveMethod(RemoveMethod[] value) throws VersionNotSupportedException; 84 RemoveMethod[] getRemoveMethod() throws VersionNotSupportedException; 85 int addRemoveMethod(RemoveMethod valueInterface) throws VersionNotSupportedException; 86 int removeRemoveMethod(RemoveMethod valueInterface) throws VersionNotSupportedException; 87 void setAroundInvoke(int index, AroundInvoke valueInterface) throws VersionNotSupportedException; 88 AroundInvoke getAroundInvoke(int index) throws VersionNotSupportedException; 89 int sizeAroundInvoke() throws VersionNotSupportedException; 90 void setAroundInvoke(AroundInvoke[] value) throws VersionNotSupportedException; 91 AroundInvoke[] getAroundInvoke() throws VersionNotSupportedException; 92 int addAroundInvoke(AroundInvoke valueInterface) throws VersionNotSupportedException; 93 int removeAroundInvoke(AroundInvoke valueInterface) throws VersionNotSupportedException; 94 void setPersistenceContextRef(int index, PersistenceContextRef valueInterface) throws VersionNotSupportedException; 95 PersistenceContextRef getPersistenceContextRef(int index) throws VersionNotSupportedException; 96 int sizePersistenceContextRef() throws VersionNotSupportedException; 97 void setPersistenceContextRef(PersistenceContextRef[] value) throws VersionNotSupportedException; 98 PersistenceContextRef[] getPersistenceContextRef() throws VersionNotSupportedException; 99 int addPersistenceContextRef(PersistenceContextRef valueInterface) throws VersionNotSupportedException; 100 int removePersistenceContextRef(PersistenceContextRef valueInterface) throws VersionNotSupportedException; 101 void setPersistenceUnitRef(int index, PersistenceUnitRef valueInterface) throws VersionNotSupportedException; 102 PersistenceUnitRef getPersistenceUnitRef(int index) throws VersionNotSupportedException; 103 int sizePersistenceUnitRef() throws VersionNotSupportedException; 104 void setPersistenceUnitRef(PersistenceUnitRef[] value) throws VersionNotSupportedException; 105 PersistenceUnitRef[] getPersistenceUnitRef() throws VersionNotSupportedException; 106 int addPersistenceUnitRef(PersistenceUnitRef valueInterface) throws VersionNotSupportedException; 107 int removePersistenceUnitRef(PersistenceUnitRef valueInterface) throws VersionNotSupportedException; 108 void setPostConstruct(int index, LifecycleCallback valueInterface) throws VersionNotSupportedException; 109 LifecycleCallback getPostConstruct(int index) throws VersionNotSupportedException; 110 int sizePostConstruct() throws VersionNotSupportedException; 111 void setPostConstruct(LifecycleCallback[] value) throws VersionNotSupportedException; 112 LifecycleCallback[] getPostConstruct() throws VersionNotSupportedException; 113 int addPostConstruct(LifecycleCallback valueInterface) throws VersionNotSupportedException; 114 int removePostConstruct(LifecycleCallback valueInterface) throws VersionNotSupportedException; 115 void setPreDestroy(int index, LifecycleCallback valueInterface) throws VersionNotSupportedException; 116 LifecycleCallback getPreDestroy(int index) throws VersionNotSupportedException; 117 int sizePreDestroy() throws VersionNotSupportedException; 118 void setPreDestroy(LifecycleCallback[] value) throws VersionNotSupportedException; 119 LifecycleCallback[] getPreDestroy() throws VersionNotSupportedException; 120 int addPreDestroy(LifecycleCallback valueInterface) throws VersionNotSupportedException; 121 int removePreDestroy(LifecycleCallback valueInterface) throws VersionNotSupportedException; 122 void setPostActivate(int index, LifecycleCallback valueInterface) throws VersionNotSupportedException; 123 LifecycleCallback getPostActivate(int index) throws VersionNotSupportedException; 124 int sizePostActivate() throws VersionNotSupportedException; 125 void setPostActivate(LifecycleCallback[] value) throws VersionNotSupportedException; 126 LifecycleCallback[] getPostActivate() throws VersionNotSupportedException; 127 int addPostActivate(LifecycleCallback valueInterface) throws VersionNotSupportedException; 128 int removePostActivate(LifecycleCallback valueInterface) throws VersionNotSupportedException; 129 void setPrePassivate(int index, LifecycleCallback valueInterface) throws VersionNotSupportedException; 130 LifecycleCallback getPrePassivate(int index) throws VersionNotSupportedException; 131 int sizePrePassivate() throws VersionNotSupportedException; 132 void setPrePassivate(LifecycleCallback[] value) throws VersionNotSupportedException; 133 LifecycleCallback[] getPrePassivate() throws VersionNotSupportedException; 134 int addPrePassivate(LifecycleCallback valueInterface) throws VersionNotSupportedException; 135 int removePrePassivate(LifecycleCallback valueInterface) throws VersionNotSupportedException; 136 NamedMethod newNamedMethod() throws VersionNotSupportedException; 137 InitMethod newInitMethod() throws VersionNotSupportedException; 138 RemoveMethod newRemoveMethod() throws VersionNotSupportedException; 139 AroundInvoke newAroundInvoke() throws VersionNotSupportedException; 140 PersistenceContextRef newPersistenceContextRef() throws VersionNotSupportedException; 141 PersistenceUnitRef newPersistenceUnitRef() throws VersionNotSupportedException; 142 LifecycleCallback newLifecycleCallback() throws VersionNotSupportedException; 143 144 } 145 146 | Popular Tags |