Search in sources :

Example 6 with MetadataResult

use of org.teiid.client.metadata.MetadataResult in project teiid by teiid.

the class DeferredMetadataProvider method loadFullMetadata.

private void loadFullMetadata() throws SQLException {
    MetadataResult results;
    try {
        results = this.statement.getDQP().getMetadata(this.requestID);
    } catch (TeiidComponentException e) {
        throw TeiidSQLException.create(e);
    } catch (TeiidProcessingException e) {
        throw TeiidSQLException.create(e);
    }
    this.metadata = results.getColumnMetadata();
}
Also used : TeiidComponentException(org.teiid.core.TeiidComponentException) MetadataResult(org.teiid.client.metadata.MetadataResult) TeiidProcessingException(org.teiid.core.TeiidProcessingException)

Aggregations

MetadataResult (org.teiid.client.metadata.MetadataResult)6 Test (org.junit.Test)4 QueryMetadataInterface (org.teiid.query.metadata.QueryMetadataInterface)4 HashMap (java.util.HashMap)1 Map (java.util.Map)1 TeiidComponentException (org.teiid.core.TeiidComponentException)1 TeiidProcessingException (org.teiid.core.TeiidProcessingException)1 Query (org.teiid.query.sql.lang.Query)1 SPParameter (org.teiid.query.sql.lang.SPParameter)1 StoredProcedure (org.teiid.query.sql.lang.StoredProcedure)1 Expression (org.teiid.query.sql.symbol.Expression)1 Function (org.teiid.query.sql.symbol.Function)1 Reference (org.teiid.query.sql.symbol.Reference)1 WindowFunction (org.teiid.query.sql.symbol.WindowFunction)1 SymbolMap (org.teiid.query.sql.util.SymbolMap)1