public class SessionRegister extends AbstractDaoAdapterRegister<org.milyn.scribe.adapter.hibernate.SessionDaoAdapter,org.hibernate.Session>
Constructor and Description |
---|
SessionRegister(Map<String,? extends org.hibernate.Session> sessionMap) |
SessionRegister(org.hibernate.Session session) |
SessionRegister(org.hibernate.Session defaultSession,
Map<String,? extends org.hibernate.Session> sessionMap) |
Modifier and Type | Method and Description |
---|---|
protected org.milyn.scribe.adapter.hibernate.SessionDaoAdapter |
createAdapter(org.hibernate.Session adaptable)
This method creates the Dao Adapter from the Adaptable.
|
addToSessionMap, getDao, getDefaultDao
returnDao
public SessionRegister(org.hibernate.Session session)
public SessionRegister(org.hibernate.Session defaultSession, Map<String,? extends org.hibernate.Session> sessionMap)
protected org.milyn.scribe.adapter.hibernate.SessionDaoAdapter createAdapter(org.hibernate.Session adaptable)
AbstractDaoAdapterRegister
NOTE
This method can not reference any object fields because this
method is called in the constructor of the
AbstractDaoAdapterRegister
class.
createAdapter
in class AbstractDaoAdapterRegister<org.milyn.scribe.adapter.hibernate.SessionDaoAdapter,org.hibernate.Session>
adaptable
- The object that will be adapted by a Dao AdapterCopyright © 2020. All rights reserved.