View Javadoc

1   /**
2    * $Id: BaseConnectionDefImpl.java 58 2006-11-08 14:52:38Z maldito_orco $
3    *
4    * =========================================================================
5    *
6    * Copyright 2005 Tubo
7    *
8    *  Licensed under the Apache License, Version 2.0 (the "License");
9    *  you may not use this file except in compliance with the License.
10   *  You may obtain a copy of the License at
11   *
12   *     http://www.apache.org/licenses/LICENSE-2.0
13   *
14   *  Unless required by applicable law or agreed to in writing, software
15   *  distributed under the License is distributed on an "AS IS" BASIS,
16   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   *  See the License for the specific language governing permissions and
18   *  limitations under the License.
19   */
20  package org.tubo.configuration.def.baseimpl;
21  
22  //log
23  import org.apache.commons.logging.Log;
24  import org.apache.commons.logging.LogFactory;
25  //tubo-configuration
26  import org.tubo.configuration.def.ConnectionDef;
27  
28  /**
29   * <p></p>
30   * <p>
31   * Created: Jun 27, 2005 5:49:14 PM <br>
32   * Last Modification Date: $Date: 2006-11-08 11:52:38 -0300 (Wed, 08 Nov 2006) $
33   * </p>
34   *
35   * @author maldito_orco (maldito_orco@users.sourceforge.net)
36   * @version $Revision: 58 $
37   */
38  public class BaseConnectionDefImpl extends BaseReferenceableItemDefImpl implements ConnectionDef {
39      public static final String RCS_ID = "$Id: BaseConnectionDefImpl.java 58 2006-11-08 14:52:38Z maldito_orco $";
40      private static Log log = LogFactory.getLog(BaseConnectionDefImpl.class);
41  
42      private String type = null;
43      private String strategy = null;
44      private String factoryClassname = null;
45      int minCapacity = -1;
46      int maxCapacity = -1;
47  
48      public String getType() { return type; }
49      public void setType(String type) {
50          this.type = type;
51      }
52  
53      public String getStrategy() { return strategy; }
54      public void setStrategy(String strategy) {
55          this.strategy = strategy;
56      }
57  
58      public String getFactoryClassname() { return factoryClassname; }
59      public void setFactoryClassname(String factoryClassname) {
60          this.factoryClassname = factoryClassname;
61      }
62  
63      public int getMinCapacity() { return minCapacity; }
64      public void setMinCapacity(int minCapacity) {
65          this.minCapacity = minCapacity;
66      }
67  
68      public int getMaxCapacity() { return maxCapacity; }
69      public void setMaxCapacity(int maxCapacity) {
70          this.maxCapacity = maxCapacity;
71      }
72  
73  }