View Javadoc

1   /**
2    *
3    * Copyright 2003-2004 The Apache Software Foundation
4    *
5    *  Licensed under the Apache License, Version 2.0 (the "License");
6    *  you may not use this file except in compliance with the License.
7    *  You may obtain a copy of the License at
8    *
9    *     http://www.apache.org/licenses/LICENSE-2.0
10   *
11   *  Unless required by applicable law or agreed to in writing, software
12   *  distributed under the License is distributed on an "AS IS" BASIS,
13   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   *  See the License for the specific language governing permissions and
15   *  limitations under the License.
16   */
17  package org.apache.geronimo.converter;
18  
19  import java.io.Serializable;
20  
21  /**
22   * A common intermediate format for a database connection pool
23   *
24   * @version $Rev: 355877 $ $Date: 2005-12-10 18:48:27 -0800 (Sat, 10 Dec 2005) $
25   */
26  public abstract class AbstractDatabasePool implements Serializable {
27      public final static String VENDOR_ORACLE = "Oracle";
28      public final static String VENDOR_MYSQL = "MySQL";
29      public final static String VENDOR_SYBASE = "Sybase";
30      public final static String VENDOR_INFORMIX = "Informix";
31      private String name;
32      private String jndiName;
33      private Integer minSize;
34      private Integer maxSize;
35      private Integer blockingTimeoutMillis;
36      private Integer idleTimeoutMillis;
37      private String newConnectionSQL;
38      private String testConnectionSQL;
39      private String vendor;
40      private Integer statementCacheSize;
41  
42      public String getName() {
43          return name;
44      }
45  
46      public void setName(String name) {
47          this.name = name;
48      }
49  
50      public String getJndiName() {
51          return jndiName;
52      }
53  
54      public void setJndiName(String jndiName) {
55          this.jndiName = jndiName;
56      }
57  
58      public String getNewConnectionSQL() {
59          return newConnectionSQL;
60      }
61  
62      public void setNewConnectionSQL(String newConnectionSQL) {
63          this.newConnectionSQL = newConnectionSQL;
64      }
65  
66      public String getTestConnectionSQL() {
67          return testConnectionSQL;
68      }
69  
70      public void setTestConnectionSQL(String testConnectionSQL) {
71          this.testConnectionSQL = testConnectionSQL;
72      }
73  
74      public String getVendor() {
75          return vendor;
76      }
77  
78      public void setVendor(String vendor) {
79          this.vendor = vendor;
80      }
81  
82      public Integer getMinSize() {
83          return minSize;
84      }
85  
86      public void setMinSize(Integer minSize) {
87          this.minSize = minSize;
88      }
89  
90      public Integer getMaxSize() {
91          return maxSize;
92      }
93  
94      public void setMaxSize(Integer maxSize) {
95          this.maxSize = maxSize;
96      }
97  
98      public Integer getBlockingTimeoutMillis() {
99          return blockingTimeoutMillis;
100     }
101 
102     public void setBlockingTimeoutMillis(Integer blockingTimeoutMillis) {
103         this.blockingTimeoutMillis = blockingTimeoutMillis;
104     }
105 
106     public Integer getIdleTimeoutMillis() {
107         return idleTimeoutMillis;
108     }
109 
110     public void setIdleTimeoutMillis(Integer idleTimeoutMillis) {
111         this.idleTimeoutMillis = idleTimeoutMillis;
112     }
113 
114     public Integer getStatementCacheSize() {
115         return statementCacheSize;
116     }
117 
118     public void setStatementCacheSize(Integer statementCacheSize) {
119         this.statementCacheSize = statementCacheSize;
120     }
121 }