Examples of AbstractDAOFactory


Examples of fr.soleil.comete.dao.AbstractDAOFactory

    /**
     * Switch to the new DAO after a key or factory change.
     */
    private void switchDao() {
        AbstractDAOFactory factory = DAOFactoryManager.registerFactory(factoryClassName);
        if (dao != null) {
            dao.removeDAOListener(this);
        }
        dao = factory.createStringImageDAO(historicKey);
        if (dao != null) {
            dao.addDAOListener(this);
        }
        refresh();
    }
View Full Code Here

Examples of fr.soleil.comete.dao.AbstractDAOFactory

    public void notify1DAxisValuesChange(final String xAxisComponent,
            final List<String> y1AxisComponents, final List<String> y2AxisComponents,
            final List<Axis> axisList) {

        String factoryClassName = SalsaDAOFactory.class.getName();
        AbstractDAOFactory factory = DAOFactoryManager.registerFactory(factoryClassName);
        SalsaDAOFactory salsaDAOFactory = (SalsaDAOFactory) factory;

        AbstractKey scanResult1DKey = new ScanResult1DKey(factoryClassName);
        AbstractDAO<List<DataArray>> dataArrayDao = salsaDAOFactory
                .createNumberDataArrayDAO(scanResult1DKey);
View Full Code Here

Examples of fr.soleil.comete.dao.AbstractDAOFactory

     */
    @Override
    public void notify2DAxisValuesChange(String xAxisComponent, String yAxisComponent,
            String zAxisComponent, List<Axis> axisList) {
        String factoryClassName = SalsaDAOFactory.class.getName();
        AbstractDAOFactory factory = DAOFactoryManager.registerFactory(factoryClassName);
        SalsaDAOFactory salsaDAOFactory = (SalsaDAOFactory) factory;

        AbstractKey scanResult2DKey = new ScanResult2DKey(factoryClassName);
        AbstractDAO<NumberMatrix> numberMatrix = salsaDAOFactory
                .createNumberImageDAO(scanResult2DKey);
View Full Code Here

Examples of fr.soleil.comete.dao.AbstractDAOFactory

     */
    private void updateViewer1D() {
        if (factoryClassName != null && scanResult1DKey != null) {
            this.chartViewer.addKey(factoryClassName, scanResult1DKey);
            this.chartViewer.switchDAOFactory(factoryClassName);
            AbstractDAOFactory factory = DAOFactoryManager.registerFactory(factoryClassName);
            AbstractDAO<List<DataArray>> dao = factory.createNumberDataArrayDAO(scanResult1DKey);
            if (chartDao != dao) {
                if (chartDao != null) {
                    chartDao.removeDAOListener(chartDaoListener);
                }
                chartDao = dao;
View Full Code Here

Examples of fr.soleil.comete.dao.AbstractDAOFactory

    /**
     * Switch to the new DAO after a key or factory change.
     */
    private void switchDao() {
        AbstractDAOFactory factory = DAOFactoryManager.registerFactory(factoryClassName);
        if (dao != null) {
            dao.removeDAOListener(this);
        }
        dao = factory.createStringImageDAO(historicKey);
        if (dao != null) {
            dao.addDAOListener(this);
        }
        refresh();
    }
View Full Code Here

Examples of fr.soleil.comete.dao.AbstractDAOFactory

    /**
     * Switch to the new DAO after a key or factory change.
     */
    private void switchDao() {
        AbstractDAOFactory factory = DAOFactoryManager.registerFactory(factoryClassName);
        if (dao != null) {
            dao.removeDAOListener(this);
        }
        dao = factory.createStringImageDAO(historicKey);
        dao.addDAOListener(this);
        refresh();
    }
View Full Code Here

Examples of fr.soleil.comete.dao.AbstractDAOFactory

    /**
     * Switch to the new DAO after a key or factory change.
     */
    private void switchDao() {
        AbstractDAOFactory factory = DAOFactoryManager.registerFactory(factoryClassName);
        if (dao != null) {
            dao.removeDAOListener(this);
        }
        dao = factory.createStringImageDAO(historicKey);
        dao.addDAOListener(this);
        refresh();
    }
View Full Code Here

Examples of fr.soleil.comete.dao.AbstractDAOFactory

            actuatorStateKey = new ActuatorStateKey(actuator, factoryClassName);

            // Resume the DAO if they were suspended.
            // Also, it makes the DAO factory initialize them and store them in the cache if this
            // was not done already, lessening the work done on the EDT.
            AbstractDAOFactory factory = DAOFactoryManager.registerFactory(factoryClassName);
            readDao = ((AActuatorDAO<?>) factory.createNumberDAO(actuatorKRead));
            readDao.setAutoRefresh(true);
            writeDao = ((AActuatorDAO<?>) factory.createNumberDAO(actuatorKWrite));
            writeDao.setAutoRefresh(true);
            stateDao = ((ActuatorStateDAO) factory.createStringDAO(actuatorStateKey));
            stateDao.setAutoRefresh(true);
            return report;
        }
View Full Code Here

Examples of fr.soleil.comete.dao.AbstractDAOFactory

            TimebaseStateKey timebaseStateKey = new TimebaseStateKey(timebase, factoryClassName);
            view.setTimebaseStateKey(factoryClassName, timebaseStateKey);
            view.switchDAOFactory(factoryClassName);
            view.setActive(true);
            // Resume the DAO if it was suspended.
            AbstractDAOFactory factory = DAOFactoryManager.registerFactory(factoryClassName);
            ((TimebaseStateDAO) factory.createStringDAO(timebaseStateKey)).setAutoRefresh(true);
        }
        else {
            clear();
        }
    }
View Full Code Here

Examples of fr.soleil.comete.dao.AbstractDAOFactory

        setWidgetModel(getAxisSimpleStateViewer(), tangoKey);

        // Backward Command
        propertyValue = this.deviceBundle.getString("UserMotorBean.command.backward");
        tangoKey = generateCommandKey(propertyValue);
        AbstractDAOFactory factory = DAOFactoryManager.registerFactory(TangoDAOFactory.class
                .getName());
        backwardCmd = factory.createStringActionDAO(tangoKey);

        // Forward Command
        propertyValue = this.deviceBundle.getString("UserMotorBean.command.forward");
        tangoKey = generateCommandKey(propertyValue);
        forwardCmd = factory.createStringActionDAO(tangoKey);
    }
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.