Class JdbcExample


  • public class JdbcExample
    extends java.lang.Object
    Example of using Calcite via JDBC.

    Schema is specified programmatically.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  JdbcExample.Employee
      Object that will be used via reflection to create the "emps" table.
      static class  JdbcExample.Foodmart
      Object that will be used via reflection to create the "foodmart" schema.
      static class  JdbcExample.Hr
      Object that will be used via reflection to create the "hr" schema.
      static class  JdbcExample.SalesFact
      Object that will be used via reflection to create the "sales_fact_1997" fact table.
    • Constructor Summary

      Constructors 
      Constructor Description
      JdbcExample()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JdbcExample

        public JdbcExample()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • run

        public void run()
                 throws java.lang.ClassNotFoundException,
                        java.sql.SQLException
        Throws:
        java.lang.ClassNotFoundException
        java.sql.SQLException