use of org.teiid.query.metadata.StoredProcedureInfo in project teiid by teiid.
the class FakeDataStore method sampleData1.
public static void sampleData1(FakeDataManager dataMgr, QueryMetadataInterface metadata) throws TeiidException {
addTable("pm1.g1", dataMgr, metadata);
addTable("pm1.g2", dataMgr, metadata);
addTable("pm1.g3", dataMgr, metadata);
addTable("pm2.g1", dataMgr, metadata);
addTable("pm2.g2", dataMgr, metadata);
addTable("pm2.g3", dataMgr, metadata);
// addTable("tm1.g1", dataMgr, metadata);
// stored procedure pm1.sp1
// $NON-NLS-1$
StoredProcedureInfo procInfo = metadata.getStoredProcedureInfoForProcedure("pm1.sp1");
dataMgr.registerProcTuples(procInfo.getProcedureCallableName().toUpperCase(), new List[] { // $NON-NLS-1$
Arrays.asList(new Object[] { "a", new Integer(0) }), Arrays.asList(new Object[] { null, new Integer(1) }), // $NON-NLS-1$
Arrays.asList(new Object[] { "a", new Integer(3) }), // $NON-NLS-1$
Arrays.asList(new Object[] { "c", new Integer(1) }), // $NON-NLS-1$
Arrays.asList(new Object[] { "b", new Integer(2) }), // $NON-NLS-1$
Arrays.asList(new Object[] { "a", new Integer(0) }) });
}
Aggregations