package waket.remote.service;

import javax.annotation.Generated;

import org.seasar.extension.jdbc.JdbcManager;

import waket.remote.entity.OnlineUsers;

@Generated(value = {
	"S2JDBC-Gen 2.4.38",
	"org.seasar.extension.jdbc.gen.internal.model.ServiceModelFactoryImpl" }, date = "2009/07/07 10:32:15")
public class OnlineUsersService extends AbstractService<OnlineUsers> {
	
	public OnlineUsers findById(Integer id) {
		return select()
			.id(
				id)
			.getSingleResult();
	}

	public Integer countOnlineUsers() {
		return jdbcManager
			.selectBySql(
				Integer.class,
				"waket.remote.service.OnlineUsersService_count.sql")
			.getSingleResult();

	}

}
