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

Field Summary
(package private)  FactoryBase factory
           
(package private)  java.lang.reflect.Method ripMethod
           
(package private)  java.lang.String sqlLookup
           
 
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)
 
Method Summary
 java.lang.reflect.Method getExtractMethod()
           
 FactoryBase getFactory()
           
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
 java.lang.String getSqlString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ripMethod

java.lang.reflect.Method ripMethod

sqlLookup

java.lang.String sqlLookup

factory

FactoryBase factory
Constructor Detail

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 lookup
ripper - the method which can take a result set row and return an object
factory - the factory base on which to perform the method
Method Detail

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()