Examples of loadObject()


Examples of org.jibx.binding.classes.UnmarshalBuilder.loadObject()

            String mname = hasAttribute() ? UNMARSHAL_PUSHOBJECTMETHOD :
                UNMARSHAL_PUSHTRACKEDOBJECTMETHOD;
            meth.appendCallVirtual(mname, PUSHOBJECT_SIGNATURE);
           
            // generate the actual unmarshalling code in method
            meth.loadObject();
            if (!m_fakeContent) {
                m_component.genContentUnmarshal(meth);
            }
           
            // pop object from unmarshal stack
View Full Code Here

Examples of org.jibx.binding.classes.UnmarshalBuilder.loadObject()

            if (m_postSetMethod != null) {
                genUserMethodCall(true, m_postSetMethod, meth);
            }
           
            // finish by returning object
            meth.loadObject();
            meth.appendReturn(m_class.getClassFile().getName());
           
            // add method to class
            if (m_lockContentUnmarshal) {
                m_unmarshalContentMethod =
View Full Code Here

Examples of org.jibx.binding.classes.UnmarshalBuilder.loadObject()

            m_unmarshalAttributeName = meth.getFullName();
            m_unmarshalSignature = meth.getSignature();
           
            // if preset method supplied add code to call it
            if (m_preSetMethod != null) {
                meth.loadObject();
                genUserMethodCall(true, m_preSetMethod, meth);
            }
           
            // push object being unmarshalled to unmarshaller stack
            meth.loadContext();
View Full Code Here

Examples of org.jibx.binding.classes.UnmarshalBuilder.loadObject()

                genUserMethodCall(true, m_preSetMethod, meth);
            }
           
            // push object being unmarshalled to unmarshaller stack
            meth.loadContext();
            meth.loadObject();
            meth.appendCallVirtual(UNMARSHAL_PUSHTRACKEDOBJECTMETHOD,
                PUSHOBJECT_SIGNATURE);
           
            // generate the actual unmarshalling code in method
            meth.loadObject();
View Full Code Here

Examples of org.jibx.binding.classes.UnmarshalBuilder.loadObject()

            meth.loadObject();
            meth.appendCallVirtual(UNMARSHAL_PUSHTRACKEDOBJECTMETHOD,
                PUSHOBJECT_SIGNATURE);
           
            // generate the actual unmarshalling code in method
            meth.loadObject();
            m_component.genAttributeUnmarshal(meth);
           
            // pop object from unmarshal stack
            meth.loadContext();
            meth.appendCallVirtual(UNMARSHAL_POPOBJECTMETHOD,
View Full Code Here

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

  private void updateUserLocaleAndLogout(UserRequest ureq, String localeKey) {
    User currUser = ureq.getIdentity().getUser();
    // direct DB calls have to be made here because the
    // user manager is not available in the core
    DB db = DBFactory.getInstance();
    currUser = (User) db.loadObject(currUser);
    currUser.getPreferences().setLanguage(localeKey);
    db.saveObject(currUser);
    DispatcherAction.redirectToDefaultDispatcher(ureq.getHttpResp());
  }
View Full Code Here

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

   */
  @Override
  public UserRating reloadRating(UserRating rating) {
    try {
      DB db = DBFactory.getInstance();
      return (UserRating) db.loadObject(rating);     
    } catch (Exception e) {
      // Huh, most likely the given object does not exist anymore on the
      // db, probably deleted by someone else
      logWarn("Tried to reload a user rating but got an exception. Probably deleted in the meantime", e);
      return null;
View Full Code Here

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

   * @see org.olat.core.commons.services.commentAndRating.UserCommentsManager#reloadComment(org.olat.core.commons.services.commentAndRating.model.UserComment)
   */
  public UserComment reloadComment(UserComment comment) {
    try {
      DB db = DBFactory.getInstance();
      return (UserComment) db.loadObject(comment);     
    } catch (Exception e) {
      // Huh, most likely the given object does not exist anymore on the
      // db, probably deleted by someone else
      logWarn("Tried to reload a user comment but got an exception. Probably deleted in the meantime", e);
      return null;
View Full Code Here

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

     * hibernate session, reloading before delete"); m =
     * loadMessage(m.getKey()); }
     */
    // make sure the message is reloaded if it is not in the hibernate session
    // cache
    m = (Message) db.loadObject(m);
    // delete all properties of one single message
    deleteMessageProperties(forumKey, m);
    db.deleteObject(m);
   
    if(isLogDebugEnabled()){
View Full Code Here

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

      Iterator<Message> messageIterator = subthreadList.iterator();
      Message firstMessage = null;
      DB db = DBFactory.getInstance();
      if (messageIterator.hasNext()) {
        firstMessage = messageIterator.next();
        firstMessage = (Message) db.loadObject(firstMessage);
        firstMessage.setParent(null);
        firstMessage.setThreadtop(null);
        this.updateMessage(firstMessage, new ForumChangedEvent("split"));
        newTopMessage = firstMessage;
      }
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.