net.sf.voruta
Interface Language


public interface Language

interface for pluggins to registers executors of custom query language parser

Author:
baliuka

Method Summary
 void compile(ClassFinder finder, java.lang.reflect.Method method, java.lang.String query, java.util.Properties tags)
          voruta calls it once to prepare/compile query string
 java.lang.Object executeQuery(java.lang.String connection, java.lang.Object[] params, ResultSetHandler handler, java.lang.Object[] userObj)
          voruta calls this method to implement query method
 int executeUpdate(java.lang.String connection, java.lang.Object[] params)
          voruta calls this method to implement update method
 void explain(java.lang.String connection)
           
 void explain(java.lang.String connection, java.io.PrintWriter pw)
           
 

Method Detail

compile

public void compile(ClassFinder finder,
                    java.lang.reflect.Method method,
                    java.lang.String query,
                    java.util.Properties tags)
             throws java.lang.Exception
voruta calls it once to prepare/compile query string

executeQuery

public java.lang.Object executeQuery(java.lang.String connection,
                                     java.lang.Object[] params,
                                     ResultSetHandler handler,
                                     java.lang.Object[] userObj)
                              throws java.lang.Exception
voruta calls this method to implement query method

executeUpdate

public int executeUpdate(java.lang.String connection,
                         java.lang.Object[] params)
                  throws java.lang.Exception
voruta calls this method to implement update method

explain

public void explain(java.lang.String connection)
             throws java.lang.Exception

explain

public void explain(java.lang.String connection,
                    java.io.PrintWriter pw)
             throws java.lang.Exception


Copyright © 2003-2004 voruta. All Rights Reserved.