Package com.warrantchange.model.impl

Examples of com.warrantchange.model.impl.WarrantUserEmailLogModelImpl


    boolean merge) throws SystemException {
    warrantUserEmailLog = toUnwrappedModel(warrantUserEmailLog);

    boolean isNew = warrantUserEmailLog.isNew();

    WarrantUserEmailLogModelImpl warrantUserEmailLogModelImpl = (WarrantUserEmailLogModelImpl)warrantUserEmailLog;

    Session session = null;

    try {
      session = openSession();

      BatchSessionUtil.update(session, warrantUserEmailLog, merge);

      warrantUserEmailLog.setNew(false);
    }
    catch (Exception e) {
      throw processException(e);
    }
    finally {
      closeSession(session);
    }

    FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

    if (isNew || !WarrantUserEmailLogModelImpl.COLUMN_BITMASK_ENABLED) {
      FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
    }

    EntityCacheUtil.putResult(WarrantUserEmailLogModelImpl.ENTITY_CACHE_ENABLED,
      WarrantUserEmailLogImpl.class, warrantUserEmailLog.getPrimaryKey(),
      warrantUserEmailLog);

    if (isNew) {
      FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_USERID,
        new Object[] { Long.valueOf(warrantUserEmailLog.getUserId()) },
        warrantUserEmailLog);
    }
    else {
      if ((warrantUserEmailLogModelImpl.getColumnBitmask() &
          FINDER_PATH_FETCH_BY_USERID.getColumnBitmask()) != 0) {
        Object[] args = new Object[] {
            Long.valueOf(warrantUserEmailLogModelImpl.getOriginalUserId())
          };

        FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_USERID, args);
        FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_USERID, args);
View Full Code Here

TOP

Related Classes of com.warrantchange.model.impl.WarrantUserEmailLogModelImpl

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.