net.mlw.vlh.adapter.jdbc.util
Class ResultSetMapGenerator

java.lang.Object
  extended bynet.mlw.vlh.adapter.jdbc.util.ResultSetMapGenerator

public class ResultSetMapGenerator
extends Object

Version:
$Revision: 1.3 $ $Date: 2005/08/19 16:06:29 $
Author:
Matthew L. Wilson

Nested Class Summary
static class ResultSetMapGenerator.Bean
           
 
Constructor Summary
ResultSetMapGenerator(ResultSet result, boolean useName, boolean lowerCase)
           
 
Method Summary
 Map generateMap()
           
 ResultSet getResultSet()
           
protected  Class loadClass(String className)
          Loads and returns the Class of the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetMapGenerator

public ResultSetMapGenerator(ResultSet result,
                             boolean useName,
                             boolean lowerCase)
                      throws SQLException
Method Detail

generateMap

public Map generateMap()
                throws SQLException,
                       NoSuchMethodException,
                       InvocationTargetException,
                       IllegalAccessException
Throws:
SQLException
NoSuchMethodException
InvocationTargetException
IllegalAccessException
See Also:
net.sf.cglib.beans.BeanGenerator#create()

getResultSet

public ResultSet getResultSet()
Returns:
Returns the result.

loadClass

protected Class loadClass(String className)
                   throws SQLException

Loads and returns the Class of the given name. By default, a load from the thread context class loader is attempted. If there is no such class loader, the class loader used to load this class will be utilized.

Throws:
SQLException - if an exception was thrown trying to load the specified class


Copyright © 2003-2006 mlavilson. All Rights Reserved.