?? inputinformdao.java
字號:
package com.dao;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.client.SqlMapClientBuilder;
import com.ibatis.common.resources.Resources;
import java.io.Reader;
import java.io.IOException;
import java.util.List;
import java.sql.SQLException;
import com.tool.pagetool.*;
import com.bean.*;
public class InputInformDAO extends PageDAO{
public static List selectAllInputInform() throws SQLException {
return sqlMapper.queryForList("selectAllInputInform");
}
public static InputInform selectInputInformByinInId(int id) throws SQLException {
return (InputInform) sqlMapper.queryForObject("selectInputInformByinInId", new Integer(id));
}
public static void insertInputInform(InputInform inputinform) throws SQLException {
sqlMapper.insert("insertInputInform", inputinform);
}
public static void updateInputInform(InputInform inputinform) throws SQLException {
sqlMapper.update("updateInputInform", inputinform);
}
public static void deleteInputInformByinInId(int id) throws SQLException {
sqlMapper.delete("deleteInputInformByinInId", new Integer(id));
}
public int selectCount(Page page) throws SQLException{
return ((Integer)sqlMapper.queryForObject("selectInputInformCount",page)).intValue();
}
public int selectCount() throws SQLException{
return ((Integer)sqlMapper.queryForObject("selectInputInformCountNotP")).intValue();
}
public List selectForPage(Page page) throws SQLException{
List pageList = sqlMapper.queryForList("selectInputInformForPage",page);
return pageList;
}
public static void startTransation()throws SQLException{
sqlMapper.startTransaction();
}
public static void startTransation(int i)throws SQLException{
sqlMapper.startTransaction(i);
}
public static void rollback() throws SQLException{
sqlMapper.endTransaction();
}
public static void commit()throws SQLException{
sqlMapper.commitTransaction();
}
public static int getLastId() throws SQLException{
Object obj = sqlMapper.queryForObject("selectInputInformLastId");
if(obj==null) return 0;
else
return ((Integer)obj).intValue();
}
public static void updateInputInformCancled(int id) throws SQLException{
sqlMapper.delete("updateInputInformCancled", new Integer(id));
}
public static void updateInputInformActived(int id) throws SQLException{
sqlMapper.delete("updateInputInformActived", new Integer(id));
}
public static void updateInputApplyStateTo1(int id) throws SQLException{
sqlMapper.delete("updateInputApplyStateTo1", new Integer(id));
}
public static void updateInputApplyStateTo0(int id) throws SQLException{
sqlMapper.delete("updateInputApplyStateTo0", new Integer(id));
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -