Class Overview
This is a builder class for constructing a JdbcDatasource manually.
Use the builder()
factory to obtain an instance
of this class and call the various setXyzzy methods to
populate the fields. Those that are left unset or are explicitly
set to null will use their default values.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
JdbcDatasource.Builder
()
Public Methods
Returns a new JdbcDatasource as specified by the current state
of this builder.
public
boolean
equals
(Object o)
public
ConnectionPoolInfo
getConnectionPoolInfo
()
public
String
getDriverClassName
()
Sets the database type. This value, the hostname, the port, and
the instance are ignored if the JDBC URL
is explicitly set. One or the other means of setting the URL is
required.
Parameters
databaseType
| the database type for the JDBC URL |
The driver class name is required when the JDBC URL
is explicitly set. Otherwise, it is ignored.
Parameters
driverClassName
| the class name of the JDBC driver to use |
Sets the hostname for the JDBC URL.
Parameters
hostname
| the hostname for the JDBC URL |
Sets the instance for the JDBC URL.
Parameters
instance
| the instance for the JDBC URL |
Sets an explicit value for the JDBC URL. If this value is not
set, then the database type, hostname, port, and instance must be
set, instead. If this is set, then those other values are ignored,
and the driver class name
will
be required.
Parameters
jdbcUrl
| the complete JDBC URL to use |
Sets the port for the JDBC URL.
Parameters
port
| the port for the JDBC URL |