00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 package org.objectweb.jonas.webapp.jonasadmin.service.ejb;
00027
00028 import javax.servlet.http.HttpServletRequest;
00029
00030 import org.apache.struts.action.ActionErrors;
00031 import org.apache.struts.action.ActionMapping;
00032
00036 public class EjbEntityForm extends EjbForm {
00037
00038
00039
00043 private int cacheSize = 0;
00044 private int maxCacheSize = 0;
00045 private int minPoolSize = 0;
00046 private int passivationTimeOut = 0;
00047 private int inactivityTimeOut = 0;
00048 private int poolSize = 0;
00049 private boolean shared = false;
00050 private boolean prefetch = false;
00051 private String lockPolicy = null;
00052 private String persistency = null;
00053
00054 private int usedInTxInstance = 0;
00055 private int usedOutTxInstance = 0;
00056 private int unusedInstance = 0;
00057 private int passivatedInstance = 0;
00058 private int removedInstance = 0;
00059
00060
00061
00069 public void reset(ActionMapping mapping, HttpServletRequest request) {
00070 super.reset(mapping, request);
00071 cacheSize = 0;
00072 maxCacheSize = 0;
00073 minPoolSize = 0;
00074 passivationTimeOut = 0;
00075 inactivityTimeOut = 0;
00076 poolSize = 0;
00077 shared = false;
00078 prefetch = false;
00079 lockPolicy = null;
00080 persistency = null;
00081
00082 usedInTxInstance = 0;
00083 usedOutTxInstance = 0;
00084 unusedInstance = 0;
00085 passivatedInstance = 0;
00086 removedInstance = 0;
00087 }
00088
00099 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
00100 return super.validate(mapping, request);
00101 }
00102
00103
00104 public String getPersistency() {
00105 return persistency;
00106 }
00107
00108 public void setPersistency(String persistency) {
00109 this.persistency = persistency;
00110 }
00111
00112 public int getCacheSize() {
00113 return cacheSize;
00114 }
00115
00116 public int getMaxCacheSize() {
00117 return maxCacheSize;
00118 }
00119
00120 public int getMinPoolSize() {
00121 return minPoolSize;
00122 }
00123
00124 public int getPassivationTimeOut() {
00125 return passivationTimeOut;
00126 }
00127
00128 public int getInactivityTimeOut() {
00129 return inactivityTimeOut;
00130 }
00131
00132 public int getPoolSize() {
00133 return poolSize;
00134 }
00135
00136 public String getLockPolicy() {
00137 return lockPolicy;
00138 }
00139
00140 public void setLockPolicy(String lockPolicy) {
00141 this.lockPolicy = lockPolicy;
00142 }
00143
00144 public boolean getShared() {
00145 return shared;
00146 }
00147
00148 public boolean getPrefetch() {
00149 return prefetch;
00150 }
00151
00152 public void setCacheSize(int cacheSize) {
00153 this.cacheSize = cacheSize;
00154 }
00155
00156 public void setMaxCacheSize(int maxCacheSize) {
00157 this.maxCacheSize = maxCacheSize;
00158 }
00159
00160 public void setMinPoolSize(int minPoolSize) {
00161 this.minPoolSize = minPoolSize;
00162 }
00163
00164 public void setPassivationTimeOut(int passivationTimeOut) {
00165 this.passivationTimeOut = passivationTimeOut;
00166 }
00167
00168 public void setInactivityTimeOut(int inactivityTimeOut) {
00169 this.inactivityTimeOut = inactivityTimeOut;
00170 }
00171
00172 public void setPoolSize(int poolSize) {
00173 this.poolSize = poolSize;
00174 }
00175
00176 public void setShared(boolean shared) {
00177 this.shared = shared;
00178 }
00179
00180 public void setPrefetch(boolean prefetch) {
00181 this.prefetch = prefetch;
00182 }
00183
00184 public int getPassivatedInstance() {
00185 return passivatedInstance;
00186 }
00187
00188 public void setPassivatedInstance(int passivatedInstance) {
00189 this.passivatedInstance = passivatedInstance;
00190 }
00191
00192 public int getRemovedInstance() {
00193 return removedInstance;
00194 }
00195
00196 public void setRemovedInstance(int removedInstance) {
00197 this.removedInstance = removedInstance;
00198 }
00199
00200 public int getUnusedInstance() {
00201 return unusedInstance;
00202 }
00203
00204 public void setUnusedInstance(int unusedInstance) {
00205 this.unusedInstance = unusedInstance;
00206 }
00207
00208 public int getUsedInTxInstance() {
00209 return usedInTxInstance;
00210 }
00211
00212 public void setUsedInTxInstance(int usedInTxInstance) {
00213 this.usedInTxInstance = usedInTxInstance;
00214 }
00215
00216 public int getUsedOutTxInstance() {
00217 return usedOutTxInstance;
00218 }
00219
00220 public void setUsedOutTxInstance(int usedOutTxInstance) {
00221 this.usedOutTxInstance = usedOutTxInstance;
00222 }
00223
00224 }