src/com/holub/database/DefaultSelect.java
/** 
	 * make column name array of other tables & source table
	 * @param otherTables
	 * @return String[]
	 */
make column name array of other tables & source table
@param otherTables
@return String[]
make column name array of other tables & source table @param otherTables @return String []
private String[] makeAllColumns(Table[] otherTables) {
		Set<String> columnsSet = new HashSet<>();
		for(Table otherTable : otherTables) {
			for(int i = 0; i < otherTable.rows().columnCount(); i++) {
				columnsSet.add(otherTable.rows().columnName(i));
			}
		}
		for(int i = 0; i < source.rows().columnCount(); i++) columnsSet.add(source.rows().columnName(i));
		String[] columnNames = new String[columnsSet.size()];
		Object[] otherColumnsObjArr = columnsSet.toArray();
		for(int i = 0; i < otherColumnsObjArr.length; i++) columnNames[i] = (String)otherColumnsObjArr[i];
		return columnNames;
	}
private String [ ] makeAllColumns ( Table [ ] otherTables ) { Set < String > columnsSet = new HashSet < > ( ) ; for ( Table otherTable : otherTables ) { for ( int i = 0 ; i < otherTable . rows ( ) . columnCount ( ) ; i ++ ) { columnsSet . add ( otherTable . rows ( ) . columnName ( i ) ) ; } } for ( int i = 0 ; i < source . rows ( ) . columnCount ( ) ; i ++ ) columnsSet . add ( source . rows ( ) . columnName ( i ) ) ; String [ ] columnNames = new String [ columnsSet . size ( ) ] ; Object [ ] otherColumnsObjArr = columnsSet . toArray ( ) ; for ( int i = 0 ; i < otherColumnsObjArr . length ; i ++ ) columnNames [ i ] = ( String ) otherColumnsObjArr [ i ] ; return columnNames ; }
make column name array of other tables & source table
 @param otherTables
 @return String[]
make column name array of other tables & source table @param otherTables @return String []