com.syrtsov.ddao.conn
Class ConnectionHandlerHelper

java.lang.Object
  extended by com.syrtsov.ddao.conn.ConnectionHandlerHelper
All Implemented Interfaces:
java.lang.reflect.InvocationHandler
Direct Known Subclasses:
JDBCConnectionHandler, JNDIDataSourceHandler

public abstract class ConnectionHandlerHelper
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Created by: pavel Date: Jun 11, 2008 Time: 10:50:45 PM


Constructor Summary
ConnectionHandlerHelper()
           
 
Method Summary
protected abstract  java.sql.Connection createConnection()
           
 DaoInvocationHandler getDaoInvocationHandler()
           
 void init(java.lang.Class<?> iFace, java.lang.annotation.Annotation annotation, java.util.List<java.lang.Class<?>> iFaceList)
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 void setDaoInvocationHandler(DaoInvocationHandler daoInvocationHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionHandlerHelper

public ConnectionHandlerHelper()
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
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

createConnection

protected abstract java.sql.Connection createConnection()
                                                 throws java.sql.SQLException
Throws:
java.sql.SQLException

init

public void init(java.lang.Class<?> iFace,
                 java.lang.annotation.Annotation annotation,
                 java.util.List<java.lang.Class<?>> iFaceList)
          throws InitializerException
Throws:
InitializerException

setDaoInvocationHandler

public void setDaoInvocationHandler(DaoInvocationHandler daoInvocationHandler)

getDaoInvocationHandler

public DaoInvocationHandler getDaoInvocationHandler()