001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.asset.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.persistence.BasePersistence; 020 021 import com.liferay.portlet.asset.model.AssetTag; 022 023 /** 024 * The persistence interface for the asset tag service. 025 * 026 * <p> 027 * Caching information and settings can be found in <code>portal.properties</code> 028 * </p> 029 * 030 * @author Brian Wing Shun Chan 031 * @see AssetTagPersistenceImpl 032 * @see AssetTagUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface AssetTagPersistence extends BasePersistence<AssetTag> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link AssetTagUtil} to access the asset tag persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the asset tags where groupId = ?. 045 * 046 * @param groupId the group ID 047 * @return the matching asset tags 048 */ 049 public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId( 050 long groupId); 051 052 /** 053 * Returns a range of all the asset tags where groupId = ?. 054 * 055 * <p> 056 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 057 * </p> 058 * 059 * @param groupId the group ID 060 * @param start the lower bound of the range of asset tags 061 * @param end the upper bound of the range of asset tags (not inclusive) 062 * @return the range of matching asset tags 063 */ 064 public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId( 065 long groupId, int start, int end); 066 067 /** 068 * Returns an ordered range of all the asset tags where groupId = ?. 069 * 070 * <p> 071 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 072 * </p> 073 * 074 * @param groupId the group ID 075 * @param start the lower bound of the range of asset tags 076 * @param end the upper bound of the range of asset tags (not inclusive) 077 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 078 * @return the ordered range of matching asset tags 079 */ 080 public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId( 081 long groupId, int start, int end, 082 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> orderByComparator); 083 084 /** 085 * Returns the first asset tag in the ordered set where groupId = ?. 086 * 087 * @param groupId the group ID 088 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 089 * @return the first matching asset tag 090 * @throws com.liferay.portlet.asset.NoSuchTagException if a matching asset tag could not be found 091 */ 092 public com.liferay.portlet.asset.model.AssetTag findByGroupId_First( 093 long groupId, 094 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> orderByComparator) 095 throws com.liferay.portlet.asset.NoSuchTagException; 096 097 /** 098 * Returns the first asset tag in the ordered set where groupId = ?. 099 * 100 * @param groupId the group ID 101 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 102 * @return the first matching asset tag, or <code>null</code> if a matching asset tag could not be found 103 */ 104 public com.liferay.portlet.asset.model.AssetTag fetchByGroupId_First( 105 long groupId, 106 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> orderByComparator); 107 108 /** 109 * Returns the last asset tag in the ordered set where groupId = ?. 110 * 111 * @param groupId the group ID 112 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 113 * @return the last matching asset tag 114 * @throws com.liferay.portlet.asset.NoSuchTagException if a matching asset tag could not be found 115 */ 116 public com.liferay.portlet.asset.model.AssetTag findByGroupId_Last( 117 long groupId, 118 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> orderByComparator) 119 throws com.liferay.portlet.asset.NoSuchTagException; 120 121 /** 122 * Returns the last asset tag in the ordered set where groupId = ?. 123 * 124 * @param groupId the group ID 125 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 126 * @return the last matching asset tag, or <code>null</code> if a matching asset tag could not be found 127 */ 128 public com.liferay.portlet.asset.model.AssetTag fetchByGroupId_Last( 129 long groupId, 130 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> orderByComparator); 131 132 /** 133 * Returns the asset tags before and after the current asset tag in the ordered set where groupId = ?. 134 * 135 * @param tagId the primary key of the current asset tag 136 * @param groupId the group ID 137 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 138 * @return the previous, current, and next asset tag 139 * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found 140 */ 141 public com.liferay.portlet.asset.model.AssetTag[] findByGroupId_PrevAndNext( 142 long tagId, long groupId, 143 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> orderByComparator) 144 throws com.liferay.portlet.asset.NoSuchTagException; 145 146 /** 147 * Returns all the asset tags that the user has permission to view where groupId = ?. 148 * 149 * @param groupId the group ID 150 * @return the matching asset tags that the user has permission to view 151 */ 152 public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId( 153 long groupId); 154 155 /** 156 * Returns a range of all the asset tags that the user has permission to view where groupId = ?. 157 * 158 * <p> 159 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 160 * </p> 161 * 162 * @param groupId the group ID 163 * @param start the lower bound of the range of asset tags 164 * @param end the upper bound of the range of asset tags (not inclusive) 165 * @return the range of matching asset tags that the user has permission to view 166 */ 167 public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId( 168 long groupId, int start, int end); 169 170 /** 171 * Returns an ordered range of all the asset tags that the user has permissions to view where groupId = ?. 172 * 173 * <p> 174 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 175 * </p> 176 * 177 * @param groupId the group ID 178 * @param start the lower bound of the range of asset tags 179 * @param end the upper bound of the range of asset tags (not inclusive) 180 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 181 * @return the ordered range of matching asset tags that the user has permission to view 182 */ 183 public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId( 184 long groupId, int start, int end, 185 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> orderByComparator); 186 187 /** 188 * Returns the asset tags before and after the current asset tag in the ordered set of asset tags that the user has permission to view where groupId = ?. 189 * 190 * @param tagId the primary key of the current asset tag 191 * @param groupId the group ID 192 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 193 * @return the previous, current, and next asset tag 194 * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found 195 */ 196 public com.liferay.portlet.asset.model.AssetTag[] filterFindByGroupId_PrevAndNext( 197 long tagId, long groupId, 198 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> orderByComparator) 199 throws com.liferay.portlet.asset.NoSuchTagException; 200 201 /** 202 * Removes all the asset tags where groupId = ? from the database. 203 * 204 * @param groupId the group ID 205 */ 206 public void removeByGroupId(long groupId); 207 208 /** 209 * Returns the number of asset tags where groupId = ?. 210 * 211 * @param groupId the group ID 212 * @return the number of matching asset tags 213 */ 214 public int countByGroupId(long groupId); 215 216 /** 217 * Returns the number of asset tags that the user has permission to view where groupId = ?. 218 * 219 * @param groupId the group ID 220 * @return the number of matching asset tags that the user has permission to view 221 */ 222 public int filterCountByGroupId(long groupId); 223 224 /** 225 * Returns the asset tag where groupId = ? and name = ? or throws a {@link com.liferay.portlet.asset.NoSuchTagException} if it could not be found. 226 * 227 * @param groupId the group ID 228 * @param name the name 229 * @return the matching asset tag 230 * @throws com.liferay.portlet.asset.NoSuchTagException if a matching asset tag could not be found 231 */ 232 public com.liferay.portlet.asset.model.AssetTag findByG_N(long groupId, 233 java.lang.String name) 234 throws com.liferay.portlet.asset.NoSuchTagException; 235 236 /** 237 * Returns the asset tag where groupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 238 * 239 * @param groupId the group ID 240 * @param name the name 241 * @return the matching asset tag, or <code>null</code> if a matching asset tag could not be found 242 */ 243 public com.liferay.portlet.asset.model.AssetTag fetchByG_N(long groupId, 244 java.lang.String name); 245 246 /** 247 * Returns the asset tag where groupId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 248 * 249 * @param groupId the group ID 250 * @param name the name 251 * @param retrieveFromCache whether to use the finder cache 252 * @return the matching asset tag, or <code>null</code> if a matching asset tag could not be found 253 */ 254 public com.liferay.portlet.asset.model.AssetTag fetchByG_N(long groupId, 255 java.lang.String name, boolean retrieveFromCache); 256 257 /** 258 * Removes the asset tag where groupId = ? and name = ? from the database. 259 * 260 * @param groupId the group ID 261 * @param name the name 262 * @return the asset tag that was removed 263 */ 264 public com.liferay.portlet.asset.model.AssetTag removeByG_N(long groupId, 265 java.lang.String name) 266 throws com.liferay.portlet.asset.NoSuchTagException; 267 268 /** 269 * Returns the number of asset tags where groupId = ? and name = ?. 270 * 271 * @param groupId the group ID 272 * @param name the name 273 * @return the number of matching asset tags 274 */ 275 public int countByG_N(long groupId, java.lang.String name); 276 277 /** 278 * Caches the asset tag in the entity cache if it is enabled. 279 * 280 * @param assetTag the asset tag 281 */ 282 public void cacheResult(com.liferay.portlet.asset.model.AssetTag assetTag); 283 284 /** 285 * Caches the asset tags in the entity cache if it is enabled. 286 * 287 * @param assetTags the asset tags 288 */ 289 public void cacheResult( 290 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags); 291 292 /** 293 * Creates a new asset tag with the primary key. Does not add the asset tag to the database. 294 * 295 * @param tagId the primary key for the new asset tag 296 * @return the new asset tag 297 */ 298 public com.liferay.portlet.asset.model.AssetTag create(long tagId); 299 300 /** 301 * Removes the asset tag with the primary key from the database. Also notifies the appropriate model listeners. 302 * 303 * @param tagId the primary key of the asset tag 304 * @return the asset tag that was removed 305 * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found 306 */ 307 public com.liferay.portlet.asset.model.AssetTag remove(long tagId) 308 throws com.liferay.portlet.asset.NoSuchTagException; 309 310 public com.liferay.portlet.asset.model.AssetTag updateImpl( 311 com.liferay.portlet.asset.model.AssetTag assetTag); 312 313 /** 314 * Returns the asset tag with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchTagException} if it could not be found. 315 * 316 * @param tagId the primary key of the asset tag 317 * @return the asset tag 318 * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found 319 */ 320 public com.liferay.portlet.asset.model.AssetTag findByPrimaryKey(long tagId) 321 throws com.liferay.portlet.asset.NoSuchTagException; 322 323 /** 324 * Returns the asset tag with the primary key or returns <code>null</code> if it could not be found. 325 * 326 * @param tagId the primary key of the asset tag 327 * @return the asset tag, or <code>null</code> if a asset tag with the primary key could not be found 328 */ 329 public com.liferay.portlet.asset.model.AssetTag fetchByPrimaryKey( 330 long tagId); 331 332 @Override 333 public java.util.Map<java.io.Serializable, com.liferay.portlet.asset.model.AssetTag> fetchByPrimaryKeys( 334 java.util.Set<java.io.Serializable> primaryKeys); 335 336 /** 337 * Returns all the asset tags. 338 * 339 * @return the asset tags 340 */ 341 public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(); 342 343 /** 344 * Returns a range of all the asset tags. 345 * 346 * <p> 347 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 348 * </p> 349 * 350 * @param start the lower bound of the range of asset tags 351 * @param end the upper bound of the range of asset tags (not inclusive) 352 * @return the range of asset tags 353 */ 354 public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll( 355 int start, int end); 356 357 /** 358 * Returns an ordered range of all the asset tags. 359 * 360 * <p> 361 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 362 * </p> 363 * 364 * @param start the lower bound of the range of asset tags 365 * @param end the upper bound of the range of asset tags (not inclusive) 366 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 367 * @return the ordered range of asset tags 368 */ 369 public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll( 370 int start, int end, 371 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> orderByComparator); 372 373 /** 374 * Removes all the asset tags from the database. 375 */ 376 public void removeAll(); 377 378 /** 379 * Returns the number of asset tags. 380 * 381 * @return the number of asset tags 382 */ 383 public int countAll(); 384 385 /** 386 * Returns the primaryKeys of asset entries associated with the asset tag. 387 * 388 * @param pk the primary key of the asset tag 389 * @return long[] of the primaryKeys of asset entries associated with the asset tag 390 */ 391 public long[] getAssetEntryPrimaryKeys(long pk); 392 393 /** 394 * Returns all the asset entries associated with the asset tag. 395 * 396 * @param pk the primary key of the asset tag 397 * @return the asset entries associated with the asset tag 398 */ 399 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 400 long pk); 401 402 /** 403 * Returns a range of all the asset entries associated with the asset tag. 404 * 405 * <p> 406 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 407 * </p> 408 * 409 * @param pk the primary key of the asset tag 410 * @param start the lower bound of the range of asset tags 411 * @param end the upper bound of the range of asset tags (not inclusive) 412 * @return the range of asset entries associated with the asset tag 413 */ 414 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 415 long pk, int start, int end); 416 417 /** 418 * Returns an ordered range of all the asset entries associated with the asset tag. 419 * 420 * <p> 421 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 422 * </p> 423 * 424 * @param pk the primary key of the asset tag 425 * @param start the lower bound of the range of asset tags 426 * @param end the upper bound of the range of asset tags (not inclusive) 427 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 428 * @return the ordered range of asset entries associated with the asset tag 429 */ 430 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 431 long pk, int start, int end, 432 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetEntry> orderByComparator); 433 434 /** 435 * Returns the number of asset entries associated with the asset tag. 436 * 437 * @param pk the primary key of the asset tag 438 * @return the number of asset entries associated with the asset tag 439 */ 440 public int getAssetEntriesSize(long pk); 441 442 /** 443 * Returns <code>true</code> if the asset entry is associated with the asset tag. 444 * 445 * @param pk the primary key of the asset tag 446 * @param assetEntryPK the primary key of the asset entry 447 * @return <code>true</code> if the asset entry is associated with the asset tag; <code>false</code> otherwise 448 */ 449 public boolean containsAssetEntry(long pk, long assetEntryPK); 450 451 /** 452 * Returns <code>true</code> if the asset tag has any asset entries associated with it. 453 * 454 * @param pk the primary key of the asset tag to check for associations with asset entries 455 * @return <code>true</code> if the asset tag has any asset entries associated with it; <code>false</code> otherwise 456 */ 457 public boolean containsAssetEntries(long pk); 458 459 /** 460 * Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 461 * 462 * @param pk the primary key of the asset tag 463 * @param assetEntryPK the primary key of the asset entry 464 */ 465 public void addAssetEntry(long pk, long assetEntryPK); 466 467 /** 468 * Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 469 * 470 * @param pk the primary key of the asset tag 471 * @param assetEntry the asset entry 472 */ 473 public void addAssetEntry(long pk, 474 com.liferay.portlet.asset.model.AssetEntry assetEntry); 475 476 /** 477 * Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 478 * 479 * @param pk the primary key of the asset tag 480 * @param assetEntryPKs the primary keys of the asset entries 481 */ 482 public void addAssetEntries(long pk, long[] assetEntryPKs); 483 484 /** 485 * Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 486 * 487 * @param pk the primary key of the asset tag 488 * @param assetEntries the asset entries 489 */ 490 public void addAssetEntries(long pk, 491 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries); 492 493 /** 494 * Clears all associations between the asset tag and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 495 * 496 * @param pk the primary key of the asset tag to clear the associated asset entries from 497 */ 498 public void clearAssetEntries(long pk); 499 500 /** 501 * Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 502 * 503 * @param pk the primary key of the asset tag 504 * @param assetEntryPK the primary key of the asset entry 505 */ 506 public void removeAssetEntry(long pk, long assetEntryPK); 507 508 /** 509 * Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 510 * 511 * @param pk the primary key of the asset tag 512 * @param assetEntry the asset entry 513 */ 514 public void removeAssetEntry(long pk, 515 com.liferay.portlet.asset.model.AssetEntry assetEntry); 516 517 /** 518 * Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 519 * 520 * @param pk the primary key of the asset tag 521 * @param assetEntryPKs the primary keys of the asset entries 522 */ 523 public void removeAssetEntries(long pk, long[] assetEntryPKs); 524 525 /** 526 * Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 527 * 528 * @param pk the primary key of the asset tag 529 * @param assetEntries the asset entries 530 */ 531 public void removeAssetEntries(long pk, 532 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries); 533 534 /** 535 * Sets the asset entries associated with the asset tag, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 536 * 537 * @param pk the primary key of the asset tag 538 * @param assetEntryPKs the primary keys of the asset entries to be associated with the asset tag 539 */ 540 public void setAssetEntries(long pk, long[] assetEntryPKs); 541 542 /** 543 * Sets the asset entries associated with the asset tag, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 544 * 545 * @param pk the primary key of the asset tag 546 * @param assetEntries the asset entries to be associated with the asset tag 547 */ 548 public void setAssetEntries(long pk, 549 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries); 550 }