EjbEntityForm.java

00001 /*
00002  * JOnAS: Java(TM) Open Application Server
00003  * Copyright (C) 1999 Bull S.A.
00004  * Contact: jonas-team@objectweb.org
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
00019  * USA
00020  *
00021  * --------------------------------------------------------------------------
00022  * $Id: EjbEntityForm.java,v 1.7 2004/10/11 14:20:57 durieuxp Exp $
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 // --------------------------------------------------------- Properties variables
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 // --------------------------------------------------------- Public Methods
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 // --------------------------------------------------------- Properties Methods
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 }

Generated on Tue Feb 15 15:05:32 2005 for JOnAS by  doxygen 1.3.9.1