Class Sql

    • Field Detail

      • LOG

        protected static final org.apache.logging.log4j.Logger LOG
    • Constructor Detail

      • Sql

        public Sql()
    • Method Detail

      • genFileStart

        public void genFileStart​(java.io.PrintWriter Out,
                                 Schema S)
                          throws java.lang.Exception
        Specified by:
        genFileStart in interface CodeGenSql
        Throws:
        java.lang.Exception
      • genDDL

        public void genDDL​(java.io.PrintWriter Out,
                           Object O)
                    throws java.lang.Exception
        Specified by:
        genDDL in interface CodeGenSql
        Throws:
        java.lang.Exception
      • genViewJoin

        public Query genViewJoin​(java.lang.StringBuilder Str,
                                 ViewJoin VJ)
                          throws java.lang.Exception
        Specified by:
        genViewJoin in interface CodeGenSql
        Throws:
        java.lang.Exception
      • printAggregateOrderBy

        protected void printAggregateOrderBy​(java.lang.StringBuilder str,
                                             java.util.List<OrderBy> orderByObjs,
                                             java.lang.String objectFullName,
                                             java.lang.String range)
      • printAggregatePartitionBy

        protected void printAggregatePartitionBy​(java.lang.StringBuilder str,
                                                 java.util.List<Column> partitionByObjs,
                                                 java.lang.String objectFullName)
      • genDDL

        public void genDDL​(java.io.PrintWriter OutFinal,
                           View V)
                    throws java.lang.Exception
        Specified by:
        genDDL in interface CodeGenSql
        Throws:
        java.lang.Exception
      • genPivotColumnSQL

        public java.lang.String genPivotColumnSQL​(ViewColumn VC)
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • genCompositeAggregateColumnSQL

        public java.lang.String genCompositeAggregateColumnSQL​(ViewColumn VC)
      • genDDLComments

        public void genDDLComments​(java.io.PrintWriter OutFinal,
                                   View V)
                            throws java.lang.Exception
        Specified by:
        genDDLComments in interface CodeGenSql
        Throws:
        java.lang.Exception
      • genIndex

        public void genIndex​(java.io.PrintWriter Out,
                             Index I)
                      throws java.lang.Exception
        Specified by:
        genIndex in interface CodeGenSql
        Throws:
        java.lang.Exception
      • PrintColumnList

        public boolean PrintColumnList​(java.io.PrintWriter Out,
                                       java.util.List<Column> Columns)
      • PrintColumnList

        public boolean PrintColumnList​(java.io.PrintWriter Out,
                                       java.util.List<Column> Columns,
                                       java.lang.String[] LALs)
        Prints a comma-separated list of columns, for example for an index or an FK.
        Parameters:
        Out - the output stream
        Columns - the list of columns to print (must not be null)
        LALs - For indices, the list of columns marked as LAL-enabled (Left-Anchor-Like for efficient search such as like 'abc%').
        Returns:
      • genClassEnd

        public void genClassEnd​(java.io.PrintWriter Out,
                                GeneratorSession G)
                         throws java.lang.Exception
        Specified by:
        genClassEnd in interface CodeGenBase
        Throws:
        java.lang.Exception