Package com.warrantchange.model

Examples of com.warrantchange.model.Warrant


   * @throws SystemException if a system exception occurred
   */
  public Warrant findByWarrantByAge(Date createDate, String status,
    boolean expirationWarningSent)
    throws NoSuchWarrantException, SystemException {
    Warrant warrant = fetchByWarrantByAge(createDate, status,
        expirationWarningSent);

    if (warrant == null) {
      StringBundler msg = new StringBundler(8);

View Full Code Here


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

        result = list;

        Warrant warrant = null;

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

          cacheResult(warrant);

          if ((warrant.getCreateDate() == null) ||
              !warrant.getCreateDate().equals(createDate) ||
              (warrant.getStatus() == null) ||
              !warrant.getStatus().equals(status) ||
              (warrant.getExpirationWarningSent() != expirationWarningSent)) {
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_WARRANTBYAGE,
              finderArgs, warrant);
          }
        }
View Full Code Here

   * @throws com.warrantchange.NoSuchWarrantException if a matching Warrant could not be found
   * @throws SystemException if a system exception occurred
   */
  public Warrant findByUserId(long userId)
    throws NoSuchWarrantException, SystemException {
    Warrant warrant = fetchByUserId(userId);

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

      msg.append(_NO_SUCH_ENTITY_WITH_KEY);
View Full Code Here

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

        result = list;

        Warrant warrant = null;

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

          cacheResult(warrant);

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

   * @param status the status
   * @throws SystemException if a system exception occurred
   */
  public void removeByAll(String status)
    throws NoSuchWarrantException, SystemException {
    Warrant warrant = findByAll(status);

    remove(warrant);
  }
View Full Code Here

   * @throws SystemException if a system exception occurred
   */
  public void removeByWarrantByAge(Date createDate, String status,
    boolean expirationWarningSent)
    throws NoSuchWarrantException, SystemException {
    Warrant warrant = findByWarrantByAge(createDate, status,
        expirationWarningSent);

    remove(warrant);
  }
View Full Code Here

   * @param userId the user ID
   * @throws SystemException if a system exception occurred
   */
  public void removeByUserId(long userId)
    throws NoSuchWarrantException, SystemException {
    Warrant warrant = findByUserId(userId);

    remove(warrant);
  }
View Full Code Here

   *
   * @param soapModel the soap model instance to convert
   * @return the normal model instance
   */
  public static Warrant toModel(WarrantSoap soapModel) {
    Warrant model = new WarrantImpl();

    model.setId(soapModel.getId());
    model.setUserId(soapModel.getUserId());
    model.setSummary(soapModel.getSummary());
    model.setQuantity(soapModel.getQuantity());
    model.setPrice(soapModel.getPrice());
    model.setStatus(soapModel.getStatus());
    model.setCreateDate(soapModel.getCreateDate());
    model.setModifiedDate(soapModel.getModifiedDate());
    model.setExpirationWarningSent(soapModel.getExpirationWarningSent());

    return model;
  }
View Full Code Here

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

    Warrant warrant = null;

    try {
      warrant = (Warrant)obj;
    }
    catch (ClassCastException cce) {
      return false;
    }

    long primaryKey = warrant.getPrimaryKey();

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

        return;
      }
    }
    else {

      Warrant warrant = WarrantLocalServiceUtil.getWarrant(entryId);
     
      warrant.setSummary(summary);
      warrant.setQuantity(quantity);
      warrant.setPrice(price);
     
      // Update entry
      WarrantLocalServiceUtil.updateWarrant(warrant);
//      updateWarrant(entryId, summary, quantity, price);
View Full Code Here

TOP

Related Classes of com.warrantchange.model.Warrant

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.