public static Connection makeConnection() throws Exception { List<JdbcTest.Employee> employees = new ArrayList<JdbcTest.Employee>(); for (int i = 1; i <= 101; i++) { employees.add(new JdbcTest.Employee(i, 0, "first", 0f, null)); } Connection conn = JdbcFrontLinqBackTest.makeConnection(employees); return conn; }
@Override public Service create(AvaticaConnection connection) { try { Connection conn = JdbcFrontLinqBackTest.makeConnection(); final CalciteMetaImpl meta = new CalciteMetaImpl(conn.unwrap(CalciteConnectionImpl.class)); return new LocalService(meta); } catch (Exception e) { throw new RuntimeException(e); } }