Examples of ModuleImpl


Examples of ch.tatool.app.data.ModuleImpl

  /**
   * Save a session without finishing it.
   */
  public void saveSession(final ModuleSession moduleSession) {
    final ModuleImpl moduleImpl = (ModuleImpl) moduleSession.getModule();
    moduleImpl.getTransactionTemplate().execute(
        new TransactionCallbackWithoutResult() {
          public void doInTransactionWithoutResult(TransactionStatus status) {
            moduleImpl.getSessionDAO().saveSession(moduleImpl, moduleSession);
          }
        });
  }
View Full Code Here

Examples of ch.tatool.app.data.ModuleImpl

        });
  }

  /** Finishes a module session. */
  public void finishSession(final ModuleSession moduleSession) {
    final ModuleImpl moduleImpl = (ModuleImpl) moduleSession.getModule();
    moduleImpl.getTransactionTemplate().execute(
        new TransactionCallbackWithoutResult() {
          public void doInTransactionWithoutResult(TransactionStatus status) {
            moduleSession.setEndTime(new Date());
            moduleImpl.getSessionDAO().saveSession(moduleImpl, moduleSession);
          }
        });
  }
View Full Code Here

Examples of ch.tatool.app.data.ModuleImpl

  /**
   * Load all session in a given module.
   */
  @SuppressWarnings("unchecked")
  public List<ModuleSession> getSessions(Module module) {
    final ModuleImpl moduleImpl = (ModuleImpl) module;
    return (List<ModuleSession>) moduleImpl.getTransactionTemplate()
        .execute(new TransactionCallback() {
          public Object doInTransaction(TransactionStatus status) {
            return moduleImpl.getSessionDAO().getSessions(moduleImpl);
          }
        });
  }
View Full Code Here

Examples of ch.tatool.app.data.ModuleImpl

  // Trial data

  /** Inserts a trial object into the session. */
  public void insertTrial(final ModuleSession session, final Trial trial) {
    final ModuleImpl moduleImpl = (ModuleImpl) session.getModule();
    moduleImpl.getTransactionTemplate().execute(
        new TransactionCallbackWithoutResult() {
          public void doInTransactionWithoutResult(TransactionStatus status) {
            moduleImpl.getTrialDAO().saveTrial(moduleImpl, session, trial);
          }
        });
  }
View Full Code Here

Examples of ch.tatool.app.data.ModuleImpl

        });
  }

  @SuppressWarnings("unchecked")
  public List<Trial> getTrials(final ModuleSession session) {
    final ModuleImpl moduleImpl = (ModuleImpl) session.getModule();
    return (List<Trial>) moduleImpl.getTransactionTemplate()
        .execute(new TransactionCallback() {
          public Object doInTransaction(TransactionStatus status) {
            return moduleImpl.getTrialDAO().getTrials(session);
          }
        });
  }
View Full Code Here

Examples of ch.tatool.app.data.ModuleImpl

        });
  }

  /** Load all trials of a given module and session. */
  public List<Trial> loadAllTrials(Module module) {
    final ModuleImpl moduleImpl = (ModuleImpl) module;
    return (List<Trial>) moduleImpl.getTransactionTemplate()
        .execute(new TransactionCallback() {
          public Object doInTransaction(TransactionStatus status) {
            return moduleImpl.getTrialDAO().loadAllTrials(moduleImpl);
          }
        });
  }
View Full Code Here

Examples of ch.tatool.app.data.ModuleImpl

   * Returns a list of trial instances for a given element or session.
   *
   * @return list of trials
   */
  public List<Trial> getTrials(Module module, final ModuleSession session, final Node node, final int maxResults) {
    final ModuleImpl moduleImpl = (ModuleImpl) module;
    return (List<Trial>) moduleImpl.getTransactionTemplate()
        .execute(new TransactionCallback() {
          public Object doInTransaction(TransactionStatus status) {
            return moduleImpl.getTrialDAO().getTrials(session, node, maxResults);
          }
        });
  }
View Full Code Here

Examples of ch.tatool.app.data.ModuleImpl

   *            whether to include unfinished module (modules without end
   *            time)
   * @return the last created session
   */
  public ModuleSession getLastSession(Module module, final boolean includeUnfinished) {
    final ModuleImpl moduleImpl = (ModuleImpl) module;
    return (ModuleSession) moduleImpl.getTransactionTemplate()
        .execute(new TransactionCallback() {
          public Object doInTransaction(TransactionStatus status) {
            return moduleImpl.getSessionDAO().findLastSession(moduleImpl, includeUnfinished);
          }
        });
  }
View Full Code Here

Examples of com.intellij.openapi.module.impl.ModuleImpl

  }


  @Nullable
  protected ModuleImpl loadAllModulesUnder(VirtualFile rootDir) throws Exception {
    ModuleImpl module = null;
    final VirtualFile[] children = rootDir.getChildren();
    for (VirtualFile child : children) {
      if (child.isDirectory()) {
        final ModuleImpl childModule = loadAllModulesUnder(child);
        if (module == null) module = childModule;
      }
      else if (child.getName().endsWith(".iml")) {
        String modulePath = child.getPath();
        module = (ModuleImpl)loadModule(new File(modulePath));
View Full Code Here

Examples of org.apache.hivemind.impl.ModuleImpl

        new CreateInstanceDescriptor().toString();
        new InvokeFactoryDescriptor().toString();
        new ModuleDescriptor().toString();
        new ServicePointDescriptor().toString();
        new InterceptorDescriptor().toString();
        new ModuleImpl().toString();
        new RegistryImpl(null, Locale.ENGLISH).toString();
        new ContributionImpl().toString();
        new ConfigurationPointImpl().toString();
        new ElementImpl().toString();
        new AttributeImpl("foo", "bar").toString();
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.