Package fr.soleil.comete.dao

Examples of fr.soleil.comete.dao.AbstractDAOFactory



  @Override
  public void initDAO() {
    if (m_cmdhelper.isEntityDefined()) {
      AbstractDAOFactory factory = DAOFactoryManager.getFactory(TangoDAOFactory.class
          .getName());
      StringArrayCommandDAO cmdArray = ((TangoDAOFactory) factory)
      .createStringArrayCommandDAO(m_cmdhelper.getDeviceName(), m_cmdhelper
          .getEntityName());
View Full Code Here


  @Override
  public void initDAO() {

    if (m_cmdhelper.isEntityDefined()) {
      AbstractDAOFactory factory = DAOFactoryManager.getFactory(TangoDAOFactory.class
          .getName());
      StringArrayCommandDAO cmdArray = ((TangoDAOFactory) factory)
      .createStringArrayCommandDAO(m_cmdhelper.getDeviceName(), m_cmdhelper
          .getEntityName());
View Full Code Here

  }

  @Override
  public void initDAO() {
    if (m_cmdhelper.isEntityDefined()) {
      AbstractDAOFactory factory = DAOFactoryManager.getFactory(TangoDAOFactory.class
          .getName());
      if (factory != null && factory instanceof TangoDAOFactory) {
        StringArrayCommandDAO cmdArray = ((TangoDAOFactory) factory)
        .createStringArrayCommandDAO(m_cmdhelper.getDeviceName(), m_cmdhelper
            .getEntityName());
View Full Code Here

    @Override
    public void notify1DAxisValuesChange(String xAxisComponent, List<String> y1AxisComponents,
            List<String> y2AxisComponents, 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

    @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

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

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

            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

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.