Class CompilerSQL
- java.lang.Object
-
- org.openprovenance.prov.template.compiler.CompilerSQL
-
public class CompilerSQL extends Object
-
-
Constructor Summary
Constructors Constructor Description CompilerSQL()
-
Method Summary
Modifier and Type Method Description com.squareup.javapoet.MethodSpecgenerateClientSQLMethod2(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema)voidgenerateSQL(String jsonschema, String templateName, String root_dir, com.fasterxml.jackson.databind.JsonNode bindings_schema)voidgenerateSQLEnd(String sqlFile, String root_dir)com.squareup.javapoet.MethodSpecgenerateSQLInsert(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema)com.squareup.javapoet.MethodSpecgenerateSQLInsertStatement(Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String template, com.fasterxml.jackson.databind.JsonNode bindings_schema)voidgenerateSQLstatements(com.squareup.javapoet.TypeSpec.Builder builder, Set<QualifiedName> allVars, Set<QualifiedName> allAtts, String name, String templateName, com.fasterxml.jackson.databind.JsonNode bindings_schema)intgetInsertStringAndCount(String template, com.fasterxml.jackson.databind.JsonNode the_var, StringBuffer sb)Stringsqlify(String key)
-
-
-
Method Detail
-
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)
-
-