Package com.liferay.portal.kernel.dao.orm

Examples of com.liferay.portal.kernel.dao.orm.Session


        }
      }

      String sql = query.toString();

      Session session = null;

      try {
        session = openSession();

        Query q = session.createQuery(sql);

        QueryPos qPos = QueryPos.getInstance(q);

        if (status != null) {
          qPos.add(status);
View Full Code Here


      query.append(_FINDER_COLUMN_WARRANTBYAGE_EXPIRATIONWARNINGSENT_2);

      String sql = query.toString();

      Session session = null;

      try {
        session = openSession();

        Query q = session.createQuery(sql);

        QueryPos qPos = QueryPos.getInstance(q);

        if (createDate != null) {
          qPos.add(CalendarUtil.getTimestamp(createDate));
View Full Code Here

      query.append(_FINDER_COLUMN_USERID_USERID_2);

      String sql = query.toString();

      Session session = null;

      try {
        session = openSession();

        Query q = session.createQuery(sql);

        QueryPos qPos = QueryPos.getInstance(q);

        qPos.add(userId);
View Full Code Here

  public int countAll() throws SystemException {
    Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,
        FINDER_ARGS_EMPTY, this);

    if (count == null) {
      Session session = null;

      try {
        session = openSession();

        Query q = session.createQuery(_SQL_COUNT_WARRANT);

        count = (Long)q.uniqueResult();
      }
      catch (Exception e) {
        throw processException(e);
View Full Code Here

   * @throws SystemException if a system exception occurred
   */
  @Override
  public WarrantUserEmailLog remove(Serializable primaryKey)
    throws NoSuchWarrantUserEmailLogException, SystemException {
    Session session = null;

    try {
      session = openSession();

      WarrantUserEmailLog warrantUserEmailLog = (WarrantUserEmailLog)session.get(WarrantUserEmailLogImpl.class,
          primaryKey);

      if (warrantUserEmailLog == null) {
        if (_log.isWarnEnabled()) {
          _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
View Full Code Here

  @Override
  protected WarrantUserEmailLog removeImpl(
    WarrantUserEmailLog warrantUserEmailLog) throws SystemException {
    warrantUserEmailLog = toUnwrappedModel(warrantUserEmailLog);

    Session session = null;

    try {
      session = openSession();

      BatchSessionUtil.delete(session, warrantUserEmailLog);
View Full Code Here

    boolean isNew = warrantUserEmailLog.isNew();

    WarrantUserEmailLogModelImpl warrantUserEmailLogModelImpl = (WarrantUserEmailLogModelImpl)warrantUserEmailLog;

    Session session = null;

    try {
      session = openSession();

      BatchSessionUtil.update(session, warrantUserEmailLog, merge);
View Full Code Here

    if (warrantUserEmailLog == _nullWarrantUserEmailLog) {
      return null;
    }

    if (warrantUserEmailLog == null) {
      Session session = null;

      boolean hasException = false;

      try {
        session = openSession();

        warrantUserEmailLog = (WarrantUserEmailLog)session.get(WarrantUserEmailLogImpl.class,
            Long.valueOf(id));
      }
      catch (Exception e) {
        hasException = true;
View Full Code Here

      query.append(WarrantUserEmailLogModelImpl.ORDER_BY_JPQL);

      String sql = query.toString();

      Session session = null;

      try {
        session = openSession();

        Query q = session.createQuery(sql);

        QueryPos qPos = QueryPos.getInstance(q);

        qPos.add(userId);
View Full Code Here

      }
      else {
        sql = _SQL_SELECT_WARRANTUSEREMAILLOG.concat(WarrantUserEmailLogModelImpl.ORDER_BY_JPQL);
      }

      Session session = null;

      try {
        session = openSession();

        Query q = session.createQuery(sql);

        if (orderByComparator == null) {
          list = (List<WarrantUserEmailLog>)QueryUtil.list(q,
              getDialect(), start, end, false);
View Full Code Here

TOP

Related Classes of com.liferay.portal.kernel.dao.orm.Session

Copyright © 2018 www.massapicom. 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.