Package org.drools.persistence.info

Examples of org.drools.persistence.info.EntityHolder


      if (entity.getId() == null) {
        entity.setId(generateSessionInfoId());
      }
      String key = createSessionKey(entity.getId());
      entity.transform();
        this.cache.put(key , new EntityHolder(key, entity) );
        return entity;
    }
View Full Code Here


  private String safeId(Number id) {
    return String.valueOf(id); //TODO
  }

    public SessionInfo findSessionInfo(Integer id) {
      EntityHolder holder = (EntityHolder) this.cache.get( createSessionKey(id) );
      if (holder == null) {
        return null;
      }
        return holder.getSessionInfo();
    }
View Full Code Here

      if (workItemInfo.getId() == null) {
        workItemInfo.setId(generateWorkItemInfoId());
      }
      String key = createWorkItemKey(workItemInfo.getId());
      workItemInfo.transform();
      cache.put(key, new EntityHolder(key, workItemInfo));
      return workItemInfo;
    }
View Full Code Here

      cache.put(key, new EntityHolder(key, workItemInfo));
      return workItemInfo;
    }

    public WorkItemInfo findWorkItemInfo(Long id) {
      EntityHolder holder = (EntityHolder) cache.get(createWorkItemKey(id));
      if (holder == null) {
        return null;
      }
      return holder.getWorkItemInfo();
    }
View Full Code Here

    }

    public WorkItemInfo merge(WorkItemInfo workItemInfo) {
      String key = createWorkItemKey(workItemInfo.getId());
      workItemInfo.transform();
      return ((EntityHolder) cache.put(key, new EntityHolder(key, workItemInfo))).getWorkItemInfo();
    }
View Full Code Here

TOP

Related Classes of org.drools.persistence.info.EntityHolder

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.