示例#1
0
 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);
   }
 }
示例#2
0
 public JavaTypeFactory getTypeFactory() {
   return connection.getTypeFactory();
 }