Examples of findByValues()


Examples of org.apache.wookie.beans.util.IPersistenceManager.findByValues()

  public IParticipant getViewer(){
    IPersistenceManager persistenceManager = PersistenceManagerFactory.getPersistenceManager();
    Map<String, Object> map = new HashMap<String, Object>();
    map.put("sharedDataKey", this.sharedDataKey);//$NON-NLS-1$
    map.put("participantId", this.widgetInstance.getUserId());//$NON-NLS-1$
    IParticipant [] participants = persistenceManager.findByValues(IParticipant.class, map);
    if(participants != null && participants.length == 1) return participants[0];
    return null;
  }
 
  /**
 
View Full Code Here

Examples of org.apache.wookie.beans.util.IPersistenceManager.findByValues()

  public IParticipant[] getHosts(){
      IPersistenceManager persistenceManager = PersistenceManagerFactory.getPersistenceManager();
      Map<String, Object> map = new HashMap<String, Object>();
      map.put("sharedDataKey", this.sharedDataKey);//$NON-NLS-1$
      map.put("role", IParticipant.HOST_ROLE); //$NON-NLS-1$
      return persistenceManager.findByValues(IParticipant.class, map);
  }
}
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.