public class BusinessObjectDAOFactory
extends java.lang.Object
org.bonitasoft.engine.bdm.model.BusinessObjects.| Constructor and Description |
|---|
BusinessObjectDAOFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T extends org.bonitasoft.engine.bdm.dao.BusinessObjectDAO> |
createDAO(org.bonitasoft.engine.session.APISession session,
java.lang.Class<T> daoInterface)
Creates the implementation of the DAO for the given session.
|
protected <T extends org.bonitasoft.engine.bdm.dao.BusinessObjectDAO> |
loadClass(java.lang.String daoClassName)
Loads the class of the
BusinessObjectDAO according to its class name. |
public <T extends org.bonitasoft.engine.bdm.dao.BusinessObjectDAO> T createDAO(org.bonitasoft.engine.session.APISession session,
java.lang.Class<T> daoInterface)
throws BusinessObjectDaoCreationException
session - the current opened sessiondaoInterface - the interface of the DAOBusinessObjectDaoCreationException - if the factory is not able to instantiate the DAOprotected <T extends org.bonitasoft.engine.bdm.dao.BusinessObjectDAO> java.lang.Class<T> loadClass(java.lang.String daoClassName)
throws java.lang.ClassNotFoundException
BusinessObjectDAO according to its class name.
The loading is done in the current Thread.
daoClassName - the name of the class of the DAOjava.lang.ClassNotFoundException - if the daoClassName is unknown by the current Thread