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

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


               
                if (localTimeCorrection != null) {
                  rp.setAltTimeZone(localTimeCorrection);
                }
               
                Program prog = new Program(null, mappedId, rp.getTitle(), rp.getDescription(), new Timestamp(rp.getStartDate().getTime()), new Timestamp(rp.getStopDate().getTime()));
               
                long programId;
                try {
                  programDAO.save(prog);
                  programId = prog.getId();
                  progCounter++;
                 
                  if (Epgd.config.recordAllPrograms) {
                    Recording record = new Recording(null, programId, Recording.Mode.WAITING, null);
                    recordingDAO.save(record);
View Full Code Here


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

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

        }
        return result;
  }
 
  private static Program mapProgram(ResultSet resultSet) throws SQLException {
        return new Program(
            resultSet.getLong("id"),
            resultSet.getLong("tvChannelId"),
            resultSet.getString("title"),
            resultSet.getObject("description") != null ? resultSet.getString("description") : null,
            resultSet.getTimestamp("begin"),
View Full Code Here

TOP

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

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.