biz.hammurapi.sql
Class InterfaceProjector

java.lang.Object
  extended by biz.hammurapi.sql.BaseReflectionProjector
      extended by biz.hammurapi.sql.InterfaceProjector
All Implemented Interfaces:
Projector

public class InterfaceProjector
extends BaseReflectionProjector
implements Projector

Version:
$Revision: 1.5 $
Author:
Pavel Vlasov

Constructor Summary
InterfaceProjector(java.lang.Class theInterface, java.util.Map typeMap)
           
InterfaceProjector(java.lang.Class theInterface, java.lang.Object delegate, java.util.Map typeMap)
           
 
Method Summary
 java.lang.Object project(java.sql.ResultSet rs)
          Creates object from ResultSet data
 
Methods inherited from class biz.hammurapi.sql.BaseReflectionProjector
accessorName, getColumn, getColumn, mutatorName, propertyName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterfaceProjector

public InterfaceProjector(java.lang.Class theInterface,
                          java.util.Map typeMap)
Parameters:
typeMap -
theInterface - Iterface projected object should implement.

InterfaceProjector

public InterfaceProjector(java.lang.Class theInterface,
                          java.lang.Object delegate,
                          java.util.Map typeMap)
Parameters:
typeMap -
delegate - Object to delegate unmatched calls to.
theInterface - Iterface projected object should implement.
Method Detail

project

public java.lang.Object project(java.sql.ResultSet rs)
                         throws java.sql.SQLException
Description copied from interface: Projector
Creates object from ResultSet data

Specified by:
project in interface Projector
Parameters:
rs - ResultSet
Returns:
Constructed object
Throws:
java.sql.SQLException


Copyright © 2003 Hammurapi Group. All Rights Reserved.