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.AssetVocabulary; 022 023 /** 024 * The persistence interface for the asset vocabulary 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 com.liferay.portlet.asset.service.persistence.impl.AssetVocabularyPersistenceImpl 032 * @see AssetVocabularyUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface AssetVocabularyPersistence extends BasePersistence<AssetVocabulary> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link AssetVocabularyUtil} to access the asset vocabulary persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the asset vocabularies where uuid = ?. 045 * 046 * @param uuid the uuid 047 * @return the matching asset vocabularies 048 */ 049 public java.util.List<AssetVocabulary> findByUuid(java.lang.String uuid); 050 051 /** 052 * Returns a range of all the asset vocabularies where uuid = ?. 053 * 054 * <p> 055 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 056 * </p> 057 * 058 * @param uuid the uuid 059 * @param start the lower bound of the range of asset vocabularies 060 * @param end the upper bound of the range of asset vocabularies (not inclusive) 061 * @return the range of matching asset vocabularies 062 */ 063 public java.util.List<AssetVocabulary> findByUuid(java.lang.String uuid, 064 int start, int end); 065 066 /** 067 * Returns an ordered range of all the asset vocabularies where uuid = ?. 068 * 069 * <p> 070 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 071 * </p> 072 * 073 * @param uuid the uuid 074 * @param start the lower bound of the range of asset vocabularies 075 * @param end the upper bound of the range of asset vocabularies (not inclusive) 076 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 077 * @return the ordered range of matching asset vocabularies 078 */ 079 public java.util.List<AssetVocabulary> findByUuid(java.lang.String uuid, 080 int start, int end, 081 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 082 083 /** 084 * Returns the first asset vocabulary in the ordered set where uuid = ?. 085 * 086 * @param uuid the uuid 087 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 088 * @return the first matching asset vocabulary 089 * @throws NoSuchVocabularyException if a matching asset vocabulary could not be found 090 */ 091 public AssetVocabulary findByUuid_First(java.lang.String uuid, 092 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator) 093 throws com.liferay.portlet.asset.NoSuchVocabularyException; 094 095 /** 096 * Returns the first asset vocabulary in the ordered set where uuid = ?. 097 * 098 * @param uuid the uuid 099 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 100 * @return the first matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 101 */ 102 public AssetVocabulary fetchByUuid_First(java.lang.String uuid, 103 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 104 105 /** 106 * Returns the last asset vocabulary in the ordered set where uuid = ?. 107 * 108 * @param uuid the uuid 109 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 110 * @return the last matching asset vocabulary 111 * @throws NoSuchVocabularyException if a matching asset vocabulary could not be found 112 */ 113 public AssetVocabulary findByUuid_Last(java.lang.String uuid, 114 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator) 115 throws com.liferay.portlet.asset.NoSuchVocabularyException; 116 117 /** 118 * Returns the last asset vocabulary in the ordered set where uuid = ?. 119 * 120 * @param uuid the uuid 121 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 122 * @return the last matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 123 */ 124 public AssetVocabulary fetchByUuid_Last(java.lang.String uuid, 125 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 126 127 /** 128 * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where uuid = ?. 129 * 130 * @param vocabularyId the primary key of the current asset vocabulary 131 * @param uuid the uuid 132 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 133 * @return the previous, current, and next asset vocabulary 134 * @throws NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 135 */ 136 public AssetVocabulary[] findByUuid_PrevAndNext(long vocabularyId, 137 java.lang.String uuid, 138 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator) 139 throws com.liferay.portlet.asset.NoSuchVocabularyException; 140 141 /** 142 * Removes all the asset vocabularies where uuid = ? from the database. 143 * 144 * @param uuid the uuid 145 */ 146 public void removeByUuid(java.lang.String uuid); 147 148 /** 149 * Returns the number of asset vocabularies where uuid = ?. 150 * 151 * @param uuid the uuid 152 * @return the number of matching asset vocabularies 153 */ 154 public int countByUuid(java.lang.String uuid); 155 156 /** 157 * Returns the asset vocabulary where uuid = ? and groupId = ? or throws a {@link NoSuchVocabularyException} if it could not be found. 158 * 159 * @param uuid the uuid 160 * @param groupId the group ID 161 * @return the matching asset vocabulary 162 * @throws NoSuchVocabularyException if a matching asset vocabulary could not be found 163 */ 164 public AssetVocabulary findByUUID_G(java.lang.String uuid, long groupId) 165 throws com.liferay.portlet.asset.NoSuchVocabularyException; 166 167 /** 168 * Returns the asset vocabulary where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 169 * 170 * @param uuid the uuid 171 * @param groupId the group ID 172 * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 173 */ 174 public AssetVocabulary fetchByUUID_G(java.lang.String uuid, long groupId); 175 176 /** 177 * Returns the asset vocabulary where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 178 * 179 * @param uuid the uuid 180 * @param groupId the group ID 181 * @param retrieveFromCache whether to use the finder cache 182 * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 183 */ 184 public AssetVocabulary fetchByUUID_G(java.lang.String uuid, long groupId, 185 boolean retrieveFromCache); 186 187 /** 188 * Removes the asset vocabulary where uuid = ? and groupId = ? from the database. 189 * 190 * @param uuid the uuid 191 * @param groupId the group ID 192 * @return the asset vocabulary that was removed 193 */ 194 public AssetVocabulary removeByUUID_G(java.lang.String uuid, long groupId) 195 throws com.liferay.portlet.asset.NoSuchVocabularyException; 196 197 /** 198 * Returns the number of asset vocabularies where uuid = ? and groupId = ?. 199 * 200 * @param uuid the uuid 201 * @param groupId the group ID 202 * @return the number of matching asset vocabularies 203 */ 204 public int countByUUID_G(java.lang.String uuid, long groupId); 205 206 /** 207 * Returns all the asset vocabularies where uuid = ? and companyId = ?. 208 * 209 * @param uuid the uuid 210 * @param companyId the company ID 211 * @return the matching asset vocabularies 212 */ 213 public java.util.List<AssetVocabulary> findByUuid_C(java.lang.String uuid, 214 long companyId); 215 216 /** 217 * Returns a range of all the asset vocabularies where uuid = ? and companyId = ?. 218 * 219 * <p> 220 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 221 * </p> 222 * 223 * @param uuid the uuid 224 * @param companyId the company ID 225 * @param start the lower bound of the range of asset vocabularies 226 * @param end the upper bound of the range of asset vocabularies (not inclusive) 227 * @return the range of matching asset vocabularies 228 */ 229 public java.util.List<AssetVocabulary> findByUuid_C(java.lang.String uuid, 230 long companyId, int start, int end); 231 232 /** 233 * Returns an ordered range of all the asset vocabularies where uuid = ? and companyId = ?. 234 * 235 * <p> 236 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 237 * </p> 238 * 239 * @param uuid the uuid 240 * @param companyId the company ID 241 * @param start the lower bound of the range of asset vocabularies 242 * @param end the upper bound of the range of asset vocabularies (not inclusive) 243 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 244 * @return the ordered range of matching asset vocabularies 245 */ 246 public java.util.List<AssetVocabulary> findByUuid_C(java.lang.String uuid, 247 long companyId, int start, int end, 248 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 249 250 /** 251 * Returns the first asset vocabulary in the ordered set where uuid = ? and companyId = ?. 252 * 253 * @param uuid the uuid 254 * @param companyId the company ID 255 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 256 * @return the first matching asset vocabulary 257 * @throws NoSuchVocabularyException if a matching asset vocabulary could not be found 258 */ 259 public AssetVocabulary findByUuid_C_First(java.lang.String uuid, 260 long companyId, 261 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator) 262 throws com.liferay.portlet.asset.NoSuchVocabularyException; 263 264 /** 265 * Returns the first asset vocabulary in the ordered set where uuid = ? and companyId = ?. 266 * 267 * @param uuid the uuid 268 * @param companyId the company ID 269 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 270 * @return the first matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 271 */ 272 public AssetVocabulary fetchByUuid_C_First(java.lang.String uuid, 273 long companyId, 274 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 275 276 /** 277 * Returns the last asset vocabulary in the ordered set where uuid = ? and companyId = ?. 278 * 279 * @param uuid the uuid 280 * @param companyId the company ID 281 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 282 * @return the last matching asset vocabulary 283 * @throws NoSuchVocabularyException if a matching asset vocabulary could not be found 284 */ 285 public AssetVocabulary findByUuid_C_Last(java.lang.String uuid, 286 long companyId, 287 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator) 288 throws com.liferay.portlet.asset.NoSuchVocabularyException; 289 290 /** 291 * Returns the last asset vocabulary in the ordered set where uuid = ? and companyId = ?. 292 * 293 * @param uuid the uuid 294 * @param companyId the company ID 295 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 296 * @return the last matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 297 */ 298 public AssetVocabulary fetchByUuid_C_Last(java.lang.String uuid, 299 long companyId, 300 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 301 302 /** 303 * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where uuid = ? and companyId = ?. 304 * 305 * @param vocabularyId the primary key of the current asset vocabulary 306 * @param uuid the uuid 307 * @param companyId the company ID 308 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 309 * @return the previous, current, and next asset vocabulary 310 * @throws NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 311 */ 312 public AssetVocabulary[] findByUuid_C_PrevAndNext(long vocabularyId, 313 java.lang.String uuid, long companyId, 314 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator) 315 throws com.liferay.portlet.asset.NoSuchVocabularyException; 316 317 /** 318 * Removes all the asset vocabularies where uuid = ? and companyId = ? from the database. 319 * 320 * @param uuid the uuid 321 * @param companyId the company ID 322 */ 323 public void removeByUuid_C(java.lang.String uuid, long companyId); 324 325 /** 326 * Returns the number of asset vocabularies where uuid = ? and companyId = ?. 327 * 328 * @param uuid the uuid 329 * @param companyId the company ID 330 * @return the number of matching asset vocabularies 331 */ 332 public int countByUuid_C(java.lang.String uuid, long companyId); 333 334 /** 335 * Returns all the asset vocabularies where groupId = ?. 336 * 337 * @param groupId the group ID 338 * @return the matching asset vocabularies 339 */ 340 public java.util.List<AssetVocabulary> findByGroupId(long groupId); 341 342 /** 343 * Returns a range of all the asset vocabularies where groupId = ?. 344 * 345 * <p> 346 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 347 * </p> 348 * 349 * @param groupId the group ID 350 * @param start the lower bound of the range of asset vocabularies 351 * @param end the upper bound of the range of asset vocabularies (not inclusive) 352 * @return the range of matching asset vocabularies 353 */ 354 public java.util.List<AssetVocabulary> findByGroupId(long groupId, 355 int start, int end); 356 357 /** 358 * Returns an ordered range of all the asset vocabularies where groupId = ?. 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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 groupId the group ID 365 * @param start the lower bound of the range of asset vocabularies 366 * @param end the upper bound of the range of asset vocabularies (not inclusive) 367 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 368 * @return the ordered range of matching asset vocabularies 369 */ 370 public java.util.List<AssetVocabulary> findByGroupId(long groupId, 371 int start, int end, 372 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 373 374 /** 375 * Returns the first asset vocabulary in the ordered set where groupId = ?. 376 * 377 * @param groupId the group ID 378 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 379 * @return the first matching asset vocabulary 380 * @throws NoSuchVocabularyException if a matching asset vocabulary could not be found 381 */ 382 public AssetVocabulary findByGroupId_First(long groupId, 383 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator) 384 throws com.liferay.portlet.asset.NoSuchVocabularyException; 385 386 /** 387 * Returns the first asset vocabulary in the ordered set where groupId = ?. 388 * 389 * @param groupId the group ID 390 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 391 * @return the first matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 392 */ 393 public AssetVocabulary fetchByGroupId_First(long groupId, 394 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 395 396 /** 397 * Returns the last asset vocabulary in the ordered set where groupId = ?. 398 * 399 * @param groupId the group ID 400 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 401 * @return the last matching asset vocabulary 402 * @throws NoSuchVocabularyException if a matching asset vocabulary could not be found 403 */ 404 public AssetVocabulary findByGroupId_Last(long groupId, 405 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator) 406 throws com.liferay.portlet.asset.NoSuchVocabularyException; 407 408 /** 409 * Returns the last asset vocabulary in the ordered set where groupId = ?. 410 * 411 * @param groupId the group ID 412 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 413 * @return the last matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 414 */ 415 public AssetVocabulary fetchByGroupId_Last(long groupId, 416 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 417 418 /** 419 * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where groupId = ?. 420 * 421 * @param vocabularyId the primary key of the current asset vocabulary 422 * @param groupId the group ID 423 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 424 * @return the previous, current, and next asset vocabulary 425 * @throws NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 426 */ 427 public AssetVocabulary[] findByGroupId_PrevAndNext(long vocabularyId, 428 long groupId, 429 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator) 430 throws com.liferay.portlet.asset.NoSuchVocabularyException; 431 432 /** 433 * Returns all the asset vocabularies that the user has permission to view where groupId = ?. 434 * 435 * @param groupId the group ID 436 * @return the matching asset vocabularies that the user has permission to view 437 */ 438 public java.util.List<AssetVocabulary> filterFindByGroupId(long groupId); 439 440 /** 441 * Returns a range of all the asset vocabularies that the user has permission to view where groupId = ?. 442 * 443 * <p> 444 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 445 * </p> 446 * 447 * @param groupId the group ID 448 * @param start the lower bound of the range of asset vocabularies 449 * @param end the upper bound of the range of asset vocabularies (not inclusive) 450 * @return the range of matching asset vocabularies that the user has permission to view 451 */ 452 public java.util.List<AssetVocabulary> filterFindByGroupId(long groupId, 453 int start, int end); 454 455 /** 456 * Returns an ordered range of all the asset vocabularies that the user has permissions to view where groupId = ?. 457 * 458 * <p> 459 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 460 * </p> 461 * 462 * @param groupId the group ID 463 * @param start the lower bound of the range of asset vocabularies 464 * @param end the upper bound of the range of asset vocabularies (not inclusive) 465 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 466 * @return the ordered range of matching asset vocabularies that the user has permission to view 467 */ 468 public java.util.List<AssetVocabulary> filterFindByGroupId(long groupId, 469 int start, int end, 470 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 471 472 /** 473 * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set of asset vocabularies that the user has permission to view where groupId = ?. 474 * 475 * @param vocabularyId the primary key of the current asset vocabulary 476 * @param groupId the group ID 477 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 478 * @return the previous, current, and next asset vocabulary 479 * @throws NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 480 */ 481 public AssetVocabulary[] filterFindByGroupId_PrevAndNext( 482 long vocabularyId, long groupId, 483 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator) 484 throws com.liferay.portlet.asset.NoSuchVocabularyException; 485 486 /** 487 * Returns all the asset vocabularies that the user has permission to view where groupId = any ?. 488 * 489 * @param groupIds the group IDs 490 * @return the matching asset vocabularies that the user has permission to view 491 */ 492 public java.util.List<AssetVocabulary> filterFindByGroupId(long[] groupIds); 493 494 /** 495 * Returns a range of all the asset vocabularies that the user has permission to view where groupId = any ?. 496 * 497 * <p> 498 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 499 * </p> 500 * 501 * @param groupIds the group IDs 502 * @param start the lower bound of the range of asset vocabularies 503 * @param end the upper bound of the range of asset vocabularies (not inclusive) 504 * @return the range of matching asset vocabularies that the user has permission to view 505 */ 506 public java.util.List<AssetVocabulary> filterFindByGroupId( 507 long[] groupIds, int start, int end); 508 509 /** 510 * Returns an ordered range of all the asset vocabularies that the user has permission to view where groupId = any ?. 511 * 512 * <p> 513 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 514 * </p> 515 * 516 * @param groupIds the group IDs 517 * @param start the lower bound of the range of asset vocabularies 518 * @param end the upper bound of the range of asset vocabularies (not inclusive) 519 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 520 * @return the ordered range of matching asset vocabularies that the user has permission to view 521 */ 522 public java.util.List<AssetVocabulary> filterFindByGroupId( 523 long[] groupIds, int start, int end, 524 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 525 526 /** 527 * Returns all the asset vocabularies where groupId = any ?. 528 * 529 * <p> 530 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 531 * </p> 532 * 533 * @param groupIds the group IDs 534 * @return the matching asset vocabularies 535 */ 536 public java.util.List<AssetVocabulary> findByGroupId(long[] groupIds); 537 538 /** 539 * Returns a range of all the asset vocabularies where groupId = any ?. 540 * 541 * <p> 542 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 543 * </p> 544 * 545 * @param groupIds the group IDs 546 * @param start the lower bound of the range of asset vocabularies 547 * @param end the upper bound of the range of asset vocabularies (not inclusive) 548 * @return the range of matching asset vocabularies 549 */ 550 public java.util.List<AssetVocabulary> findByGroupId(long[] groupIds, 551 int start, int end); 552 553 /** 554 * Returns an ordered range of all the asset vocabularies where groupId = any ?. 555 * 556 * <p> 557 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 558 * </p> 559 * 560 * @param groupIds the group IDs 561 * @param start the lower bound of the range of asset vocabularies 562 * @param end the upper bound of the range of asset vocabularies (not inclusive) 563 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 564 * @return the ordered range of matching asset vocabularies 565 */ 566 public java.util.List<AssetVocabulary> findByGroupId(long[] groupIds, 567 int start, int end, 568 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 569 570 /** 571 * Removes all the asset vocabularies where groupId = ? from the database. 572 * 573 * @param groupId the group ID 574 */ 575 public void removeByGroupId(long groupId); 576 577 /** 578 * Returns the number of asset vocabularies where groupId = ?. 579 * 580 * @param groupId the group ID 581 * @return the number of matching asset vocabularies 582 */ 583 public int countByGroupId(long groupId); 584 585 /** 586 * Returns the number of asset vocabularies where groupId = any ?. 587 * 588 * @param groupIds the group IDs 589 * @return the number of matching asset vocabularies 590 */ 591 public int countByGroupId(long[] groupIds); 592 593 /** 594 * Returns the number of asset vocabularies that the user has permission to view where groupId = ?. 595 * 596 * @param groupId the group ID 597 * @return the number of matching asset vocabularies that the user has permission to view 598 */ 599 public int filterCountByGroupId(long groupId); 600 601 /** 602 * Returns the number of asset vocabularies that the user has permission to view where groupId = any ?. 603 * 604 * @param groupIds the group IDs 605 * @return the number of matching asset vocabularies that the user has permission to view 606 */ 607 public int filterCountByGroupId(long[] groupIds); 608 609 /** 610 * Returns all the asset vocabularies where companyId = ?. 611 * 612 * @param companyId the company ID 613 * @return the matching asset vocabularies 614 */ 615 public java.util.List<AssetVocabulary> findByCompanyId(long companyId); 616 617 /** 618 * Returns a range of all the asset vocabularies where companyId = ?. 619 * 620 * <p> 621 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 622 * </p> 623 * 624 * @param companyId the company ID 625 * @param start the lower bound of the range of asset vocabularies 626 * @param end the upper bound of the range of asset vocabularies (not inclusive) 627 * @return the range of matching asset vocabularies 628 */ 629 public java.util.List<AssetVocabulary> findByCompanyId(long companyId, 630 int start, int end); 631 632 /** 633 * Returns an ordered range of all the asset vocabularies where companyId = ?. 634 * 635 * <p> 636 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 637 * </p> 638 * 639 * @param companyId the company ID 640 * @param start the lower bound of the range of asset vocabularies 641 * @param end the upper bound of the range of asset vocabularies (not inclusive) 642 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 643 * @return the ordered range of matching asset vocabularies 644 */ 645 public java.util.List<AssetVocabulary> findByCompanyId(long companyId, 646 int start, int end, 647 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 648 649 /** 650 * Returns the first asset vocabulary in the ordered set where companyId = ?. 651 * 652 * @param companyId the company ID 653 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 654 * @return the first matching asset vocabulary 655 * @throws NoSuchVocabularyException if a matching asset vocabulary could not be found 656 */ 657 public AssetVocabulary findByCompanyId_First(long companyId, 658 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator) 659 throws com.liferay.portlet.asset.NoSuchVocabularyException; 660 661 /** 662 * Returns the first asset vocabulary in the ordered set where companyId = ?. 663 * 664 * @param companyId the company ID 665 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 666 * @return the first matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 667 */ 668 public AssetVocabulary fetchByCompanyId_First(long companyId, 669 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 670 671 /** 672 * Returns the last asset vocabulary in the ordered set where companyId = ?. 673 * 674 * @param companyId the company ID 675 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 676 * @return the last matching asset vocabulary 677 * @throws NoSuchVocabularyException if a matching asset vocabulary could not be found 678 */ 679 public AssetVocabulary findByCompanyId_Last(long companyId, 680 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator) 681 throws com.liferay.portlet.asset.NoSuchVocabularyException; 682 683 /** 684 * Returns the last asset vocabulary in the ordered set where companyId = ?. 685 * 686 * @param companyId the company ID 687 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 688 * @return the last matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 689 */ 690 public AssetVocabulary fetchByCompanyId_Last(long companyId, 691 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 692 693 /** 694 * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where companyId = ?. 695 * 696 * @param vocabularyId the primary key of the current asset vocabulary 697 * @param companyId the company ID 698 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 699 * @return the previous, current, and next asset vocabulary 700 * @throws NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 701 */ 702 public AssetVocabulary[] findByCompanyId_PrevAndNext(long vocabularyId, 703 long companyId, 704 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator) 705 throws com.liferay.portlet.asset.NoSuchVocabularyException; 706 707 /** 708 * Removes all the asset vocabularies where companyId = ? from the database. 709 * 710 * @param companyId the company ID 711 */ 712 public void removeByCompanyId(long companyId); 713 714 /** 715 * Returns the number of asset vocabularies where companyId = ?. 716 * 717 * @param companyId the company ID 718 * @return the number of matching asset vocabularies 719 */ 720 public int countByCompanyId(long companyId); 721 722 /** 723 * Returns the asset vocabulary where groupId = ? and name = ? or throws a {@link NoSuchVocabularyException} if it could not be found. 724 * 725 * @param groupId the group ID 726 * @param name the name 727 * @return the matching asset vocabulary 728 * @throws NoSuchVocabularyException if a matching asset vocabulary could not be found 729 */ 730 public AssetVocabulary findByG_N(long groupId, java.lang.String name) 731 throws com.liferay.portlet.asset.NoSuchVocabularyException; 732 733 /** 734 * Returns the asset vocabulary where groupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 735 * 736 * @param groupId the group ID 737 * @param name the name 738 * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 739 */ 740 public AssetVocabulary fetchByG_N(long groupId, java.lang.String name); 741 742 /** 743 * Returns the asset vocabulary where groupId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 744 * 745 * @param groupId the group ID 746 * @param name the name 747 * @param retrieveFromCache whether to use the finder cache 748 * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 749 */ 750 public AssetVocabulary fetchByG_N(long groupId, java.lang.String name, 751 boolean retrieveFromCache); 752 753 /** 754 * Removes the asset vocabulary where groupId = ? and name = ? from the database. 755 * 756 * @param groupId the group ID 757 * @param name the name 758 * @return the asset vocabulary that was removed 759 */ 760 public AssetVocabulary removeByG_N(long groupId, java.lang.String name) 761 throws com.liferay.portlet.asset.NoSuchVocabularyException; 762 763 /** 764 * Returns the number of asset vocabularies where groupId = ? and name = ?. 765 * 766 * @param groupId the group ID 767 * @param name the name 768 * @return the number of matching asset vocabularies 769 */ 770 public int countByG_N(long groupId, java.lang.String name); 771 772 /** 773 * Returns all the asset vocabularies where groupId = ? and name LIKE ?. 774 * 775 * @param groupId the group ID 776 * @param name the name 777 * @return the matching asset vocabularies 778 */ 779 public java.util.List<AssetVocabulary> findByG_LikeN(long groupId, 780 java.lang.String name); 781 782 /** 783 * Returns a range of all the asset vocabularies where groupId = ? and name LIKE ?. 784 * 785 * <p> 786 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 787 * </p> 788 * 789 * @param groupId the group ID 790 * @param name the name 791 * @param start the lower bound of the range of asset vocabularies 792 * @param end the upper bound of the range of asset vocabularies (not inclusive) 793 * @return the range of matching asset vocabularies 794 */ 795 public java.util.List<AssetVocabulary> findByG_LikeN(long groupId, 796 java.lang.String name, int start, int end); 797 798 /** 799 * Returns an ordered range of all the asset vocabularies where groupId = ? and name LIKE ?. 800 * 801 * <p> 802 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 803 * </p> 804 * 805 * @param groupId the group ID 806 * @param name the name 807 * @param start the lower bound of the range of asset vocabularies 808 * @param end the upper bound of the range of asset vocabularies (not inclusive) 809 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 810 * @return the ordered range of matching asset vocabularies 811 */ 812 public java.util.List<AssetVocabulary> findByG_LikeN(long groupId, 813 java.lang.String name, int start, int end, 814 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 815 816 /** 817 * Returns the first asset vocabulary in the ordered set where groupId = ? and name LIKE ?. 818 * 819 * @param groupId the group ID 820 * @param name the name 821 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 822 * @return the first matching asset vocabulary 823 * @throws NoSuchVocabularyException if a matching asset vocabulary could not be found 824 */ 825 public AssetVocabulary findByG_LikeN_First(long groupId, 826 java.lang.String name, 827 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator) 828 throws com.liferay.portlet.asset.NoSuchVocabularyException; 829 830 /** 831 * Returns the first asset vocabulary in the ordered set where groupId = ? and name LIKE ?. 832 * 833 * @param groupId the group ID 834 * @param name the name 835 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 836 * @return the first matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 837 */ 838 public AssetVocabulary fetchByG_LikeN_First(long groupId, 839 java.lang.String name, 840 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 841 842 /** 843 * Returns the last asset vocabulary in the ordered set where groupId = ? and name LIKE ?. 844 * 845 * @param groupId the group ID 846 * @param name the name 847 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 848 * @return the last matching asset vocabulary 849 * @throws NoSuchVocabularyException if a matching asset vocabulary could not be found 850 */ 851 public AssetVocabulary findByG_LikeN_Last(long groupId, 852 java.lang.String name, 853 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator) 854 throws com.liferay.portlet.asset.NoSuchVocabularyException; 855 856 /** 857 * Returns the last asset vocabulary in the ordered set where groupId = ? and name LIKE ?. 858 * 859 * @param groupId the group ID 860 * @param name the name 861 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 862 * @return the last matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 863 */ 864 public AssetVocabulary fetchByG_LikeN_Last(long groupId, 865 java.lang.String name, 866 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 867 868 /** 869 * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where groupId = ? and name LIKE ?. 870 * 871 * @param vocabularyId the primary key of the current asset vocabulary 872 * @param groupId the group ID 873 * @param name the name 874 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 875 * @return the previous, current, and next asset vocabulary 876 * @throws NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 877 */ 878 public AssetVocabulary[] findByG_LikeN_PrevAndNext(long vocabularyId, 879 long groupId, java.lang.String name, 880 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator) 881 throws com.liferay.portlet.asset.NoSuchVocabularyException; 882 883 /** 884 * Returns all the asset vocabularies that the user has permission to view where groupId = ? and name LIKE ?. 885 * 886 * @param groupId the group ID 887 * @param name the name 888 * @return the matching asset vocabularies that the user has permission to view 889 */ 890 public java.util.List<AssetVocabulary> filterFindByG_LikeN(long groupId, 891 java.lang.String name); 892 893 /** 894 * Returns a range of all the asset vocabularies that the user has permission to view where groupId = ? and name LIKE ?. 895 * 896 * <p> 897 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 898 * </p> 899 * 900 * @param groupId the group ID 901 * @param name the name 902 * @param start the lower bound of the range of asset vocabularies 903 * @param end the upper bound of the range of asset vocabularies (not inclusive) 904 * @return the range of matching asset vocabularies that the user has permission to view 905 */ 906 public java.util.List<AssetVocabulary> filterFindByG_LikeN(long groupId, 907 java.lang.String name, int start, int end); 908 909 /** 910 * Returns an ordered range of all the asset vocabularies that the user has permissions to view where groupId = ? and name LIKE ?. 911 * 912 * <p> 913 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 914 * </p> 915 * 916 * @param groupId the group ID 917 * @param name the name 918 * @param start the lower bound of the range of asset vocabularies 919 * @param end the upper bound of the range of asset vocabularies (not inclusive) 920 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 921 * @return the ordered range of matching asset vocabularies that the user has permission to view 922 */ 923 public java.util.List<AssetVocabulary> filterFindByG_LikeN(long groupId, 924 java.lang.String name, int start, int end, 925 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 926 927 /** 928 * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set of asset vocabularies that the user has permission to view where groupId = ? and name LIKE ?. 929 * 930 * @param vocabularyId the primary key of the current asset vocabulary 931 * @param groupId the group ID 932 * @param name the name 933 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 934 * @return the previous, current, and next asset vocabulary 935 * @throws NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 936 */ 937 public AssetVocabulary[] filterFindByG_LikeN_PrevAndNext( 938 long vocabularyId, long groupId, java.lang.String name, 939 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator) 940 throws com.liferay.portlet.asset.NoSuchVocabularyException; 941 942 /** 943 * Removes all the asset vocabularies where groupId = ? and name LIKE ? from the database. 944 * 945 * @param groupId the group ID 946 * @param name the name 947 */ 948 public void removeByG_LikeN(long groupId, java.lang.String name); 949 950 /** 951 * Returns the number of asset vocabularies where groupId = ? and name LIKE ?. 952 * 953 * @param groupId the group ID 954 * @param name the name 955 * @return the number of matching asset vocabularies 956 */ 957 public int countByG_LikeN(long groupId, java.lang.String name); 958 959 /** 960 * Returns the number of asset vocabularies that the user has permission to view where groupId = ? and name LIKE ?. 961 * 962 * @param groupId the group ID 963 * @param name the name 964 * @return the number of matching asset vocabularies that the user has permission to view 965 */ 966 public int filterCountByG_LikeN(long groupId, java.lang.String name); 967 968 /** 969 * Caches the asset vocabulary in the entity cache if it is enabled. 970 * 971 * @param assetVocabulary the asset vocabulary 972 */ 973 public void cacheResult(AssetVocabulary assetVocabulary); 974 975 /** 976 * Caches the asset vocabularies in the entity cache if it is enabled. 977 * 978 * @param assetVocabularies the asset vocabularies 979 */ 980 public void cacheResult(java.util.List<AssetVocabulary> assetVocabularies); 981 982 /** 983 * Creates a new asset vocabulary with the primary key. Does not add the asset vocabulary to the database. 984 * 985 * @param vocabularyId the primary key for the new asset vocabulary 986 * @return the new asset vocabulary 987 */ 988 public AssetVocabulary create(long vocabularyId); 989 990 /** 991 * Removes the asset vocabulary with the primary key from the database. Also notifies the appropriate model listeners. 992 * 993 * @param vocabularyId the primary key of the asset vocabulary 994 * @return the asset vocabulary that was removed 995 * @throws NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 996 */ 997 public AssetVocabulary remove(long vocabularyId) 998 throws com.liferay.portlet.asset.NoSuchVocabularyException; 999 1000 public AssetVocabulary updateImpl(AssetVocabulary assetVocabulary); 1001 1002 /** 1003 * Returns the asset vocabulary with the primary key or throws a {@link NoSuchVocabularyException} if it could not be found. 1004 * 1005 * @param vocabularyId the primary key of the asset vocabulary 1006 * @return the asset vocabulary 1007 * @throws NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 1008 */ 1009 public AssetVocabulary findByPrimaryKey(long vocabularyId) 1010 throws com.liferay.portlet.asset.NoSuchVocabularyException; 1011 1012 /** 1013 * Returns the asset vocabulary with the primary key or returns <code>null</code> if it could not be found. 1014 * 1015 * @param vocabularyId the primary key of the asset vocabulary 1016 * @return the asset vocabulary, or <code>null</code> if a asset vocabulary with the primary key could not be found 1017 */ 1018 public AssetVocabulary fetchByPrimaryKey(long vocabularyId); 1019 1020 @Override 1021 public java.util.Map<java.io.Serializable, AssetVocabulary> fetchByPrimaryKeys( 1022 java.util.Set<java.io.Serializable> primaryKeys); 1023 1024 /** 1025 * Returns all the asset vocabularies. 1026 * 1027 * @return the asset vocabularies 1028 */ 1029 public java.util.List<AssetVocabulary> findAll(); 1030 1031 /** 1032 * Returns a range of all the asset vocabularies. 1033 * 1034 * <p> 1035 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 1036 * </p> 1037 * 1038 * @param start the lower bound of the range of asset vocabularies 1039 * @param end the upper bound of the range of asset vocabularies (not inclusive) 1040 * @return the range of asset vocabularies 1041 */ 1042 public java.util.List<AssetVocabulary> findAll(int start, int end); 1043 1044 /** 1045 * Returns an ordered range of all the asset vocabularies. 1046 * 1047 * <p> 1048 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link AssetVocabularyModelImpl}. 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. 1049 * </p> 1050 * 1051 * @param start the lower bound of the range of asset vocabularies 1052 * @param end the upper bound of the range of asset vocabularies (not inclusive) 1053 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1054 * @return the ordered range of asset vocabularies 1055 */ 1056 public java.util.List<AssetVocabulary> findAll(int start, int end, 1057 com.liferay.portal.kernel.util.OrderByComparator<AssetVocabulary> orderByComparator); 1058 1059 /** 1060 * Removes all the asset vocabularies from the database. 1061 */ 1062 public void removeAll(); 1063 1064 /** 1065 * Returns the number of asset vocabularies. 1066 * 1067 * @return the number of asset vocabularies 1068 */ 1069 public int countAll(); 1070 }