Package org.teiid.jdbc

Examples of org.teiid.jdbc.ResultSetMetaDataImpl


        MetadataProvider provider = new MetadataProvider(columnMetadata);                     
        return provider;       
    }

    public void test1() throws Exception {       
        ResultSetMetaDataImpl rmd = new ResultSetMetaDataImpl(exampleProvider());
       
        assertEquals(false, rmd.isAutoIncrement(1));
        assertEquals(false, rmd.isCaseSensitive(1));
        assertEquals(false, rmd.isCurrency(1));
        assertEquals(true, rmd.isDefinitelyWritable(1));
        assertEquals(false, rmd.isReadOnly(1));
        assertEquals(true, rmd.isSearchable(1));
        assertEquals(true, rmd.isSigned(1));
        assertEquals(true, rmd.isWritable(1));
        assertEquals("vdb", rmd.getCatalogName(1)); //$NON-NLS-1$
        assertEquals(null, rmd.getSchemaName(1));
        assertEquals("table", rmd.getTableName(1)); //$NON-NLS-1$
        assertEquals("col1", rmd.getColumnName(1)); //$NON-NLS-1$
        assertEquals("string", rmd.getColumnTypeName(1)); //$NON-NLS-1$
    }
View Full Code Here

TOP

Related Classes of org.teiid.jdbc.ResultSetMetaDataImpl

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.