1 5 package com.teamkonzept.lib; 6 7 import java.sql.*; 8 9 public class TKDBResult extends TKVector { 10 11 17 public TKDBResult( ResultSet rs ) 18 { 19 this( rs, true ); 20 } 21 22 31 public TKDBResult( ResultSet rs, boolean useHash ) 32 { 33 super(); 34 addResultRow( rs, useHash ); 35 } 36 37 57 public void addResultRow( ResultSet rs, boolean useHash ) 58 { 59 TKDBResultInfo info = new TKDBResultInfo( rs ); 62 while( true ) { 63 TKDBResultRow newResultRow = ( useHash ? (TKDBResultRow) new TKDBResultRowHash( rs, info ) : (TKDBResultRow) new TKDBResultRowList( rs, info ) ); 64 if( ! newResultRow.hasResult() ) break; 65 addElement( newResultRow ); 66 } 67 } 68 } 69 70 | Popular Tags |