All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.webstersmalley.tv.db.TvDao Maven / Gradle / Ivy

/*
 * Copyright 2013 Webster Smalley
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.webstersmalley.tv.db;

import com.webstersmalley.tv.domain.Channel;
import com.webstersmalley.tv.domain.Program;
import com.webstersmalley.tv.domain.Recording;
import com.webstersmalley.tv.domain.SearchQuery;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface TvDao {
    List getChannels();

    void addChannel(Channel channel);

    Channel getChannel(String channelName);

    void addProgram(Program program);

    List getProgramsByTitle(String programTitle);

    List getProgramsBySearchQuery(SearchQuery searchQuery);

    Channel getChannelById(int id);

    List getProgramsByTitleAndChannel(String programTitle, String channel);

    List getProgramsByChannel(Channel channel);

    Program getProgramByDetails(Program program);

    void clearAllPrograms(Channel channel);

    void addRecording(Recording recording);

    List getAllRecordings();

    void deleteAllRecordings();

    List> getAllRecordingsAsMap();

    long getQueryTime();

    List getMovies(BigDecimal minimumRating);

    List getProgramSummaries();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy