Class CompilerSQL


  • public class CompilerSQL
    extends Object
    • Constructor Detail

      • CompilerSQL

        public CompilerSQL()
    • Method Detail

      • generateSQLEnd

        public void generateSQLEnd​(String sqlFile,
                                   String root_dir)
      • generateSQL

        public void generateSQL​(String jsonschema,
                                String templateName,
                                String root_dir,
                                com.fasterxml.jackson.databind.JsonNode bindings_schema)
      • generateSQLstatements

        public void generateSQLstatements​(com.squareup.javapoet.TypeSpec.Builder builder,
                                          Set<QualifiedName> allVars,
                                          Set<QualifiedName> allAtts,
                                          String name,
                                          String templateName,
                                          com.fasterxml.jackson.databind.JsonNode bindings_schema)
      • generateSQLInsert

        public com.squareup.javapoet.MethodSpec generateSQLInsert​(Set<QualifiedName> allVars,
                                                                  Set<QualifiedName> allAtts,
                                                                  String name,
                                                                  String template,
                                                                  com.fasterxml.jackson.databind.JsonNode bindings_schema)
      • generateSQLInsertStatement

        public com.squareup.javapoet.MethodSpec generateSQLInsertStatement​(Set<QualifiedName> allVars,
                                                                           Set<QualifiedName> allAtts,
                                                                           String name,
                                                                           String template,
                                                                           com.fasterxml.jackson.databind.JsonNode bindings_schema)
      • getInsertStringAndCount

        public int getInsertStringAndCount​(String template,
                                           com.fasterxml.jackson.databind.JsonNode the_var,
                                           StringBuffer sb)
      • generateClientSQLMethod2

        public com.squareup.javapoet.MethodSpec generateClientSQLMethod2​(Set<QualifiedName> allVars,
                                                                         Set<QualifiedName> allAtts,
                                                                         String name,
                                                                         String template,
                                                                         com.fasterxml.jackson.databind.JsonNode bindings_schema)