Examples of PersistenceService


Examples of org.jbpm.persistence.PersistenceService

  /**
   * more variables related database access.
   */
  public ContextSession getContextSession() {
    PersistenceService persistenceService = getPersistenceService();
    if (persistenceService==null) return null;
    return persistenceService.getContextSession();
  }
View Full Code Here

Examples of org.jbpm.persistence.PersistenceService

  }
  /**
   * more logging related database access.
   */
  public LoggingSession getLoggingSession() {
    PersistenceService persistenceService = getPersistenceService();
    if (persistenceService==null) return null;
    return (persistenceService!=null ? persistenceService.getLoggingSession() : null);
  }
View Full Code Here

Examples of org.jbpm.persistence.PersistenceService

  }
  /**
   * more job related database access.
   */
  public JobSession getJobSession() {
    PersistenceService persistenceService = getPersistenceService();
    if (persistenceService==null) return null;
    return (persistenceService!=null ? persistenceService.getJobSession() : null);
  }
View Full Code Here

Examples of org.jbpm.persistence.PersistenceService

  }
  /**
   * more graph (process) related database access.
   */
  public GraphSession getGraphSession() {
    PersistenceService persistenceService = getPersistenceService();
    if (persistenceService==null) return null;
    return (persistenceService!=null ? persistenceService.getGraphSession() : null);
  }
View Full Code Here

Examples of org.jbpm.persistence.PersistenceService

  }
  /**
   * more task related database access.
   */
  public TaskMgmtSession getTaskMgmtSession() {
    PersistenceService persistenceService = getPersistenceService();
    if (persistenceService==null) return null;
    return (persistenceService!=null ? persistenceService.getTaskMgmtSession() : null);
  }
View Full Code Here

Examples of org.openengsb.core.api.persistence.PersistenceService

        String dbFile = new File(getAbsoluteRootDir(), getFileName(bundle)).getPath();
        if (persistenceServices.containsKey(dbFile)) {
            return persistenceServices.get(dbFile);
        }
        new File(dbFile).mkdirs();
        PersistenceService bundleService =
            new DefaultPersistenceService(new File(dbFile), new DefaultObjectPersistenceBackend(bundle),
                new DefaultPersistenceIndex(new File(dbFile), new DefaultObjectPersistenceBackend(bundle)));
        persistenceServices.put(dbFile, bundleService);
        return bundleService;
    }
View Full Code Here

Examples of org.openhab.core.persistence.PersistenceService

      for(Entry<String, List<PersistenceConfiguration>> entry : persistenceConfigurations.entrySet()) {
        String serviceName = entry.getKey();
        for(PersistenceConfiguration config : entry.getValue()) {
          if(hasStrategy(serviceName, config, GlobalStrategies.RESTORE)) {
            if(appliesToItem(config, item)) {
              PersistenceService service = persistenceServices.get(serviceName);
              if(service instanceof QueryablePersistenceService) {
                QueryablePersistenceService queryService = (QueryablePersistenceService) service;
                FilterCriteria filter = new FilterCriteria().setItemName(item.getName()).setPageSize(1);
                Iterable<HistoricItem> result = queryService.query(filter);
                Iterator<HistoricItem> it = result.iterator();
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.