public class RepositoriesDAOImpl extends AbstractDAO<RepositoryStored> implements RepositoriesDAO
datasource, logger
Constructor and Description |
---|
RepositoriesDAOImpl() |
Modifier and Type | Method and Description |
---|---|
RepositoryStored |
get(int id) |
List<String> |
getBaseUrls() |
protected PreparedStatement |
getDeleteStatement(int id,
Connection con) |
protected PreparedStatement |
getInsertStatement(RepositoryStored t,
Connection con) |
protected int |
getLastId() |
protected PreparedStatement |
getUpdateStatement(RepositoryStored t,
Connection con) |
closeConnection, delete, getConnection, getDatasource, save, setDatasource
public List<String> getBaseUrls() throws DaoException
getBaseUrls
in interface RepositoriesDAO
DaoException
protected PreparedStatement getUpdateStatement(RepositoryStored t, Connection con) throws SQLException
getUpdateStatement
in class AbstractDAO<RepositoryStored>
SQLException
protected PreparedStatement getInsertStatement(RepositoryStored t, Connection con) throws SQLException
getInsertStatement
in class AbstractDAO<RepositoryStored>
SQLException
protected PreparedStatement getDeleteStatement(int id, Connection con) throws SQLException
getDeleteStatement
in class AbstractDAO<RepositoryStored>
SQLException
protected int getLastId() throws SQLException
getLastId
in class AbstractDAO<RepositoryStored>
SQLException
public RepositoryStored get(int id)
get
in interface DAO<RepositoryStored>
Copyright © 2023. All rights reserved.