1 17 package org.apache.geronimo.converter; 18 19 import java.io.Serializable ; 20 21 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 } 122 | Popular Tags |