- All Superinterfaces:
CommonDataSource
,DataSource
,Wrapper
- All Known Implementing Classes:
Neo4jDataSource
Neo4j specific extensions to a
DataSource
.- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the database to use.Returns the password for the user that connects to the database.int
Returns the port number.Returns the server name or IP address to connect against.Returns the transport protocol.getUser()
Returns the user that should be connected to the database.void
setConnectionProperty
(String name, String value) Sets a connection property on the data source.void
setDatabaseName
(String databaseName) Configures the database to use.void
setPassword
(String password) Configures the password to use.void
setPortNumber
(int portNumber) Configures the port number to use.void
setServerName
(String serverName) Configures the server name or IP address to connect against.void
setTransportProtocol
(String transportProtocol) Configures the transport protocol, might be null or empty, s or ssc.void
Configures the user that should be connected to the database.Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLogger
Methods inherited from interface javax.sql.DataSource
createConnectionBuilder, getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Method Details
-
getDatabaseName
String getDatabaseName()Returns the name of the database to use.- Returns:
- the name of the database to use
-
setDatabaseName
Configures the database to use.- Parameters:
databaseName
- a database name
-
getPassword
String getPassword()Returns the password for the user that connects to the database.- Returns:
- the password for the user that connects to the database
-
setPassword
Configures the password to use.- Parameters:
password
- a password
-
getPortNumber
int getPortNumber()Returns the port number.- Returns:
- the port number
-
setPortNumber
void setPortNumber(int portNumber) Configures the port number to use.- Parameters:
portNumber
- the new port number
-
getServerName
String getServerName()Returns the server name or IP address to connect against.- Returns:
- the server name
-
setServerName
Configures the server name or IP address to connect against.- Parameters:
serverName
- the new server name
-
getUser
String getUser()Returns the user that should be connected to the database.- Returns:
- the user
-
setUser
Configures the user that should be connected to the database.- Parameters:
user
- the new user
-
getTransportProtocol
String getTransportProtocol()Returns the transport protocol.- Returns:
- the transport protocol
-
setTransportProtocol
Configures the transport protocol, might be null or empty, s or ssc.- Parameters:
transportProtocol
- the new protocol
-
setConnectionProperty
Sets a connection property on the data source.- Parameters:
name
- the name of the connection property to be setvalue
- the value of the connection property to be set
-