1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
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.SystemException;
43  
44      /**
45       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
46       */
47      public com.liferay.portal.model.Image update(
48          com.liferay.portal.model.Image image)
49          throws com.liferay.portal.SystemException;
50  
51      public com.liferay.portal.model.Image updateImpl(
52          com.liferay.portal.model.Image image, boolean merge)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portal.model.Image findByPrimaryKey(long imageId)
56          throws com.liferay.portal.NoSuchImageException,
57              com.liferay.portal.SystemException;
58  
59      public com.liferay.portal.model.Image fetchByPrimaryKey(long imageId)
60          throws com.liferay.portal.SystemException;
61  
62      public java.util.List<com.liferay.portal.model.Image> findBySize(int size)
63          throws com.liferay.portal.SystemException;
64  
65      public java.util.List<com.liferay.portal.model.Image> findBySize(int size,
66          int start, int end) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portal.model.Image> findBySize(int size,
69          int start, int end,
70          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
71          throws com.liferay.portal.SystemException;
72  
73      public com.liferay.portal.model.Image findBySize_First(int size,
74          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
75          throws com.liferay.portal.NoSuchImageException,
76              com.liferay.portal.SystemException;
77  
78      public com.liferay.portal.model.Image findBySize_Last(int size,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.NoSuchImageException,
81              com.liferay.portal.SystemException;
82  
83      public com.liferay.portal.model.Image[] findBySize_PrevAndNext(
84          long imageId, int size,
85          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
86          throws com.liferay.portal.NoSuchImageException,
87              com.liferay.portal.SystemException;
88  
89      public java.util.List<com.liferay.portal.model.Image> findAll()
90          throws com.liferay.portal.SystemException;
91  
92      public java.util.List<com.liferay.portal.model.Image> findAll(int start,
93          int end) throws com.liferay.portal.SystemException;
94  
95      public java.util.List<com.liferay.portal.model.Image> findAll(int start,
96          int end,
97          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
98          throws com.liferay.portal.SystemException;
99  
100     public void removeBySize(int size)
101         throws com.liferay.portal.SystemException;
102 
103     public void removeAll() throws com.liferay.portal.SystemException;
104 
105     public int countBySize(int size) throws com.liferay.portal.SystemException;
106 
107     public int countAll() throws com.liferay.portal.SystemException;
108 }