Examples of ConvertedDataSetInterceptor


Examples of org.apache.metamodel.convert.ConvertedDataSetInterceptor

        } else {
            final DataSet tableDataSet = materializeMainSchemaTable(table, selectItems, firstRow, maxRows);

            // conversion is done at materialization time, since it enables
            // the refined types to be used also in eg. where clauses.
            dataSet = new ConvertedDataSetInterceptor(_converters).intercept(tableDataSet);
        }

        return dataSet;
    }
View Full Code Here

Examples of org.apache.metamodel.convert.ConvertedDataSetInterceptor

  public void testGetInterceptorOfType() throws Exception {
    DataContext dc = new MockUpdateableDataContext();
    InterceptableDataContext interceptor = Interceptors.intercept(dc);
   
    InterceptorList<DataSet> list = interceptor.getDataSetInterceptors();
    ConvertedDataSetInterceptor convertedDataSetInterceptor = new ConvertedDataSetInterceptor();
    list.add(convertedDataSetInterceptor);
   
    assertSame(convertedDataSetInterceptor, list.getInterceptorOfType(DataSetInterceptor.class));
    assertSame(convertedDataSetInterceptor, list.getInterceptorOfType(ConvertedDataSetInterceptor.class));
   
View Full Code Here

Examples of org.apache.metamodel.convert.ConvertedDataSetInterceptor

        } else {
            final DataSet tableDataSet = materializeMainSchemaTable(table, selectItems, firstRow, maxRows);

            // conversion is done at materialization time, since it enables
            // the refined types to be used also in eg. where clauses.
            dataSet = new ConvertedDataSetInterceptor(_converters).intercept(tableDataSet);
        }

        return dataSet;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.