1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
| package com.AgenceLocation.server.ibatis.daoImpl;
import com.AgenceLocation.server.ibatis.dao.ClientDAO;
import com.AgenceLocation.server.ibatis.model.Client;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
public class ClientDAOImpl extends SqlMapClientDaoSupport implements ClientDAO {
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table client
* @ibatorgenerated Sun Aug 12 10:19:53 CEST 2012
*/
public ClientDAOImpl() {
super();
}
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table client
* @ibatorgenerated Sun Aug 12 10:19:53 CEST 2012
*/
public int deleteByPrimaryKey(Integer carteIdentite) {
Client key = new Client();
key.setCarteIdentite(carteIdentite);
int rows = getSqlMapClientTemplate().delete(
"client.ibatorgenerated_deleteByPrimaryKey", key);
return rows;
}
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table client
* @ibatorgenerated Sun Aug 12 10:19:53 CEST 2012
*/
public void insert(Client record) {
getSqlMapClientTemplate().insert("client.ibatorgenerated_insert",
record);
}
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table client
* @ibatorgenerated Sun Aug 12 10:19:53 CEST 2012
*/
public void insertSelective(Client record) {
getSqlMapClientTemplate().insert(
"client.ibatorgenerated_insertSelective", record);
}
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table client
* @ibatorgenerated Sun Aug 12 10:19:53 CEST 2012
*/
public Client selectByPrimaryKey(Integer carteIdentite) {
Client key = new Client();
key.setCarteIdentite(carteIdentite);
Client record = (Client) getSqlMapClientTemplate().queryForObject(
"client.ibatorgenerated_selectByPrimaryKey", key);
return record;
}
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table client
* @ibatorgenerated Sun Aug 12 10:19:53 CEST 2012
*/
public int updateByPrimaryKeySelective(Client record) {
int rows = getSqlMapClientTemplate().update(
"client.ibatorgenerated_updateByPrimaryKeySelective", record);
return rows;
}
/**
* This method was generated by Apache iBATIS ibator. This method corresponds to the database table client
* @ibatorgenerated Sun Aug 12 10:19:53 CEST 2012
*/
public int updateByPrimaryKey(Client record) {
int rows = getSqlMapClientTemplate().update(
"client.ibatorgenerated_updateByPrimaryKey", record);
return rows;
}
} |
Partager