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

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


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

        UserHBM userHBM = (UserHBM)session.load(UserHBM.class, userId);
        user = UserHBMUtil.model(userHBM);
      }

      return user;
    }
View Full Code Here


          session.save(pollsChoiceHBM);
          session.flush();
        }
        else {
          try {
            PollsChoiceHBM pollsChoiceHBM = (PollsChoiceHBM)session.load(PollsChoiceHBM.class,
                pollsChoice.getPrimaryKey());
            pollsChoiceHBM.setDescription(pollsChoice.getDescription());
            session.flush();
          }
          catch (ObjectNotFoundException onfe) {
View Full Code Here

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

        PollsChoiceHBM pollsChoiceHBM = (PollsChoiceHBM)session.load(PollsChoiceHBM.class,
            pollsChoicePK);
        pollsChoice = PollsChoiceHBMUtil.model(pollsChoiceHBM);
      }

      return pollsChoice;
View Full Code Here

    Session session = null;

    try {
      session = openSession();

      AdminConfigHBM adminConfigHBM = (AdminConfigHBM)session.load(AdminConfigHBM.class,
          configId);
      com.liferay.portlet.admin.model.AdminConfig adminConfig = AdminConfigHBMUtil.model(adminConfigHBM);
      session.delete(adminConfigHBM);
      session.flush();
      AdminConfigPool.remove(configId);
View Full Code Here

          session.save(adminConfigHBM);
          session.flush();
        }
        else {
          try {
            AdminConfigHBM adminConfigHBM = (AdminConfigHBM)session.load(AdminConfigHBM.class,
                adminConfig.getPrimaryKey());
            adminConfigHBM.setCompanyId(adminConfig.getCompanyId());
            adminConfigHBM.setType(adminConfig.getType());
            adminConfigHBM.setName(adminConfig.getName());
            adminConfigHBM.setConfig(adminConfig.getConfig());
View Full Code Here

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

        AdminConfigHBM adminConfigHBM = (AdminConfigHBM)session.load(AdminConfigHBM.class,
            configId);
        adminConfig = AdminConfigHBMUtil.model(adminConfigHBM);
      }

      return adminConfig;
View Full Code Here

    Session session = null;

    try {
      session = openSession();

      PollsDisplayHBM pollsDisplayHBM = (PollsDisplayHBM)session.load(PollsDisplayHBM.class,
          pollsDisplayPK);
      com.liferay.portlet.polls.model.PollsDisplay pollsDisplay = PollsDisplayHBMUtil.model(pollsDisplayHBM);
      session.delete(pollsDisplayHBM);
      session.flush();
      PollsDisplayPool.remove(pollsDisplayPK);
View Full Code Here

    Session session = null;

    try {
      session = openSession();

      ReleaseHBM releaseHBM = (ReleaseHBM)session.load(ReleaseHBM.class,
          releaseId);
      com.liferay.portal.model.Release release = ReleaseHBMUtil.model(releaseHBM);
      session.delete(releaseHBM);
      session.flush();
      ReleasePool.remove(releaseId);
View Full Code Here

          session.save(releaseHBM);
          session.flush();
        }
        else {
          try {
            ReleaseHBM releaseHBM = (ReleaseHBM)session.load(ReleaseHBM.class,
                release.getPrimaryKey());
            releaseHBM.setCreateDate(release.getCreateDate());
            releaseHBM.setModifiedDate(release.getModifiedDate());
            releaseHBM.setBuildNumber(release.getBuildNumber());
            releaseHBM.setBuildDate(release.getBuildDate());
View Full Code Here

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

        ReleaseHBM releaseHBM = (ReleaseHBM)session.load(ReleaseHBM.class,
            releaseId);
        release = ReleaseHBMUtil.model(releaseHBM);
      }

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