Package pl.lodz.p.cm.ctp.dao.model

Examples of pl.lodz.p.cm.ctp.dao.model.Recording


                  programDAO.save(prog);
                  programId = prog.getId();
                  progCounter++;
                 
                  if (Epgd.config.recordAllPrograms) {
                    Recording record = new Recording(null, programId, Recording.Mode.WAITING, null);
                    recordingDAO.save(record);
                  }
                } catch (DAOException e) {
                  Epgd.error("Database error: " + e.getMessage());
                }
View Full Code Here


 
  private Recording find(String sql, Object... values) throws DAOException {
        Connection connection = null;
        PreparedStatement preparedStatement = null;
        ResultSet resultSet = null;
        Recording dvrSchedule = null;

        try {
            connection = daoFactory.getConnection();
            preparedStatement = prepareStatement(connection, sql, false, values);
            resultSet = preparedStatement.executeQuery();
View Full Code Here

            close(connection, preparedStatement);
        }
    }
 
  private static Recording mapRecording(ResultSet resultSet) throws SQLException {
        return new Recording(
            resultSet.getLong("id"),
            resultSet.getLong("programId"),
            Recording.Mode.valueOf(resultSet.getString("Recording.mode")),
            resultSet.getObject("fileName") != null ? resultSet.getString("fileName") : null
        );
View Full Code Here

TOP

Related Classes of pl.lodz.p.cm.ctp.dao.model.Recording

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.