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

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


    Session session = null;

    try {
      session = openSession();

      PortletPreferencesHBM portletPreferencesHBM = (PortletPreferencesHBM)session.load(PortletPreferencesHBM.class,
          portletPreferencesPK);
      com.liferay.portal.model.PortletPreferences portletPreferences = PortletPreferencesHBMUtil.model(portletPreferencesHBM);
      session.delete(portletPreferencesHBM);
      session.flush();
      PortletPreferencesPool.remove(portletPreferencesPK);
View Full Code Here


          session.save(portletPreferencesHBM);
          session.flush();
        }
        else {
          try {
            PortletPreferencesHBM portletPreferencesHBM = (PortletPreferencesHBM)session.load(PortletPreferencesHBM.class,
                portletPreferences.getPrimaryKey());
            portletPreferencesHBM.setPreferences(portletPreferences.getPreferences());
            session.flush();
          }
          catch (ObjectNotFoundException onfe) {
View Full Code Here

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

        PortletPreferencesHBM portletPreferencesHBM = (PortletPreferencesHBM)session.load(PortletPreferencesHBM.class,
            portletPreferencesPK);
        portletPreferences = PortletPreferencesHBMUtil.model(portletPreferencesHBM);
      }

      return portletPreferences;
View Full Code Here

    Session session = null;

    try {
      session = openSession();

      PasswordTrackerHBM passwordTrackerHBM = (PasswordTrackerHBM)session.load(PasswordTrackerHBM.class,
          passwordTrackerId);
      com.liferay.portal.model.PasswordTracker passwordTracker = PasswordTrackerHBMUtil.model(passwordTrackerHBM);
      session.delete(passwordTrackerHBM);
      session.flush();
      PasswordTrackerPool.remove(passwordTrackerId);
View Full Code Here

          session.save(passwordTrackerHBM);
          session.flush();
        }
        else {
          try {
            PasswordTrackerHBM passwordTrackerHBM = (PasswordTrackerHBM)session.load(PasswordTrackerHBM.class,
                passwordTracker.getPrimaryKey());
            passwordTrackerHBM.setUserId(passwordTracker.getUserId());
            passwordTrackerHBM.setCreateDate(passwordTracker.getCreateDate());
            passwordTrackerHBM.setPassword(passwordTracker.getPassword());
            session.flush();
View Full Code Here

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

        PasswordTrackerHBM passwordTrackerHBM = (PasswordTrackerHBM)session.load(PasswordTrackerHBM.class,
            passwordTrackerId);
        passwordTracker = PasswordTrackerHBMUtil.model(passwordTrackerHBM);
      }

      return passwordTracker;
View Full Code Here

    Session session = null;

    try {
      session = openSession();

      CompanyHBM companyHBM = (CompanyHBM)session.load(CompanyHBM.class,
          companyId);
      com.liferay.portal.model.Company company = CompanyHBMUtil.model(companyHBM);
      session.delete(companyHBM);
      session.flush();
      CompanyPool.remove(companyId);
View Full Code Here

          session.save(companyHBM);
          session.flush();
        }
        else {
          try {
            CompanyHBM companyHBM = (CompanyHBM)session.load(CompanyHBM.class,
                company.getPrimaryKey());
            companyHBM.setKey(company.getKey());
            companyHBM.setPortalURL(company.getPortalURL());
            companyHBM.setHomeURL(company.getHomeURL());
            companyHBM.setMx(company.getMx());
View Full Code Here

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

        CompanyHBM companyHBM = (CompanyHBM)session.load(CompanyHBM.class,
            companyId);
        company = CompanyHBMUtil.model(companyHBM);
      }

      return company;
View Full Code Here

    Session session = null;

    try {
      session = openSession();

      ImageHBM imageHBM = (ImageHBM)session.load(ImageHBM.class, imageId);
      com.liferay.portal.model.Image image = ImageHBMUtil.model(imageHBM);
      session.delete(imageHBM);
      session.flush();
      ImagePool.remove(imageId);
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.