Package com.dotcms.repackage.net.sf.hibernate

Examples of com.dotcms.repackage.net.sf.hibernate.Session.load()


          session.save(imageHBM);
          session.flush();
        }
        else {
          try {
            ImageHBM imageHBM = (ImageHBM)session.load(ImageHBM.class,
                image.getPrimaryKey());
            imageHBM.setText(image.getText());
            session.flush();
          }
          catch (ObjectNotFoundException onfe) {
View Full Code Here


    try {
      if (image == null) {
        session = openSession();

        ImageHBM imageHBM = (ImageHBM)session.load(ImageHBM.class,
            imageId);
        image = ImageHBMUtil.model(imageHBM);
      }

      return image;
View Full Code Here

    Session session = null;

    try {
      session = openSession();

      AddressHBM addressHBM = (AddressHBM)session.load(AddressHBM.class,
          addressId);
      com.liferay.portal.model.Address address = AddressHBMUtil.model(addressHBM);
      session.delete(addressHBM);
      session.flush();
      AddressPool.remove(addressId);
View Full Code Here

          session.save(addressHBM);
          session.flush();
        }
        else {
          try {
            AddressHBM addressHBM = (AddressHBM)session.load(AddressHBM.class,
                address.getPrimaryKey());
            addressHBM.setCompanyId(address.getCompanyId());
            addressHBM.setUserId(address.getUserId());
            addressHBM.setUserName(address.getUserName());
            addressHBM.setCreateDate(address.getCreateDate());
View Full Code Here

    try {
      if (address == null) {
        session = openSession();

        AddressHBM addressHBM = (AddressHBM)session.load(AddressHBM.class,
            addressId);
        address = AddressHBMUtil.model(addressHBM);
      }

      return address;
View Full Code Here

    Session session = null;

    try {
      session = openSession();

      PortletHBM portletHBM = (PortletHBM)session.load(PortletHBM.class,
          portletPK);
      com.liferay.portal.model.Portlet portlet = PortletHBMUtil.model(portletHBM);
      session.delete(portletHBM);
      session.flush();
      PortletPool.remove(portletPK);
View Full Code Here

          session.save(portletHBM);
          session.flush();
        }
        else {
          try {
            PortletHBM portletHBM = (PortletHBM)session.load(PortletHBM.class,
                portlet.getPrimaryKey());
            portletHBM.setDefaultPreferences(portlet.getDefaultPreferences());
            portletHBM.setNarrow(portlet.getNarrow());
            portletHBM.setRoles(portlet.getRoles());
            portletHBM.setActive(portlet.getActive());
View Full Code Here

    try {
      if (portlet == null) {
        session = openSession();

        PortletHBM portletHBM = (PortletHBM)session.load(PortletHBM.class,
            portletPK);
        portlet = PortletHBMUtil.model(portletHBM);
      }

      return portlet;
View Full Code Here

    Session session = null;

    try {
      session = openSession();

      UserTrackerHBM userTrackerHBM = (UserTrackerHBM)session.load(UserTrackerHBM.class,
          userTrackerId);
      com.liferay.portal.model.UserTracker userTracker = UserTrackerHBMUtil.model(userTrackerHBM);
      session.delete(userTrackerHBM);
      session.flush();
      UserTrackerPool.remove(userTrackerId);
View Full Code Here

          session.save(userTrackerHBM);
          session.flush();
        }
        else {
          try {
            UserTrackerHBM userTrackerHBM = (UserTrackerHBM)session.load(UserTrackerHBM.class,
                userTracker.getPrimaryKey());
            userTrackerHBM.setCompanyId(userTracker.getCompanyId());
            userTrackerHBM.setUserId(userTracker.getUserId());
            userTrackerHBM.setModifiedDate(userTracker.getModifiedDate());
            userTrackerHBM.setRemoteAddr(userTracker.getRemoteAddr());
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.