Examples of saveObject()


Examples of org.olat.core.commons.persistence.DB.saveObject()

      OLATResourceable resourceable = new OLATResourceable() {
        public String getResourceableTypeName() {  return CourseModule.getCourseTypeName();}
        public Long getResourceableId() {return new Long(ifin);}
      };
      OLATResource r =  resm.createOLATResourceInstance(resourceable);
      db.saveObject(r);
     
      // now make a repository entry for this course
      RepositoryEntry re = rm.createRepositoryEntryInstance("Florian Gnägi", "Lernen mit OLAT " + i, "yo man description bla bla + i");
      re.setDisplayname("JunitTest_RepositoryEntry_" + i);
      re.setOlatResource(r);
View Full Code Here

Examples of org.openbp.jaspira.propertybrowser.PropertyBrowser.saveObject()

      }
      else if (event.eventType == WizardEvent.FINISH || event.eventType == WizardEvent.NEXT || event.eventType == WizardEvent.BACK)
      {
        boolean failed = false;
        PropertyBrowser oe = getPropertyBrowser();
        if (!oe.saveObject())
        {
          failed = true;
          if (event.eventType == WizardEvent.BACK)
          {
            // We will ignore error if the user hit the back button
View Full Code Here

Examples of org.openbp.jaspira.propertybrowser.PropertyBrowserImpl.saveObject()

    {
      public void actionPerformed(ActionEvent e)
      {
        // First, save the current contents of the property browser
        PropertyBrowserImpl oe = (PropertyBrowserImpl) page.getPropertyBrowser();
        if (!oe.saveObject())
        {
          // Save failed, don't continue
          return;
        }
View Full Code Here

Examples of org.openbp.server.persistence.PersistenceContext.saveObject()

    Object object = hc.getParam(PARAM_OBJECT);

    if (object != null)
    {
      PersistenceContext pc = hc.getEngine().getPersistenceContextProvider().obtainPersistenceContext();
      pc.saveObject(object);
    }

    hc.setResult(PARAM_OBJECT, object);

    return true;
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.