1
22
23 package com.liferay.portal.service.persistence;
24
25
26
39 public interface ResourcePersistence extends BasePersistence {
40 public void cacheResult(com.liferay.portal.model.Resource resource);
41
42 public void cacheResult(
43 java.util.List<com.liferay.portal.model.Resource> resources);
44
45 public void clearCache();
46
47 public com.liferay.portal.model.Resource create(long resourceId);
48
49 public com.liferay.portal.model.Resource remove(long resourceId)
50 throws com.liferay.portal.NoSuchResourceException,
51 com.liferay.portal.SystemException;
52
53 public com.liferay.portal.model.Resource remove(
54 com.liferay.portal.model.Resource resource)
55 throws com.liferay.portal.SystemException;
56
57
60 public com.liferay.portal.model.Resource update(
61 com.liferay.portal.model.Resource resource)
62 throws com.liferay.portal.SystemException;
63
64
76 public com.liferay.portal.model.Resource update(
77 com.liferay.portal.model.Resource resource, boolean merge)
78 throws com.liferay.portal.SystemException;
79
80 public com.liferay.portal.model.Resource updateImpl(
81 com.liferay.portal.model.Resource resource, boolean merge)
82 throws com.liferay.portal.SystemException;
83
84 public com.liferay.portal.model.Resource findByPrimaryKey(long resourceId)
85 throws com.liferay.portal.NoSuchResourceException,
86 com.liferay.portal.SystemException;
87
88 public com.liferay.portal.model.Resource fetchByPrimaryKey(long resourceId)
89 throws com.liferay.portal.SystemException;
90
91 public java.util.List<com.liferay.portal.model.Resource> findByCodeId(
92 long codeId) throws com.liferay.portal.SystemException;
93
94 public java.util.List<com.liferay.portal.model.Resource> findByCodeId(
95 long codeId, int start, int end)
96 throws com.liferay.portal.SystemException;
97
98 public java.util.List<com.liferay.portal.model.Resource> findByCodeId(
99 long codeId, int start, int end,
100 com.liferay.portal.kernel.util.OrderByComparator obc)
101 throws com.liferay.portal.SystemException;
102
103 public com.liferay.portal.model.Resource findByCodeId_First(long codeId,
104 com.liferay.portal.kernel.util.OrderByComparator obc)
105 throws com.liferay.portal.NoSuchResourceException,
106 com.liferay.portal.SystemException;
107
108 public com.liferay.portal.model.Resource findByCodeId_Last(long codeId,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.NoSuchResourceException,
111 com.liferay.portal.SystemException;
112
113 public com.liferay.portal.model.Resource[] findByCodeId_PrevAndNext(
114 long resourceId, long codeId,
115 com.liferay.portal.kernel.util.OrderByComparator obc)
116 throws com.liferay.portal.NoSuchResourceException,
117 com.liferay.portal.SystemException;
118
119 public com.liferay.portal.model.Resource findByC_P(long codeId,
120 java.lang.String primKey)
121 throws com.liferay.portal.NoSuchResourceException,
122 com.liferay.portal.SystemException;
123
124 public com.liferay.portal.model.Resource fetchByC_P(long codeId,
125 java.lang.String primKey) throws com.liferay.portal.SystemException;
126
127 public com.liferay.portal.model.Resource fetchByC_P(long codeId,
128 java.lang.String primKey, boolean retrieveFromCache)
129 throws com.liferay.portal.SystemException;
130
131 public java.util.List<Object> findWithDynamicQuery(
132 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
133 throws com.liferay.portal.SystemException;
134
135 public java.util.List<Object> findWithDynamicQuery(
136 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137 int end) throws com.liferay.portal.SystemException;
138
139 public java.util.List<com.liferay.portal.model.Resource> findAll()
140 throws com.liferay.portal.SystemException;
141
142 public java.util.List<com.liferay.portal.model.Resource> findAll(
143 int start, int end) throws com.liferay.portal.SystemException;
144
145 public java.util.List<com.liferay.portal.model.Resource> findAll(
146 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
147 throws com.liferay.portal.SystemException;
148
149 public void removeByCodeId(long codeId)
150 throws com.liferay.portal.SystemException;
151
152 public void removeByC_P(long codeId, java.lang.String primKey)
153 throws com.liferay.portal.NoSuchResourceException,
154 com.liferay.portal.SystemException;
155
156 public void removeAll() throws com.liferay.portal.SystemException;
157
158 public int countByCodeId(long codeId)
159 throws com.liferay.portal.SystemException;
160
161 public int countByC_P(long codeId, java.lang.String primKey)
162 throws com.liferay.portal.SystemException;
163
164 public int countAll() throws com.liferay.portal.SystemException;
165 }