Package fr.soleil.comete.dao

Examples of fr.soleil.comete.dao.AbstractDAOFactory


        if (scanServerName == null || scanServerName.isEmpty() || attributeName == null
                || attributeName.isEmpty()) {
            return null;
        }

        AbstractDAOFactory factory = DAOFactoryManager.getFactory(TANGO_FACTORY_CLASS);
        TangoKey tangoKey = new TangoKey();
        tangoKey.registerAttribute(scanServerName, attributeName);
        return factory.createStringImageDAO(tangoKey);
    }
View Full Code Here


    public static AbstractDAO<String> createStateDAO(String scanServerName) {
        if (scanServerName == null || scanServerName.isEmpty()) {
            return null;
        }

        AbstractDAOFactory factory = DAOFactoryManager.getFactory(TANGO_FACTORY_CLASS);
        TangoKey tangoKey = new TangoKey();
        tangoKey.registerAttribute(scanServerName, "State");
        if (factory != null) {
            return factory.createStringDAO(tangoKey);
        }
        return null;

    }
View Full Code Here

        if (scanServerName == null || scanServerName.isEmpty() || attributeName == null
                || attributeName.isEmpty()) {
            return null;
        }

        AbstractDAOFactory factory = DAOFactoryManager.getFactory(TANGO_FACTORY_CLASS);
        TangoKey tangoKey = new TangoKey();
        tangoKey.registerAttribute(scanServerName, attributeName);
        return factory.createStringImageDAO(tangoKey);
    }
View Full Code Here

            List<String> y2AxisComponents, List<Axis> axisList) {

        boolean isScanConfig = sameConfig(config, scanConfig);

        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

     */
    @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

        boolean isScanConfig = sameConfig(config, scanConfig);

        if (isScanConfig || (!scanRunning)) {
            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

     */
    @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

            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

    public static AbstractDAO<String> createStateDAO(String scanServerName) {
        if (scanServerName == null || scanServerName.isEmpty()) {
            return null;
        }

        AbstractDAOFactory factory = DAOFactoryManager.getFactory(TANGO_FACTORY_CLASS);
        TangoKey tangoKey = new TangoKey();
        tangoKey.registerAttribute(scanServerName, "State");
        if (factory != null) {
            return factory.createStringDAO(tangoKey);
        }
        return null;

    }
View Full Code Here

        if (scanServerName == null || scanServerName.isEmpty() || attributeName == null
                || attributeName.isEmpty()) {
            return null;
        }

        AbstractDAOFactory factory = DAOFactoryManager.getFactory(TANGO_FACTORY_CLASS);
        TangoKey tangoKey = new TangoKey();
        tangoKey.registerAttribute(scanServerName, attributeName);
        return factory.createStringImageDAO(tangoKey);
    }
View Full Code Here

TOP

Related Classes of fr.soleil.comete.dao.AbstractDAOFactory

Copyright © 2018 www.massapicom. 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.