public final class DataSourceInformation extends Object
DataSourceFactory implementation to create a datasource. The attributes inside
this class represents the minimal information for the DataSourceFactory to actually
create the underlying datasource.
This parameter object is used to allow a more flexible DataSourceFactory interface
| Constructor and Description |
|---|
DataSourceInformation(DatabaseType databaseType,
String hostName,
Integer port,
String databaseName,
String userName,
String password)
Main constructor to create this object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDatabaseName()
The database name used to connect to the database.
|
DatabaseType |
getDatabaseType()
Returns the database type provided by this class.
|
String |
getHostName()
Returns the host name which will be used to connect to the database.
|
String |
getPassword()
The password used to connect to the database.
|
Integer |
getPort()
Returns the port used to connect to the database.
|
String |
getUserName()
The username used to connect to the database.
|
int |
hashCode() |
String |
toString() |
public DataSourceInformation(DatabaseType databaseType, String hostName, Integer port, String databaseName, String userName, String password)
databaseType - - The database type used by the datasource to connect to. This
information will be typically used to instantiate and use the particular driver
class to connect to the database platform.hostName - - The fully qualified hostname without any protocol or port
information (e.g. myDbServer.domain.com, localhost, 192.168.23.1)port - - The port used to connect to the particular database platform (eg.
3306 as a default for mysql)databaseName - - The database name used to connect to the database. The
meaning is database specific for (e.g for mysql the database name, for oracle the
SID id)userName - - The username used to connect to the databasepassword - - The password used to connect to the databasepublic DatabaseType getDatabaseType()
public String getHostName()
public Integer getPort()
public String getDatabaseName()
databaseType type specific.
public String getUserName()
public String getPassword()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.