Package com.warrantchange.model

Examples of com.warrantchange.model.WarrantUserUniqueId


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

        result = list;

        WarrantUserUniqueId warrantUserUniqueId = null;

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

          cacheResult(warrantUserUniqueId);

          if ((warrantUserUniqueId.getUniqueId() == null) ||
              !warrantUserUniqueId.getUniqueId().equals(uniqueId)) {
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UNIQUEID,
              finderArgs, warrantUserUniqueId);
          }
        }
View Full Code Here


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

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

      msg.append(_NO_SUCH_ENTITY_WITH_KEY);
View Full Code Here

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

        result = list;

        WarrantUserUniqueId warrantUserUniqueId = null;

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

          cacheResult(warrantUserUniqueId);

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

   * @param uniqueId the unique ID
   * @throws SystemException if a system exception occurred
   */
  public void removeByuniqueId(String uniqueId)
    throws NoSuchWarrantUserUniqueIdException, SystemException {
    WarrantUserUniqueId warrantUserUniqueId = findByuniqueId(uniqueId);

    remove(warrantUserUniqueId);
  }
View Full Code Here

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

    remove(warrantUserUniqueId);
  }
View Full Code Here

   * @throws PortalException if a WarrantUserUniqueId with the primary key could not be found
   * @throws SystemException if a system exception occurred
   */
  public void deleteWarrantUserUniqueId(long id)
    throws PortalException, SystemException {
    WarrantUserUniqueId warrantUserUniqueId = warrantUserUniqueIdPersistence.remove(id);

    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());

    if (indexer != null) {
      try {
View Full Code Here

TOP

Related Classes of com.warrantchange.model.WarrantUserUniqueId

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.