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     */
017    package org.apache.geronimo.converter;
018    
019    import java.io.Serializable;
020    
021    /**
022     * A common intermediate format for a database connection pool
023     *
024     * @version $Rev: 706640 $ $Date: 2008-10-21 14:44:05 +0000 (Tue, 21 Oct 2008) $
025     */
026    public abstract class AbstractDatabasePool implements Serializable {
027        public final static String VENDOR_ORACLE = "Oracle";
028        public final static String VENDOR_MYSQL = "MySQL";
029        public final static String VENDOR_SYBASE = "Sybase";
030        public final static String VENDOR_INFORMIX = "Informix";
031        private String name;
032        private String jndiName;
033        private Integer minSize;
034        private Integer maxSize;
035        private Integer blockingTimeoutMillis;
036        private Integer idleTimeoutMillis;
037        private String newConnectionSQL;
038        private String testConnectionSQL;
039        private String vendor;
040        private Integer statementCacheSize;
041    
042        public String getName() {
043            return name;
044        }
045    
046        public void setName(String name) {
047            this.name = name;
048        }
049    
050        public String getJndiName() {
051            return jndiName;
052        }
053    
054        public void setJndiName(String jndiName) {
055            this.jndiName = jndiName;
056        }
057    
058        public String getNewConnectionSQL() {
059            return newConnectionSQL;
060        }
061    
062        public void setNewConnectionSQL(String newConnectionSQL) {
063            this.newConnectionSQL = newConnectionSQL;
064        }
065    
066        public String getTestConnectionSQL() {
067            return testConnectionSQL;
068        }
069    
070        public void setTestConnectionSQL(String testConnectionSQL) {
071            this.testConnectionSQL = testConnectionSQL;
072        }
073    
074        public String getVendor() {
075            return vendor;
076        }
077    
078        public void setVendor(String vendor) {
079            this.vendor = vendor;
080        }
081    
082        public Integer getMinSize() {
083            return minSize;
084        }
085    
086        public void setMinSize(Integer minSize) {
087            this.minSize = minSize;
088        }
089    
090        public Integer getMaxSize() {
091            return maxSize;
092        }
093    
094        public void setMaxSize(Integer maxSize) {
095            this.maxSize = maxSize;
096        }
097    
098        public Integer getBlockingTimeoutMillis() {
099            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    }