ResultSet columnsRs = metaData.getColumns( catalog, schemaPattern, tableNamePattern, columnNamePattern );  while( columnsRs.next()) {  Column column = new Column(); column.setSchemaName(columnsRs.getString("TABLE_SCHEM")); column.setTableName(columnsRs.getString("TABLE_NAME")); column.setName(columnsRs.getString("COLUMN_NAME")); column.setDbType(columnsRs.getString("TYPE_NAME"));  columnList.add(column);  }
columnsRs = metaData.getColumns( catalog, schemaPattern, tableNamePattern, columnNamePattern );
	public ArrayList getColumns( String catalog, String schemaPattern,			String tableNamePattern, String columnNamePattern )        {        	        	ArrayList columnList = new ArrayList();        	if ( metaData == null )        	{        		metaData = getMetaData();        	}        	        	try			{			ResultSet columnsRs = metaData.getColumns( catalog,					schemaPattern,					tableNamePattern,					columnNamePattern );        		        		while( columnsRs.next())        		{        			        			Column column = new Column();        			column.setSchemaName(columnsRs.getString("TABLE_SCHEM"));        			column.setTableName(columnsRs.getString("TABLE_NAME"));        			column.setName(columnsRs.getString("COLUMN_NAME"));        			column.setDbType(columnsRs.getString("TYPE_NAME"));        			        			columnList.add(column);        			        		}			}        	catch(SQLException e)			{        		e.printStackTrace();			}        	        	return columnList;        }