The SQL Processor is an engine producing the ANSI SQL statements and providing their execution without the necessity to write Java plumbing code related to the ORM or JDBC API.
Switch branches/tags
sql-processor-samples-1.9.0 sql-processor-samples-1.8.0 sql-processor-samples-1.7.1 sql-processor-samples-1.7.0 sql-processor-samples-1.6.2 sql-processor-samples-1.6.1 sql-processor-samples-1.6.0 sql-processor-samples-1.5.0 sql-processor-samples-1.4.2 sql-processor-plugin-1.4.0 sql-processor-plugin-1.3.1 sql-processor-plugin-1.2.2 sql-processor-parent-3.3.4 sql-processor-parent-3.3.3 sql-processor-parent-3.3.2 sql-processor-parent-3.3.1 sql-processor-parent-3.3.0 sql-processor-parent-3.2.4 sql-processor-parent-3.2.3 sql-processor-parent-3.2.2 sql-processor-parent-3.2.1 sql-processor-parent-3.2.0 sql-processor-parent-3.1.9 sql-processor-parent-3.1.8 sql-processor-parent-3.1.7 sql-processor-parent-3.1.6 sql-processor-parent-3.1.5 sql-processor-parent-3.1.4 sql-processor-parent-3.1.3 sql-processor-parent-3.1.2 sql-processor-parent-3.1.1 sql-processor-parent-3.1.0 sql-processor-parent-3.0.0 sql-processor-parent-2.9.0 sql-processor-parent-2.8.0 sql-processor-parent-2.7.0 sql-processor-parent-2.6.2 sql-processor-parent-2.6.1 sql-processor-parent-2.6.0 sql-processor-parent-2.5.3 sql-processor-parent-2.5.2 sql-processor-parent-2.5.1 sql-processor-parent-2.4.1 sql-processor-parent-2.4.0 sql-processor-parent-2.3.5 sql-processor-parent-2.3.4 sql-processor-parent-2.3.3 sql-processor-parent-2.3.2 sql-processor-parent-2.3.1 sql-processor-parent-2.3.0 sql-processor-parent-2.2.9 sql-processor-parent-2.2.8 sql-processor-parent-2.2.7 sql-processor-parent-2.2.6 sql-processor-parent-2.2.5 sql-processor-parent-2.2.4 sql-processor-parent-2.2.3 sql-processor-parent-2.2.2 sql-processor-parent-2.2.1 sql-processor-parent-2.2.0 sql-processor-parent-2.1.1 sql-processor-parent-2.1.0 sql-processor-parent-2.0.0 sql-processor-parent-1.9.1 sql-processor-parent-1.9.0 sql-processor-parent-1.8.0 sql-processor-parent-1.7.1 sql-processor-parent-1.7.0 sql-processor-parent-1.6.2 sql-processor-parent-1.6.1 sql-processor-parent-1.6.0 sql-processor-parent-1.5.0 sql-processor-parent-1.4.2 sql-plugin-release-1.2.0 eclipse-plugin-release-1.2.0 eclipse-plugin-beta-1 2.5.0
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
scripts
simple-samples
sql-processor-archetypes
sql-processor-beans
sql-processor-hibernate
sql-processor-spring
sql-processor
sql-samples
.gitignore
.mvndep.json
.travis.yml
README.md
mvndep.py
pom.xml

README.md

SQL Processor - Data Driven Queries - http://sql-processor.org/

The SQL Processor (SQLP) is an engine producing the ANSI SQL statements and providing their execution without the necessity to write Java plumbing code related to the ORM or JDBC API. The input to the SQL Processor is

  • a search form (or a question form or the input values), which is just a POJO. Typically this form is seeded by an end user in a presentation layer of a web application.
  • a META SQL query or statement, which is an enhanced ANSI SQL statement. This enhancement is defined in ANTLR based grammar. All the META SQL statements are defined in the meta statements file.
  • an output mapping rule, which is a mapping prescription from an SQL query result to the Java output classes values. This prescription syntax is again defined in ANTLR based grammar. All the mapping rules are also defined in the meta statements file.

Based on the inputs the final SQL query/statement is generated. The parameters are bounded and finally this query/statement is executed. This process is known as a Data Driven Query. The binding of the input values is done using the Reflection API, without any Java plumbing code. The output of the SQL Processor is

  • a list of result class instances (or data transfer objects or the output values). Each result class instance is created using the Reflection API, again without any Java plumbing code.

The SQL Processor Eclipse Plugin (SQLEP) enables smart edition of the SQL Processor (SQLP) artefacts, POJO and DAO modelling and SQLP artefacts generation based on DB model (including all META SQL statements, POJO and DAO Java code).

Project content

  • sql-processor - the SQL Processor (SQLP) core and the JDBC stack
  • sql-processor-hibernate - the SQL Processor (SQLP) extension, the Hibernate stack
  • sql-processor-spring - the SQL Processor (SQLP) extension, the Spring stack
  • sql-processor-eclipse - the SQL Processor Eclipse plugin (SQLEP)
  • sql-processor-archetypes - the SQL Processor Archetypes
  • sqlproc-archetype-simple-jdbc - the SQLP Archetype for Simple JDBC Application
  • sqlproc-archetype-simple-spring - the SQLP Archetype for Simple Spring Application
  • sql-samples - the samples to demonstrate the SQL Processor features
  • simple-jdbc - the Simple JDBC based Application
  • simple-jdbc-pojo - the Simple JDBC based Application with generated POJO
  • simple-spring - the Simple Spring based Application
  • simple-spring-pojo - the Simple Spring based Application with generated POJO
  • simple-hibernate - the Simple Hibernate based Application
  • simple-jdbc-crud - the Advanced JDBC based Application with generated POJO, DAO and META SQL
  • simple-jdbc-dao - the Advanced Spring based Application with generated POJO, DAO, META SQL, separate impl
  • catalog-jpa - the working Web Application based on JPA and the Hibernate stack
  • catalog-hibernate - the working Web Application based on the Hibernate stack
  • catalog-spring - the working Web Application based on the Spring stack
  • simple-samples - the samples to demonstrate the supported databases
  • simple-db2 - the DB2 Application with generated POJO, DAO and META SQL
  • simple-hsqldb - the HSQLDB Application with generated POJO, DAO and META SQL
  • simple-informix - the Informix Application with generated POJO, DAO and META SQL
  • simple-mysql - the MySQL Application with generated POJO, DAO and META SQL
  • simple-oracle - the Oracle Application with generated POJO, DAO and META SQL
  • simple-postgresql - the PostgreSQL Application with generated POJO, DAO and META SQL