public class JDBCServiceDescription extends Object
This class encapsulate the description of a service, including:
Constructor and Description |
---|
JDBCServiceDescription(String name,
String description)
A new service description with the given service name and description.
|
Modifier and Type | Method and Description |
---|---|
JDBCServiceDescription |
addServiceMethod(JDBCServiceMethodDescription jdbcServiceMethodDescription)
Adds a service method (i.e.
|
JDBCServiceDescription |
dataSource(DataSource dataSource)
The JDBC DataSource to use for database connection.
|
JDBCServiceDescription |
executorService(ExecutorService executorService)
The ExecutorService on which to execute the query.
|
public JDBCServiceDescription addServiceMethod(JDBCServiceMethodDescription jdbcServiceMethodDescription)
jdbcServiceMethodDescription
- a method descriptionpublic JDBCServiceDescription dataSource(DataSource dataSource)
Use SimpleDataSource
if you have a JDBC url.
dataSource
- a JDBC datasourcepublic JDBCServiceDescription executorService(ExecutorService executorService)
executorService
- an executor serviceCopyright © 2010–2015. All rights reserved.