org.mentawai.db
Class AbstractConnectionHandler

java.lang.Object
  extended by org.mentawai.db.AbstractConnectionHandler
All Implemented Interfaces:
org.mentacontainer.Factory, org.mentacontainer.Interceptor<Connection>, ConnectionHandler
Direct Known Subclasses:
BoneCPConnectionHandler, C3P0ConnectionHandler, DataSourceConnectionHandler, DBCPConnectionHandler, JdbcConnectionHandler, JNDIConnectionHandler

public abstract class AbstractConnectionHandler
extends Object
implements ConnectionHandler


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.mentawai.db.ConnectionHandler
ConnectionHandler.Exec
 
Constructor Summary
AbstractConnectionHandler()
           
 
Method Summary
 void exec(ConnectionHandler.Exec exec)
           
<T> T
getInstance()
           
 Class<? extends Object> getType()
           
 void onCleared(Connection clearedObject)
           
 void onCreated(Connection createdObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mentawai.db.ConnectionHandler
destroy, getConnection, getStatus, release
 

Constructor Detail

AbstractConnectionHandler

public AbstractConnectionHandler()
Method Detail

exec

public void exec(ConnectionHandler.Exec exec)
Specified by:
exec in interface ConnectionHandler

getInstance

public <T> T getInstance()
Specified by:
getInstance in interface org.mentacontainer.Factory

getType

public Class<? extends Object> getType()
Specified by:
getType in interface org.mentacontainer.Factory

onCreated

public void onCreated(Connection createdObject)
Specified by:
onCreated in interface org.mentacontainer.Interceptor<Connection>

onCleared

public void onCleared(Connection clearedObject)
Specified by:
onCleared in interface org.mentacontainer.Interceptor<Connection>


Copyright © 2013. All Rights Reserved.