net.sf.shineframework.server.dal.dao.impl
Class DaoInvocationHandler

java.lang.Object
  extended by net.sf.shineframework.server.dal.dao.impl.DaoInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class DaoInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler


Constructor Summary
DaoInvocationHandler(java.lang.Object daoEngine, java.lang.Class<? extends DalObject> managedClass)
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          The virtual method that implements all non-concrete methods.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DaoInvocationHandler

public DaoInvocationHandler(java.lang.Object daoEngine,
                            java.lang.Class<? extends DalObject> managedClass)
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
The virtual method that implements all non-concrete methods. If the requested method exist in the internal dao engine, then this method is used. Otherwise an attempt is made to "guess" the query to run. The guessing mechanism works as follows:

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.UnsupportedOperationException - when the operation cannot be implemented at runtime
java.lang.Throwable


Copyright © 2007 sourceforge.net. All Rights Reserved.