package waket.remote.service;

import java.util.List;

import javax.annotation.Generated;

import org.seasar.extension.jdbc.JdbcManager;

import waket.remote.entity.OnlineData;
import waket.remote.entity.VideoInfo;

@Generated(value = {
	"S2JDBC-Gen 2.4.38",
	"org.seasar.extension.jdbc.gen.internal.model.ServiceModelFactoryImpl" }, date = "2009/07/07 10:32:15")
public class OnlineDataService extends AbstractService<OnlineData> {
	
	public Integer countOnlineData() {
		return jdbcManager
			.selectBySql(
				Integer.class,
				"waket.remote.service.OnlineDataService_count.sql")
			.getSingleResult();

	}
	
	/**
	 * video_id だけを取得
	 * @return
	 */
	public List listOnlineData() {
		return jdbcManager
		.selectBySql(
			List.class,
			"waket.remote.service.OnlineDataService_listOnlineFiles.sql")
		.getResultList();
	}

}
