Examples of WarrantUserEmailLog


Examples of com.warrantchange.model.WarrantUserEmailLog

   *
   * @param soapModel the soap model instance to convert
   * @return the normal model instance
   */
  public static WarrantUserEmailLog toModel(WarrantUserEmailLogSoap soapModel) {
    WarrantUserEmailLog model = new WarrantUserEmailLogImpl();

    model.setId(soapModel.getId());
    model.setSubject(soapModel.getSubject());
    model.setBodyContent(soapModel.getBodyContent());
    model.setUserId(soapModel.getUserId());
    model.setCreateDate(soapModel.getCreateDate());
    model.setModifiedDate(soapModel.getModifiedDate());

    return model;
  }
View Full Code Here

Examples of com.warrantchange.model.WarrantUserEmailLog

  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }

    WarrantUserEmailLog warrantUserEmailLog = null;

    try {
      warrantUserEmailLog = (WarrantUserEmailLog)obj;
    }
    catch (ClassCastException cce) {
      return false;
    }

    long primaryKey = warrantUserEmailLog.getPrimaryKey();

    if (getPrimaryKey() == primaryKey) {
      return true;
    }
    else {
View Full Code Here

Examples of com.warrantchange.model.WarrantUserEmailLog

  }

  private void logEmailMessageSent(String subject, String body)
      throws SystemException {
   
    WarrantUserEmailLog createWarrantUserEmailLog =
        WarrantUserEmailLogLocalServiceUtil
          .createWarrantUserEmailLog(CounterLocalServiceUtil.increment());
   
    if(createWarrantUserEmailLog != null){
      createWarrantUserEmailLog.setSubject(subject);
      createWarrantUserEmailLog.setBodyContent(body);
      createWarrantUserEmailLog.setCreateDate(new Date());
    }
   
    WarrantUserEmailLogLocalServiceUtil.updateWarrantUserEmailLog(createWarrantUserEmailLog);
  }
View Full Code Here

Examples of com.warrantchange.model.WarrantUserEmailLog

   *
   * @param id the primary key for the new WarrantUserEmailLog
   * @return the new WarrantUserEmailLog
   */
  public WarrantUserEmailLog create(long id) {
    WarrantUserEmailLog warrantUserEmailLog = new WarrantUserEmailLogImpl();

    warrantUserEmailLog.setNew(true);
    warrantUserEmailLog.setPrimaryKey(id);

    return warrantUserEmailLog;
  }
View Full Code Here

Examples of com.warrantchange.model.WarrantUserEmailLog

    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

Examples of com.warrantchange.model.WarrantUserEmailLog

   * @throws com.warrantchange.NoSuchWarrantUserEmailLogException if a WarrantUserEmailLog with the primary key could not be found
   * @throws SystemException if a system exception occurred
   */
  public WarrantUserEmailLog findByPrimaryKey(long id)
    throws NoSuchWarrantUserEmailLogException, SystemException {
    WarrantUserEmailLog warrantUserEmailLog = fetchByPrimaryKey(id);

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

Examples of com.warrantchange.model.WarrantUserEmailLog

   * @return the WarrantUserEmailLog, or <code>null</code> if a WarrantUserEmailLog with the primary key could not be found
   * @throws SystemException if a system exception occurred
   */
  public WarrantUserEmailLog fetchByPrimaryKey(long id)
    throws SystemException {
    WarrantUserEmailLog warrantUserEmailLog = (WarrantUserEmailLog)EntityCacheUtil.getResult(WarrantUserEmailLogModelImpl.ENTITY_CACHE_ENABLED,
        WarrantUserEmailLogImpl.class, id);

    if (warrantUserEmailLog == _nullWarrantUserEmailLog) {
      return null;
    }
View Full Code Here

Examples of com.warrantchange.model.WarrantUserEmailLog

   * @throws com.warrantchange.NoSuchWarrantUserEmailLogException if a matching WarrantUserEmailLog could not be found
   * @throws SystemException if a system exception occurred
   */
  public WarrantUserEmailLog findByuserId(long userId)
    throws NoSuchWarrantUserEmailLogException, SystemException {
    WarrantUserEmailLog warrantUserEmailLog = fetchByuserId(userId);

    if (warrantUserEmailLog == null) {
      StringBundler msg = new StringBundler(4);

      msg.append(_NO_SUCH_ENTITY_WITH_KEY);
View Full Code Here

Examples of com.warrantchange.model.WarrantUserEmailLog

        List<WarrantUserEmailLog> list = q.list();

        result = list;

        WarrantUserEmailLog warrantUserEmailLog = null;

        if (list.isEmpty()) {
          FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_USERID,
            finderArgs, list);
        }
        else {
          warrantUserEmailLog = list.get(0);

          cacheResult(warrantUserEmailLog);

          if ((warrantUserEmailLog.getUserId() != userId)) {
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_USERID,
              finderArgs, warrantUserEmailLog);
          }
        }
View Full Code Here

Examples of com.warrantchange.model.WarrantUserEmailLog

   * @param userId the user ID
   * @throws SystemException if a system exception occurred
   */
  public void removeByuserId(long userId)
    throws NoSuchWarrantUserEmailLogException, SystemException {
    WarrantUserEmailLog warrantUserEmailLog = findByuserId(userId);

    remove(warrantUserEmailLog);
  }
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.