Questions tagged [sql-processor]

The SQL Processor (or 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 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) artifacts, POJO and DAO modelling and SQLP artifacts generation based on DB model (including all META SQL statements, POJO and DAO Java code).

A lot of tutorials and other stuff can be here

3 questions
0
votes
3 answers

SQL Server - Rounding off issue

Below is the part of code that I am using in a SQL Server stored procedure. DECLARE @MinimumTime FLOAT, @filter VARCHAR(MAX) SET @MinimumTime = 43885.664166666664241 SELECT @filter = COALESCE('[Time.Minimum] >= ' + CAST(@MinimumTime AS…
KnowledgeSeeeker
  • 620
  • 1
  • 9
  • 14
0
votes
1 answer

SQL CREATE and SELECT processing simulation in Java

I want to simulate simple SQL statement (Create & Select) processing in Java. For example, consider following two relations CREATE TABLE X( a, b, c); CREATE TABLE Y( c, d, e); Ques 1: Now what data structures can I use to store the relation name X…
satznova
  • 520
  • 7
  • 15
0
votes
1 answer

How to use default values when inserting record using sql-processor

I am using this framework as my persistent tier which also generate sql statement. Now in statement.meta it generate me sql: INSERT_TOURNAMENT(CRUD,in=Tournament,out=Tournament,tab=tournament)= insert into %%tournament (%ID, %NAME, %SEASON_ID,…
hudi
  • 15,555
  • 47
  • 142
  • 246