Package org.apache.wookie.beans.util

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


   
    //
    // Add participant
    //
    IPersistenceManager persistenceManager = PersistenceManagerFactory.getPersistenceManager();
    participant = persistenceManager.newInstance(IParticipant.class);
    participant.setParticipantId(participantId);
    participant.setParticipantDisplayName(participantDisplayName);
    participant.setParticipantThumbnailUrl(participantThumbnailUrl);
    participant.setRole(role);
    participant.setSharedDataKey(this.sharedDataKey);
View Full Code Here


    String cloneKey = SharedDataHelper.getInternalSharedDataKey(instance, cloneSharedDataKey);
        IWidget widget = instance.getWidget();
        IPersistenceManager persistenceManager = PersistenceManagerFactory.getPersistenceManager();
    for (ISharedData sharedData : new SharedContext(instance).getSharedData())
    {
        ISharedData clone = persistenceManager.newInstance(ISharedData.class);
            clone.setDkey(sharedData.getDkey());
            clone.setDvalue(sharedData.getDvalue());
            clone.setSharedDataKey(cloneKey);
            persistenceManager.save(clone);
    }
View Full Code Here

            }
            found=true;
        }
        if(!found){ 
          if (value != null){
                preference = persistenceManager.newInstance(IPreference.class);
            preference.setDkey(name);
            preference.setDvalue(value);
            widgetInstance.getPreferences().add(preference);
          }
        } 
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.