@Repository public class ConnectionsDAOImpl extends Object implements ConnectionsDAO
Constructor and Description |
---|
ConnectionsDAOImpl(ConnectionsMapper connectionsMapper)
Instantiates a new Connections dao.
|
Modifier and Type | Method and Description |
---|---|
Long |
delete(Connection connection)
Delete a connection from the repository
|
Connection |
find(Long connDbId)
Retrieve a connection by its database ID
|
List<Connection> |
getAll()
Get all connections stored in the repository
|
Long |
getIdByData(Connection connection)
Get database id for a record that has same properties
|
Long |
save(Connection connection)
Insert a new connection used in a scenario execution into a database
|
@Autowired public ConnectionsDAOImpl(ConnectionsMapper connectionsMapper)
connectionsMapper
- the connections mapperpublic Connection find(Long connDbId)
ConnectionsDAO
find
in interface ConnectionsDAO
connDbId
- database idpublic Long getIdByData(Connection connection)
ConnectionsDAO
getIdByData
in interface ConnectionsDAO
connection
- wanted connectionpublic List<Connection> getAll()
ConnectionsDAO
getAll
in interface ConnectionsDAO
public Long save(Connection connection)
ConnectionsDAO
save
in interface ConnectionsDAO
connection
- connection to be insertedpublic Long delete(Connection connection)
ConnectionsDAO
delete
in interface ConnectionsDAO
connection
- connection to be deletedCopyright © 2020. All rights reserved.