public class BusinessObjectDAOFactory extends Object
BusinessObjects.| Constructor and Description |
|---|
BusinessObjectDAOFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T extends BusinessObjectDAO> |
createDAO(APISession session,
Class<T> daoInterface)
Creates the implementation of the DAO for the given session.
|
protected <T extends BusinessObjectDAO> |
loadClass(String daoClassName)
Loads the class of the
BusinessObjectDAO according to its class name. |
public <T extends BusinessObjectDAO> T createDAO(APISession session, 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 BusinessObjectDAO> Class<T> loadClass(String daoClassName) throws ClassNotFoundException
BusinessObjectDAO according to its class name.
The loading is done in the current Thread.
daoClassName - the name of the class of the DAOClassNotFoundException - if the daoClassName is unknown by the current ThreadCopyright © 2019 Bonitasoft S.A.. All rights reserved.