Class JdbcFrontLinqBackTest


  • public class JdbcFrontLinqBackTest
    extends java.lang.Object
    Tests for a JDBC front-end (with some quite complex SQL) and Linq4j back-end (based on in-memory collections).
    • Constructor Detail

      • JdbcFrontLinqBackTest

        public JdbcFrontLinqBackTest()
    • Method Detail

      • testSelect

        public void testSelect()
        Runs a simple query that reads from a table in an in-memory schema.
      • testJoin

        public void testJoin()
        Runs a simple query that joins between two in-memory schemas.
      • testGroupBy

        public void testGroupBy()
        Simple GROUP BY.
      • testOrderBy

        public void testOrderBy()
        Simple ORDER BY.
      • testUnionAllOrderBy

        public void testUnionAllOrderBy()
        Simple UNION, plus ORDER BY.

        Also tests a query that returns a single column. We optimize this case internally, using non-array representations for rows.

      • testUnion

        public void testUnion()
        Tests UNION.
      • testIntersect

        public void testIntersect()
        Tests INTERSECT.
      • testExcept

        public void testExcept()
        Tests EXCEPT.
      • testWhereBad

        public void testWhereBad()
      • testWhereLike

        public void testWhereLike()
      • testInsert

        public void testInsert()
      • testInsertBind

        public void testInsertBind()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDelete

        public void testDelete()
      • makeConnection

        public static java.sql.Connection makeConnection​(java.util.List<JdbcTest.Employee> initialData)
                                                  throws java.lang.Exception
        Method to be shared with RemoteDriverTest.
        Parameters:
        initialData - record to be presented in table
        Throws:
        java.lang.Exception
      • makeConnection

        public static java.sql.Connection makeConnection()
                                                  throws java.lang.Exception
        Creates a connection with an empty modifiable table with JdbcTest.Employee schema.
        Throws:
        java.lang.Exception
      • testInsert2

        public void testInsert2()
      • testInsert3

        public void testInsert3()
                         throws java.lang.Exception
        Local Statement insert
        Throws:
        java.lang.Exception
      • testPreparedStatementInsert

        public void testPreparedStatementInsert()
                                         throws java.lang.Exception
        Local PreparedStatement insert WITHOUT bind variables
        Throws:
        java.lang.Exception
      • testPreparedStatementInsert2

        public void testPreparedStatementInsert2()
                                          throws java.lang.Exception
        Local PreparedStatement insert WITH bind variables
        Throws:
        java.lang.Exception
      • testInsertMultipleRowMismatch

        public void testInsertMultipleRowMismatch()
        Some of the rows have the wrong number of columns.