org.ephman.abra.database
Class ViewLookup
java.lang.Object
|
+--org.ephman.abra.database.ViewLookup
- public class ViewLookup
- extends java.lang.Object
A class to wrap a sql join and the method to rip a new view object
- Version:
- 0.0.1 (1/27/01)
- Author:
- Paul M. Bethe
Constructor Summary |
ViewLookup(java.lang.String sql,
java.lang.reflect.Method ripper,
FactoryBase factory)
create a view lookup to execute and rip correctly |
ViewLookup(java.lang.String sql,
java.lang.String ripperName,
FactoryBase factory)
use ripperName and factory to get the Method using reflection
then call ViewLookup (String, Method, FactoryBase) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ripMethod
java.lang.reflect.Method ripMethod
sqlLookup
java.lang.String sqlLookup
factory
FactoryBase factory
ViewLookup
public ViewLookup(java.lang.String sql,
java.lang.String ripperName,
FactoryBase factory)
- use ripperName and factory to get the Method using reflection
then call ViewLookup (String, Method, FactoryBase)
ViewLookup
public ViewLookup(java.lang.String sql,
java.lang.reflect.Method ripper,
FactoryBase factory)
- create a view lookup to execute and rip correctly
- Parameters:
sql
- the query string which build the lookupripper
- the method which can take a result set row and return
an objectfactory
- the factory base on which to perform the method
getFactory
public FactoryBase getFactory()
getRipMethod
public static java.lang.reflect.Method getRipMethod(java.lang.String ripperName,
FactoryBase factory)
- provide the factories with a better way of exception handling so
that they don't have to throw exception
getExtractMethod
public java.lang.reflect.Method getExtractMethod()
getSqlString
public java.lang.String getSqlString()