001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.geronimo.converter;
017:
018: import java.io.Serializable;
019:
020: /**
021: * A common intermediate format for a database connection pool
022: *
023: * @version $Rev: 476049 $ $Date: 2006-11-16 20:35:17 -0800 (Thu, 16 Nov 2006) $
024: */
025: public abstract class AbstractDatabasePool implements Serializable {
026: public final static String VENDOR_ORACLE = "Oracle";
027: public final static String VENDOR_MYSQL = "MySQL";
028: public final static String VENDOR_SYBASE = "Sybase";
029: public final static String VENDOR_INFORMIX = "Informix";
030: private String name;
031: private String jndiName;
032: private Integer minSize;
033: private Integer maxSize;
034: private Integer blockingTimeoutMillis;
035: private Integer idleTimeoutMillis;
036: private String newConnectionSQL;
037: private String testConnectionSQL;
038: private String vendor;
039: private Integer statementCacheSize;
040:
041: public String getName() {
042: return name;
043: }
044:
045: public void setName(String name) {
046: this .name = name;
047: }
048:
049: public String getJndiName() {
050: return jndiName;
051: }
052:
053: public void setJndiName(String jndiName) {
054: this .jndiName = jndiName;
055: }
056:
057: public String getNewConnectionSQL() {
058: return newConnectionSQL;
059: }
060:
061: public void setNewConnectionSQL(String newConnectionSQL) {
062: this .newConnectionSQL = newConnectionSQL;
063: }
064:
065: public String getTestConnectionSQL() {
066: return testConnectionSQL;
067: }
068:
069: public void setTestConnectionSQL(String testConnectionSQL) {
070: this .testConnectionSQL = testConnectionSQL;
071: }
072:
073: public String getVendor() {
074: return vendor;
075: }
076:
077: public void setVendor(String vendor) {
078: this .vendor = vendor;
079: }
080:
081: public Integer getMinSize() {
082: return minSize;
083: }
084:
085: public void setMinSize(Integer minSize) {
086: this .minSize = minSize;
087: }
088:
089: public Integer getMaxSize() {
090: return maxSize;
091: }
092:
093: public void setMaxSize(Integer maxSize) {
094: this .maxSize = maxSize;
095: }
096:
097: public Integer getBlockingTimeoutMillis() {
098: return blockingTimeoutMillis;
099: }
100:
101: public void setBlockingTimeoutMillis(Integer blockingTimeoutMillis) {
102: this .blockingTimeoutMillis = blockingTimeoutMillis;
103: }
104:
105: public Integer getIdleTimeoutMillis() {
106: return idleTimeoutMillis;
107: }
108:
109: public void setIdleTimeoutMillis(Integer idleTimeoutMillis) {
110: this .idleTimeoutMillis = idleTimeoutMillis;
111: }
112:
113: public Integer getStatementCacheSize() {
114: return statementCacheSize;
115: }
116:
117: public void setStatementCacheSize(Integer statementCacheSize) {
118: this.statementCacheSize = statementCacheSize;
119: }
120: }
|