KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > converter > AbstractDatabasePool


1 /**
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. 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 JavaDoc;
20
21 /**
22  * A common intermediate format for a database connection pool
23  *
24  * @version $Rev: 476049 $ $Date: 2006-11-16 23:35:17 -0500 (Thu, 16 Nov 2006) $
25  */

26 public abstract class AbstractDatabasePool implements Serializable JavaDoc {
27     public final static String JavaDoc VENDOR_ORACLE = "Oracle";
28     public final static String JavaDoc VENDOR_MYSQL = "MySQL";
29     public final static String JavaDoc VENDOR_SYBASE = "Sybase";
30     public final static String JavaDoc VENDOR_INFORMIX = "Informix";
31     private String JavaDoc name;
32     private String JavaDoc jndiName;
33     private Integer JavaDoc minSize;
34     private Integer JavaDoc maxSize;
35     private Integer JavaDoc blockingTimeoutMillis;
36     private Integer JavaDoc idleTimeoutMillis;
37     private String JavaDoc newConnectionSQL;
38     private String JavaDoc testConnectionSQL;
39     private String JavaDoc vendor;
40     private Integer JavaDoc statementCacheSize;
41
42     public String JavaDoc getName() {
43         return name;
44     }
45
46     public void setName(String JavaDoc name) {
47         this.name = name;
48     }
49
50     public String JavaDoc getJndiName() {
51         return jndiName;
52     }
53
54     public void setJndiName(String JavaDoc jndiName) {
55         this.jndiName = jndiName;
56     }
57
58     public String JavaDoc getNewConnectionSQL() {
59         return newConnectionSQL;
60     }
61
62     public void setNewConnectionSQL(String JavaDoc newConnectionSQL) {
63         this.newConnectionSQL = newConnectionSQL;
64     }
65
66     public String JavaDoc getTestConnectionSQL() {
67         return testConnectionSQL;
68     }
69
70     public void setTestConnectionSQL(String JavaDoc testConnectionSQL) {
71         this.testConnectionSQL = testConnectionSQL;
72     }
73
74     public String JavaDoc getVendor() {
75         return vendor;
76     }
77
78     public void setVendor(String JavaDoc vendor) {
79         this.vendor = vendor;
80     }
81
82     public Integer JavaDoc getMinSize() {
83         return minSize;
84     }
85
86     public void setMinSize(Integer JavaDoc minSize) {
87         this.minSize = minSize;
88     }
89
90     public Integer JavaDoc getMaxSize() {
91         return maxSize;
92     }
93
94     public void setMaxSize(Integer JavaDoc maxSize) {
95         this.maxSize = maxSize;
96     }
97
98     public Integer JavaDoc getBlockingTimeoutMillis() {
99         return blockingTimeoutMillis;
100     }
101
102     public void setBlockingTimeoutMillis(Integer JavaDoc blockingTimeoutMillis) {
103         this.blockingTimeoutMillis = blockingTimeoutMillis;
104     }
105
106     public Integer JavaDoc getIdleTimeoutMillis() {
107         return idleTimeoutMillis;
108     }
109
110     public void setIdleTimeoutMillis(Integer JavaDoc idleTimeoutMillis) {
111         this.idleTimeoutMillis = idleTimeoutMillis;
112     }
113
114     public Integer JavaDoc getStatementCacheSize() {
115         return statementCacheSize;
116     }
117
118     public void setStatementCacheSize(Integer JavaDoc statementCacheSize) {
119         this.statementCacheSize = statementCacheSize;
120     }
121 }
122
Popular Tags