1
19
20 package com.liferay.portlet.tags.service.persistence;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Propagation;
25 import com.liferay.portal.kernel.annotation.Transactional;
26 import com.liferay.portal.service.persistence.BasePersistence;
27
28
34 @Transactional(rollbackFor = {
35 PortalException.class, SystemException.class})
36 public interface TagsEntryPersistence extends BasePersistence {
37 public com.liferay.portlet.tags.model.TagsEntry create(long entryId);
38
39 public com.liferay.portlet.tags.model.TagsEntry remove(long entryId)
40 throws com.liferay.portal.SystemException,
41 com.liferay.portlet.tags.NoSuchEntryException;
42
43 public com.liferay.portlet.tags.model.TagsEntry remove(
44 com.liferay.portlet.tags.model.TagsEntry tagsEntry)
45 throws com.liferay.portal.SystemException;
46
47
50 public com.liferay.portlet.tags.model.TagsEntry update(
51 com.liferay.portlet.tags.model.TagsEntry tagsEntry)
52 throws com.liferay.portal.SystemException;
53
54
67 public com.liferay.portlet.tags.model.TagsEntry update(
68 com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
69 throws com.liferay.portal.SystemException;
70
71 public com.liferay.portlet.tags.model.TagsEntry updateImpl(
72 com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
73 throws com.liferay.portal.SystemException;
74
75 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
76 public com.liferay.portlet.tags.model.TagsEntry findByPrimaryKey(
77 long entryId)
78 throws com.liferay.portal.SystemException,
79 com.liferay.portlet.tags.NoSuchEntryException;
80
81 public com.liferay.portlet.tags.model.TagsEntry fetchByPrimaryKey(
82 long entryId) throws com.liferay.portal.SystemException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public com.liferay.portlet.tags.model.TagsEntry findByC_N(long companyId,
86 java.lang.String name)
87 throws com.liferay.portal.SystemException,
88 com.liferay.portlet.tags.NoSuchEntryException;
89
90 public com.liferay.portlet.tags.model.TagsEntry fetchByC_N(long companyId,
91 java.lang.String name) throws com.liferay.portal.SystemException;
92
93 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94 public java.util.List<Object> findWithDynamicQuery(
95 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
96 throws com.liferay.portal.SystemException;
97
98 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99 public java.util.List<Object> findWithDynamicQuery(
100 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
101 int end) throws com.liferay.portal.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll()
105 throws com.liferay.portal.SystemException;
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll(
109 int start, int end) throws com.liferay.portal.SystemException;
110
111 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll(
113 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
114 throws com.liferay.portal.SystemException;
115
116 public void removeByC_N(long companyId, java.lang.String name)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.tags.NoSuchEntryException;
119
120 public void removeAll() throws com.liferay.portal.SystemException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public int countByC_N(long companyId, java.lang.String name)
124 throws com.liferay.portal.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public int countAll() throws com.liferay.portal.SystemException;
128
129 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
131 long pk) throws com.liferay.portal.SystemException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
135 long pk, int start, int end) throws com.liferay.portal.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
139 long pk, int start, int end,
140 com.liferay.portal.kernel.util.OrderByComparator obc)
141 throws com.liferay.portal.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public int getTagsAssetsSize(long pk)
145 throws com.liferay.portal.SystemException;
146
147 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public boolean containsTagsAsset(long pk, long tagsAssetPK)
149 throws com.liferay.portal.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public boolean containsTagsAssets(long pk)
153 throws com.liferay.portal.SystemException;
154
155 public void addTagsAsset(long pk, long tagsAssetPK)
156 throws com.liferay.portal.SystemException;
157
158 public void addTagsAsset(long pk,
159 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
160 throws com.liferay.portal.SystemException;
161
162 public void addTagsAssets(long pk, long[] tagsAssetPKs)
163 throws com.liferay.portal.SystemException;
164
165 public void addTagsAssets(long pk,
166 java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
167 throws com.liferay.portal.SystemException;
168
169 public void clearTagsAssets(long pk)
170 throws com.liferay.portal.SystemException;
171
172 public void removeTagsAsset(long pk, long tagsAssetPK)
173 throws com.liferay.portal.SystemException;
174
175 public void removeTagsAsset(long pk,
176 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
177 throws com.liferay.portal.SystemException;
178
179 public void removeTagsAssets(long pk, long[] tagsAssetPKs)
180 throws com.liferay.portal.SystemException;
181
182 public void removeTagsAssets(long pk,
183 java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
184 throws com.liferay.portal.SystemException;
185
186 public void setTagsAssets(long pk, long[] tagsAssetPKs)
187 throws com.liferay.portal.SystemException;
188
189 public void setTagsAssets(long pk,
190 java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
191 throws com.liferay.portal.SystemException;
192 }