1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public interface ImagePersistence {
32 public com.liferay.portal.model.Image create(long imageId);
33
34 public com.liferay.portal.model.Image remove(long imageId)
35 throws com.liferay.portal.SystemException,
36 com.liferay.portal.NoSuchImageException;
37
38 public com.liferay.portal.model.Image remove(
39 com.liferay.portal.model.Image image)
40 throws com.liferay.portal.SystemException;
41
42 public com.liferay.portal.model.Image update(
43 com.liferay.portal.model.Image image)
44 throws com.liferay.portal.SystemException;
45
46 public com.liferay.portal.model.Image update(
47 com.liferay.portal.model.Image image, boolean merge)
48 throws com.liferay.portal.SystemException;
49
50 public com.liferay.portal.model.Image findByPrimaryKey(long imageId)
51 throws com.liferay.portal.SystemException,
52 com.liferay.portal.NoSuchImageException;
53
54 public com.liferay.portal.model.Image fetchByPrimaryKey(long imageId)
55 throws com.liferay.portal.SystemException;
56
57 public java.util.List findBySize(int size)
58 throws com.liferay.portal.SystemException;
59
60 public java.util.List findBySize(int size, int begin, int end)
61 throws com.liferay.portal.SystemException;
62
63 public java.util.List findBySize(int size, int begin, int end,
64 com.liferay.portal.kernel.util.OrderByComparator obc)
65 throws com.liferay.portal.SystemException;
66
67 public com.liferay.portal.model.Image findBySize_First(int size,
68 com.liferay.portal.kernel.util.OrderByComparator obc)
69 throws com.liferay.portal.SystemException,
70 com.liferay.portal.NoSuchImageException;
71
72 public com.liferay.portal.model.Image findBySize_Last(int size,
73 com.liferay.portal.kernel.util.OrderByComparator obc)
74 throws com.liferay.portal.SystemException,
75 com.liferay.portal.NoSuchImageException;
76
77 public com.liferay.portal.model.Image[] findBySize_PrevAndNext(
78 long imageId, int size,
79 com.liferay.portal.kernel.util.OrderByComparator obc)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portal.NoSuchImageException;
82
83 public java.util.List findWithDynamicQuery(
84 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
85 throws com.liferay.portal.SystemException;
86
87 public java.util.List findWithDynamicQuery(
88 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
89 int begin, int end) throws com.liferay.portal.SystemException;
90
91 public java.util.List findAll() throws com.liferay.portal.SystemException;
92
93 public java.util.List findAll(int begin, int end)
94 throws com.liferay.portal.SystemException;
95
96 public java.util.List findAll(int begin, int end,
97 com.liferay.portal.kernel.util.OrderByComparator obc)
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 }