net.sf.voruta
Class SqlParser
java.lang.Object
|
+--net.sf.voruta.SqlParser
- All Implemented Interfaces:
- Language, LanguageFactory
- public class SqlParser
- extends java.lang.Object
- implements Language, LanguageFactory
- Author:
- baliuka
Method Summary |
void |
compile(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[] args,
ResultSetHandler handler,
java.lang.Object[] userObj)
voruta calls this method to implement query method |
int |
executeUpdate(java.lang.String connection,
java.lang.Object[] args)
voruta calls this method to implement update method |
protected java.lang.String |
generateSql(java.lang.Object[] args)
|
Language |
newInstance()
|
protected java.lang.Object[] |
prepare(java.lang.Object[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
generateSql
protected java.lang.String generateSql(java.lang.Object[] args)
prepare
protected java.lang.Object[] prepare(java.lang.Object[] args)
throws java.lang.Exception
executeQuery
public java.lang.Object executeQuery(java.lang.String connection,
java.lang.Object[] args,
ResultSetHandler handler,
java.lang.Object[] userObj)
throws java.lang.Exception
- Description copied from interface:
Language
- voruta calls this method to implement query method
- Specified by:
executeQuery
in interface Language
executeUpdate
public int executeUpdate(java.lang.String connection,
java.lang.Object[] args)
throws java.lang.Exception
- Description copied from interface:
Language
- voruta calls this method to implement update method
- Specified by:
executeUpdate
in interface Language
compile
public void compile(java.lang.reflect.Method method,
java.lang.String query,
java.util.Properties tags)
- voruta calls it once to prepare/compile query string
- Specified by:
compile
in interface Language
newInstance
public Language newInstance()
- Specified by:
newInstance
in interface LanguageFactory
Copyright © 2003 voruta. All Rights Reserved.