src/com/holub/database/DefaultSelect.java
/** 
	 * select function when otherTables doesn't exist
	 * @return Table
	 */
select function when otherTables doesn't exist
@return Table
select function when otherTables doesn ' t exist @return Table
private Table select() {
		String[] columnNames = new String[source.rows().columnCount()];
		for(int i = 0; i < source.rows().columnCount(); i++) columnNames[i] = source.rows().columnName(i);
		Table resultTable = new ConcreteTable(null, (String[]) columnNames.clone());
		Cursor current = source.rows();
		Cursor[] envelope = new Cursor[] { current };
		while (current.advance()) {
			if (where.approve(envelope)) {
				Object[] newRow = new Object[columnNames.length];
				for (int column = 0; column < columnNames.length; ++column) {
					newRow[column] = current.column(columnNames[column]);
				}
				resultTable.insert(newRow);
			}
		}
		return resultTable;
	}
private Table select ( ) { String [ ] columnNames = new String [ source . rows ( ) . columnCount ( ) ] ; for ( int i = 0 ; i < source . rows ( ) . columnCount ( ) ; i ++ ) columnNames [ i ] = source . rows ( ) . columnName ( i ) ; Table resultTable = new ConcreteTable ( null , ( String [ ] ) columnNames . clone ( ) ) ; Cursor current = source . rows ( ) ; Cursor [ ] envelope = new Cursor [ ] { current } ; while ( current . advance ( ) ) { if ( where . approve ( envelope ) ) { Object [ ] newRow = new Object [ columnNames . length ] ; for ( int column = 0 ; column < columnNames . length ; ++ column ) { newRow [ column ] = current . column ( columnNames [ column ] ) ; } resultTable . insert ( newRow ) ; } } return resultTable ; }
select function when otherTables doesn't exist
 @return Table
select function when otherTables doesn ' t exist @return Table