Skip to content

Commit

Permalink
jdbc pagination bug fixed #46
Browse files Browse the repository at this point in the history
  • Loading branch information
isuru89 committed May 3, 2018
1 parent 60c1a35 commit dbe70e6
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 334 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.virtusa.gto.nyql.model

import groovy.transform.CompileStatic

import java.sql.Statement

/**
* @author iweerarathna
*/
@CompileStatic
interface QExecutionListener {

void onBeforeExecution(Statement jdbcStatement)

void onBeforeClosing(Statement jdbcStatement)

}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ class QSession implements AutoCloseable {
*/
Configurations configurations

/**
* Execution listener which allows external users to listen for execution events.
* Can be used to cancel execution.
*/
QExecutionListener executionListener

/**
* current execution depth.
*/
Expand Down
17 changes: 17 additions & 0 deletions engine/engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,23 @@
<sourceDirectory>src/main/groovy</sourceDirectory>

<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
Expand Down

This file was deleted.

Loading

0 comments on commit dbe70e6

Please sign in to comment.