package com.ekexiu.portal.dao;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import org.jfw.apt.annotation.Nullable;
import org.jfw.apt.orm.annotation.dao.DAO;
import org.jfw.apt.orm.annotation.dao.method.From;
import org.jfw.apt.orm.annotation.dao.method.operator.DeleteWith;
import org.jfw.apt.orm.annotation.dao.method.operator.Insert;
import org.jfw.apt.orm.annotation.dao.method.operator.SelectList;
import org.jfw.apt.orm.annotation.dao.method.operator.SelectOne;
import org.jfw.apt.orm.annotation.dao.method.operator.Update;

import com.ekexiu.portal.po.ProfessorEduBg;

@DAO
public interface ProfessorEduBgDao {
	@Insert
	int insert(Connection con,ProfessorEduBg edu)throws SQLException;	
	
	@Update
	int update(Connection con,ProfessorEduBg edu) throws SQLException;
	
	@SelectList
	List<ProfessorEduBg> query(Connection con,String professorId) throws SQLException;
	
	@Nullable
	@SelectOne
	ProfessorEduBg queryOne(Connection con,String id)throws SQLException;
	
	@DeleteWith
	@From(ProfessorEduBg.class)
	int deleteWithProfessorId(Connection con,String professorId) throws SQLException;
	
	@DeleteWith
	@From(ProfessorEduBg.class)
	int delete(Connection con,String id)throws SQLException;	
}
