1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.Image;
18  
19  /**
20   * <a href="ImagePersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       ImagePersistenceImpl
29   * @see       ImageUtil
30   * @generated
31   */
32  public interface ImagePersistence extends BasePersistence<Image> {
33      public void cacheResult(com.liferay.portal.model.Image image);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.Image> images);
37  
38      public com.liferay.portal.model.Image create(long imageId);
39  
40      public com.liferay.portal.model.Image remove(long imageId)
41          throws com.liferay.portal.NoSuchImageException,
42              com.liferay.portal.kernel.exception.SystemException;
43  
44      public com.liferay.portal.model.Image updateImpl(
45          com.liferay.portal.model.Image image, boolean merge)
46          throws com.liferay.portal.kernel.exception.SystemException;
47  
48      public com.liferay.portal.model.Image findByPrimaryKey(long imageId)
49          throws com.liferay.portal.NoSuchImageException,
50              com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portal.model.Image fetchByPrimaryKey(long imageId)
53          throws com.liferay.portal.kernel.exception.SystemException;
54  
55      public java.util.List<com.liferay.portal.model.Image> findBySize(int size)
56          throws com.liferay.portal.kernel.exception.SystemException;
57  
58      public java.util.List<com.liferay.portal.model.Image> findBySize(int size,
59          int start, int end)
60          throws com.liferay.portal.kernel.exception.SystemException;
61  
62      public java.util.List<com.liferay.portal.model.Image> findBySize(int size,
63          int start, int end,
64          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public com.liferay.portal.model.Image findBySize_First(int size,
68          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
69          throws com.liferay.portal.NoSuchImageException,
70              com.liferay.portal.kernel.exception.SystemException;
71  
72      public com.liferay.portal.model.Image findBySize_Last(int size,
73          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
74          throws com.liferay.portal.NoSuchImageException,
75              com.liferay.portal.kernel.exception.SystemException;
76  
77      public com.liferay.portal.model.Image[] findBySize_PrevAndNext(
78          long imageId, int size,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.NoSuchImageException,
81              com.liferay.portal.kernel.exception.SystemException;
82  
83      public java.util.List<com.liferay.portal.model.Image> findAll()
84          throws com.liferay.portal.kernel.exception.SystemException;
85  
86      public java.util.List<com.liferay.portal.model.Image> findAll(int start,
87          int end) throws com.liferay.portal.kernel.exception.SystemException;
88  
89      public java.util.List<com.liferay.portal.model.Image> findAll(int start,
90          int end,
91          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
92          throws com.liferay.portal.kernel.exception.SystemException;
93  
94      public void removeBySize(int size)
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public void removeAll()
98          throws com.liferay.portal.kernel.exception.SystemException;
99  
100     public int countBySize(int size)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public int countAll()
104         throws com.liferay.portal.kernel.exception.SystemException;
105 }