1
22
23 package com.liferay.portal.service.persistence;
24
25
26
39 public interface ImagePersistence extends BasePersistence {
40 public void cacheResult(com.liferay.portal.model.Image image);
41
42 public void cacheResult(
43 java.util.List<com.liferay.portal.model.Image> images);
44
45 public void clearCache();
46
47 public com.liferay.portal.model.Image create(long imageId);
48
49 public com.liferay.portal.model.Image remove(long imageId)
50 throws com.liferay.portal.NoSuchImageException,
51 com.liferay.portal.SystemException;
52
53 public com.liferay.portal.model.Image remove(
54 com.liferay.portal.model.Image image)
55 throws com.liferay.portal.SystemException;
56
57
60 public com.liferay.portal.model.Image update(
61 com.liferay.portal.model.Image image)
62 throws com.liferay.portal.SystemException;
63
64
76 public com.liferay.portal.model.Image update(
77 com.liferay.portal.model.Image image, boolean merge)
78 throws com.liferay.portal.SystemException;
79
80 public com.liferay.portal.model.Image updateImpl(
81 com.liferay.portal.model.Image image, boolean merge)
82 throws com.liferay.portal.SystemException;
83
84 public com.liferay.portal.model.Image findByPrimaryKey(long imageId)
85 throws com.liferay.portal.NoSuchImageException,
86 com.liferay.portal.SystemException;
87
88 public com.liferay.portal.model.Image fetchByPrimaryKey(long imageId)
89 throws com.liferay.portal.SystemException;
90
91 public java.util.List<com.liferay.portal.model.Image> findBySize(int size)
92 throws com.liferay.portal.SystemException;
93
94 public java.util.List<com.liferay.portal.model.Image> findBySize(int size,
95 int start, int end) throws com.liferay.portal.SystemException;
96
97 public java.util.List<com.liferay.portal.model.Image> findBySize(int size,
98 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException;
100
101 public com.liferay.portal.model.Image findBySize_First(int size,
102 com.liferay.portal.kernel.util.OrderByComparator obc)
103 throws com.liferay.portal.NoSuchImageException,
104 com.liferay.portal.SystemException;
105
106 public com.liferay.portal.model.Image findBySize_Last(int size,
107 com.liferay.portal.kernel.util.OrderByComparator obc)
108 throws com.liferay.portal.NoSuchImageException,
109 com.liferay.portal.SystemException;
110
111 public com.liferay.portal.model.Image[] findBySize_PrevAndNext(
112 long imageId, int size,
113 com.liferay.portal.kernel.util.OrderByComparator obc)
114 throws com.liferay.portal.NoSuchImageException,
115 com.liferay.portal.SystemException;
116
117 public java.util.List<Object> findWithDynamicQuery(
118 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
119 throws com.liferay.portal.SystemException;
120
121 public java.util.List<Object> findWithDynamicQuery(
122 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
123 int end) throws com.liferay.portal.SystemException;
124
125 public java.util.List<com.liferay.portal.model.Image> findAll()
126 throws com.liferay.portal.SystemException;
127
128 public java.util.List<com.liferay.portal.model.Image> findAll(int start,
129 int end) throws com.liferay.portal.SystemException;
130
131 public java.util.List<com.liferay.portal.model.Image> findAll(int start,
132 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.SystemException;
134
135 public void removeBySize(int size)
136 throws com.liferay.portal.SystemException;
137
138 public void removeAll() throws com.liferay.portal.SystemException;
139
140 public int countBySize(int size) throws com.liferay.portal.SystemException;
141
142 public int countAll() throws com.liferay.portal.SystemException;
143 }