Interface ConnectionService
public interface ConnectionService
Connection service
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(DBConnectionBuilder builder) Create a database connection in Projectrak from a connection buildervoid
delete
(Connection connection) Delete the connectionget()
Get the list of connections in ProjectrakGet the connection from ID in ProjectrakGet the builder to create a database connection in Projectrakvoid
update
(Connection connection) Update the connection in Projectrak
-
Method Details
-
getDBConnectionBuilder
DBConnectionBuilder getDBConnectionBuilder()Get the builder to create a database connection in Projectrak- Returns:
- the connection builder
-
create
Create a database connection in Projectrak from a connection builder- Parameters:
builder
- the connection builder- Returns:
- the created database connection
-
get
List<Connection> get()Get the list of connections in Projectrak- Returns:
- the list of connections
-
get
Get the connection from ID in Projectrak- Parameters:
id
- the id of the connection- Returns:
- the connection
-
update
Update the connection in Projectrak- Parameters:
connection
- the connection to be updated
-
delete
Delete the connection- Parameters:
connection
- the connection to be deleted
-