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.NoSuchImageException,
36 com.liferay.portal.SystemException;
37
38 public com.liferay.portal.model.Image remove(
39 com.liferay.portal.model.Image image)
40 throws com.liferay.portal.SystemException;
41
42
45 public com.liferay.portal.model.Image update(
46 com.liferay.portal.model.Image image)
47 throws com.liferay.portal.SystemException;
48
49
62 public com.liferay.portal.model.Image update(
63 com.liferay.portal.model.Image image, boolean merge)
64 throws com.liferay.portal.SystemException;
65
66 public com.liferay.portal.model.Image updateImpl(
67 com.liferay.portal.model.Image image, boolean merge)
68 throws com.liferay.portal.SystemException;
69
70 public com.liferay.portal.model.Image findByPrimaryKey(long imageId)
71 throws com.liferay.portal.NoSuchImageException,
72 com.liferay.portal.SystemException;
73
74 public com.liferay.portal.model.Image fetchByPrimaryKey(long imageId)
75 throws com.liferay.portal.SystemException;
76
77 public java.util.List<com.liferay.portal.model.Image> findBySize(int size)
78 throws com.liferay.portal.SystemException;
79
80 public java.util.List<com.liferay.portal.model.Image> findBySize(int size,
81 int start, int end) throws com.liferay.portal.SystemException;
82
83 public java.util.List<com.liferay.portal.model.Image> findBySize(int size,
84 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
85 throws com.liferay.portal.SystemException;
86
87 public com.liferay.portal.model.Image findBySize_First(int size,
88 com.liferay.portal.kernel.util.OrderByComparator obc)
89 throws com.liferay.portal.NoSuchImageException,
90 com.liferay.portal.SystemException;
91
92 public com.liferay.portal.model.Image findBySize_Last(int size,
93 com.liferay.portal.kernel.util.OrderByComparator obc)
94 throws com.liferay.portal.NoSuchImageException,
95 com.liferay.portal.SystemException;
96
97 public com.liferay.portal.model.Image[] findBySize_PrevAndNext(
98 long imageId, int size,
99 com.liferay.portal.kernel.util.OrderByComparator obc)
100 throws com.liferay.portal.NoSuchImageException,
101 com.liferay.portal.SystemException;
102
103 public java.util.List<Object> findWithDynamicQuery(
104 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
105 throws com.liferay.portal.SystemException;
106
107 public java.util.List<Object> findWithDynamicQuery(
108 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
109 int end) throws com.liferay.portal.SystemException;
110
111 public java.util.List<com.liferay.portal.model.Image> findAll()
112 throws com.liferay.portal.SystemException;
113
114 public java.util.List<com.liferay.portal.model.Image> findAll(int start,
115 int end) throws com.liferay.portal.SystemException;
116
117 public java.util.List<com.liferay.portal.model.Image> findAll(int start,
118 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.SystemException;
120
121 public void removeBySize(int size)
122 throws com.liferay.portal.SystemException;
123
124 public void removeAll() throws com.liferay.portal.SystemException;
125
126 public int countBySize(int size) throws com.liferay.portal.SystemException;
127
128 public int countAll() throws com.liferay.portal.SystemException;
129
130 public void registerListener(
131 com.liferay.portal.model.ModelListener listener);
132
133 public void unregisterListener(
134 com.liferay.portal.model.ModelListener listener);
135 }