Java Reference
In-Depth Information
L ISTING 7.6
Continued
public void setDriver(String value) {
if ( value != null ) {
driver = value;
}
}
// Get the value of the JDBC Driver
public String getDriver() {
7
return driver;
}
// Set the URL Pointing to the Datasource
public void setURL(String value ) {
if ( value != null ) {
url = value;
}
}
// Get the URL Pointing to the Datasource
public String getURL() {
return url;
}
// Set the initial number of connections
public void setSize(int value) {
if ( value > 1 ) {
size = value;
}
}
// Get the initial number of connections
public int getSize() {
return size;
}
 
Search WWH ::




Custom Search