test

Java code posted by Hans Monsen
created at 05 Aug 13:59, updated at 10 Aug 19:11

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
   Connection sourceCon = ConnectionManager.getSourceDBConnection();
            Statement st  = sourceCon.createStatement();

            String coreSQL = "SELECT * from WSSUS2";

            ResultSet rs = st.executeQuery(coreSQL);

            DTOResultSetIterator rsIterator = new DTOResultSetIterator(rs);
            String co_usuarioAnt = "";
            DTO lastDTO = null;

            int countDoc=0,cpf=0,rg=0,te=0,cn=0,cc=0;

            while(rsIterator.hasNext())
492 Bytes in 2 ms with coderay