Package fi.evident.dalesbred.ResultTable

Examples of fi.evident.dalesbred.ResultTable.ColumnMetadata


    private static ResultTable.Builder createBuilder(@NotNull ResultSetMetaData metaData) throws SQLException {
        int columnCount = metaData.getColumnCount();
        ColumnMetadata[] result = new ColumnMetadata[columnCount];

        for (int i = 0; i < columnCount; i++)
            result[i] = new ColumnMetadata(i, metaData.getColumnLabel(i + 1), getColumnType(metaData, i+1), metaData.getColumnType(i+1), metaData.getColumnTypeName(i+1));

        return ResultTable.builder(asList(result));
    }
View Full Code Here

TOP

Related Classes of fi.evident.dalesbred.ResultTable.ColumnMetadata

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.