Code example for PreparedStatement

Methods: setString

0
	} 
 
	public void setValues(PreparedStatement ps, int index) throws SQLException {
		if(objects.get(index) instanceof MemberGroupHisBean){
			MemberGroupHisBean bean = (MemberGroupHisBean)objects.get(index);
			ps.setString(1, bean.getAccount());
			ps.setString(2, bean.getOldGroup());
			ps.setString(3, bean.getNewGroup());
			ps.setString(4, bean.getReason());
			ps.setString(5, bean.getRemark());
		} 
 
	} 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java