Examples of MetsObjectDAOFactory


Examples of edu.indiana.dlib.metsnav.dao.MetsObjectDAOFactory

     */
    public MetsObjectDAO getMetsObjectDAO(String col) throws ConfigurationException, DAOException {
        MetsObjectDAO dao = (MetsObjectDAO)servletContext.getAttribute(Globals.DAO_KEY + "/" + col);
        if (dao == null) {
            CollectionConfig config = getConfig(col);
            MetsObjectDAOFactory factory = MetsObjectDAOFactory.instance();
            MetsObjectDAO wrappedDao = factory.createMetsObjectDAO(config.getDataSource().getDaoType());
            dao = new CacheMetsObjectDAO(wrappedDao);
            dao.init(config);
            servletContext.setAttribute(Globals.DAO_KEY + "/" + col, dao);
        }
        return dao;
View Full Code Here

Examples of edu.indiana.dlib.metsnav.dao.MetsObjectDAOFactory

     * Log4j Logger
     */
    private static final Logger log = Logger.getLogger(MetsObjectController.class);
   
    public MetsObjectController(CollectionConfig config) throws ConfigurationException, DAOException {
        MetsObjectDAOFactory factory = MetsObjectDAOFactory.instance();
        MetsObjectDAO dao = factory.createMetsObjectDAO(config.getDataSource().getDaoType());
        metsDao = new CacheMetsObjectDAO(dao);
        metsDao.init(config);     
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.