private static OptiqPrepare.Context makeContext( final OptiqConnection connection, final OptiqSchema schema, final List<String> schemaPath) { if (connection == null) { final OptiqPrepare.Context context0 = OptiqPrepare.Dummy.peek(); return makeContext( context0.config(), context0.getTypeFactory(), context0.getDataContext(), schema, schemaPath); } else { return makeContext( connection.config(), connection.getTypeFactory(), createDataContext(connection), schema, schemaPath); } }
public JavaTypeFactory getTypeFactory() { return connection.getTypeFactory(); }
public SchemaPlus getRootSchema() { return connection.getRootSchema(); }