Ver Mensaje Individual
  #8 (permalink)  
Antiguo 23/06/2010, 13:22
luckypier
 
Fecha de Ingreso: junio-2010
Mensajes: 17
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: URGENTE! problemita con el NULL

Yo obtengo los datos con esta funcion:

public static ArrayList<UCursoAlumno> listarPorDocente(int cursoAperturado, int docente) throws Exception {
Connection cn = null;
CallableStatement st = null;
ArrayList<UCursoAlumno> list = null;
try {
cn = DataBasePool.getDataBasePool().getConnection();
st = cn.prepareCall("{ call sp_ucursoalumno_por_docente(?,?) }");
st.setInt(1, cursoAperturado);
st.setInt(2, docente);
ResultSet rs = st.executeQuery();
list = new ArrayList<UCursoAlumno>();
while (rs.next()) {
UCursoAlumno o = new UCursoAlumno();
o = new UCursoAlumno(rs.getInt(1), rs.getInt(2), rs.getString(3),
rs.getInt(4), rs.getInt(5), rs.getInt(6), rs.getInt(7), rs.getInt(8) );
list.add(o);
}
} catch (Exception e) {
throw e;
....


cuando debugeo al objeto UCursoAlumno este ya tiene los ceros,
En que parte ocurre el cambio de NULLS x ceros ?????? donde poner codigo que cuando sea NULL escriba nada (si pongo '', eso ya es String verdad¿¿¿¿)