001 /** 002 * Copyright (c) 2000-2010 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 com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.service.ServiceContext; 022 023 import com.liferay.portlet.asset.model.AssetVocabulary; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the asset vocabulary service. 029 * 030 * <p> 031 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class. 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see AssetVocabularyPersistence 036 * @see AssetVocabularyPersistenceImpl 037 * @generated 038 */ 039 public class AssetVocabularyUtil { 040 /** 041 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 042 */ 043 public static void clearCache() { 044 getPersistence().clearCache(); 045 } 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 049 */ 050 public static void clearCache(AssetVocabulary assetVocabulary) { 051 getPersistence().clearCache(assetVocabulary); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 056 */ 057 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 058 throws SystemException { 059 return getPersistence().countWithDynamicQuery(dynamicQuery); 060 } 061 062 /** 063 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 064 */ 065 public static List<AssetVocabulary> findWithDynamicQuery( 066 DynamicQuery dynamicQuery) throws SystemException { 067 return getPersistence().findWithDynamicQuery(dynamicQuery); 068 } 069 070 /** 071 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 072 */ 073 public static List<AssetVocabulary> findWithDynamicQuery( 074 DynamicQuery dynamicQuery, int start, int end) 075 throws SystemException { 076 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 077 } 078 079 /** 080 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 081 */ 082 public static List<AssetVocabulary> findWithDynamicQuery( 083 DynamicQuery dynamicQuery, int start, int end, 084 OrderByComparator orderByComparator) throws SystemException { 085 return getPersistence() 086 .findWithDynamicQuery(dynamicQuery, start, end, 087 orderByComparator); 088 } 089 090 /** 091 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 092 */ 093 public static AssetVocabulary remove(AssetVocabulary assetVocabulary) 094 throws SystemException { 095 return getPersistence().remove(assetVocabulary); 096 } 097 098 /** 099 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 100 */ 101 public static AssetVocabulary update(AssetVocabulary assetVocabulary, 102 boolean merge) throws SystemException { 103 return getPersistence().update(assetVocabulary, merge); 104 } 105 106 /** 107 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 108 */ 109 public static AssetVocabulary update(AssetVocabulary assetVocabulary, 110 boolean merge, ServiceContext serviceContext) throws SystemException { 111 return getPersistence().update(assetVocabulary, merge, serviceContext); 112 } 113 114 /** 115 * Caches the asset vocabulary in the entity cache if it is enabled. 116 * 117 * @param assetVocabulary the asset vocabulary to cache 118 */ 119 public static void cacheResult( 120 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) { 121 getPersistence().cacheResult(assetVocabulary); 122 } 123 124 /** 125 * Caches the asset vocabularies in the entity cache if it is enabled. 126 * 127 * @param assetVocabularies the asset vocabularies to cache 128 */ 129 public static void cacheResult( 130 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> assetVocabularies) { 131 getPersistence().cacheResult(assetVocabularies); 132 } 133 134 /** 135 * Creates a new asset vocabulary with the primary key. 136 * 137 * @param vocabularyId the primary key for the new asset vocabulary 138 * @return the new asset vocabulary 139 */ 140 public static com.liferay.portlet.asset.model.AssetVocabulary create( 141 long vocabularyId) { 142 return getPersistence().create(vocabularyId); 143 } 144 145 /** 146 * Removes the asset vocabulary with the primary key from the database. Also notifies the appropriate model listeners. 147 * 148 * @param vocabularyId the primary key of the asset vocabulary to remove 149 * @return the asset vocabulary that was removed 150 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public static com.liferay.portlet.asset.model.AssetVocabulary remove( 154 long vocabularyId) 155 throws com.liferay.portal.kernel.exception.SystemException, 156 com.liferay.portlet.asset.NoSuchVocabularyException { 157 return getPersistence().remove(vocabularyId); 158 } 159 160 public static com.liferay.portlet.asset.model.AssetVocabulary updateImpl( 161 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary, 162 boolean merge) 163 throws com.liferay.portal.kernel.exception.SystemException { 164 return getPersistence().updateImpl(assetVocabulary, merge); 165 } 166 167 /** 168 * Finds the asset vocabulary with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found. 169 * 170 * @param vocabularyId the primary key of the asset vocabulary to find 171 * @return the asset vocabulary 172 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 173 * @throws SystemException if a system exception occurred 174 */ 175 public static com.liferay.portlet.asset.model.AssetVocabulary findByPrimaryKey( 176 long vocabularyId) 177 throws com.liferay.portal.kernel.exception.SystemException, 178 com.liferay.portlet.asset.NoSuchVocabularyException { 179 return getPersistence().findByPrimaryKey(vocabularyId); 180 } 181 182 /** 183 * Finds the asset vocabulary with the primary key or returns <code>null</code> if it could not be found. 184 * 185 * @param vocabularyId the primary key of the asset vocabulary to find 186 * @return the asset vocabulary, or <code>null</code> if a asset vocabulary with the primary key could not be found 187 * @throws SystemException if a system exception occurred 188 */ 189 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByPrimaryKey( 190 long vocabularyId) 191 throws com.liferay.portal.kernel.exception.SystemException { 192 return getPersistence().fetchByPrimaryKey(vocabularyId); 193 } 194 195 /** 196 * Finds all the asset vocabularies where uuid = ?. 197 * 198 * @param uuid the uuid to search with 199 * @return the matching asset vocabularies 200 * @throws SystemException if a system exception occurred 201 */ 202 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid( 203 java.lang.String uuid) 204 throws com.liferay.portal.kernel.exception.SystemException { 205 return getPersistence().findByUuid(uuid); 206 } 207 208 /** 209 * Finds a range of all the asset vocabularies where uuid = ?. 210 * 211 * <p> 212 * 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. 213 * </p> 214 * 215 * @param uuid the uuid to search with 216 * @param start the lower bound of the range of asset vocabularies to return 217 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 218 * @return the range of matching asset vocabularies 219 * @throws SystemException if a system exception occurred 220 */ 221 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid( 222 java.lang.String uuid, int start, int end) 223 throws com.liferay.portal.kernel.exception.SystemException { 224 return getPersistence().findByUuid(uuid, start, end); 225 } 226 227 /** 228 * Finds an ordered range of all the asset vocabularies where uuid = ?. 229 * 230 * <p> 231 * 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. 232 * </p> 233 * 234 * @param uuid the uuid to search with 235 * @param start the lower bound of the range of asset vocabularies to return 236 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 237 * @param orderByComparator the comparator to order the results by 238 * @return the ordered range of matching asset vocabularies 239 * @throws SystemException if a system exception occurred 240 */ 241 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid( 242 java.lang.String uuid, int start, int end, 243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 244 throws com.liferay.portal.kernel.exception.SystemException { 245 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 246 } 247 248 /** 249 * Finds the first asset vocabulary in the ordered set where uuid = ?. 250 * 251 * <p> 252 * 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. 253 * </p> 254 * 255 * @param uuid the uuid to search with 256 * @param orderByComparator the comparator to order the set by 257 * @return the first matching asset vocabulary 258 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 259 * @throws SystemException if a system exception occurred 260 */ 261 public static com.liferay.portlet.asset.model.AssetVocabulary findByUuid_First( 262 java.lang.String uuid, 263 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 264 throws com.liferay.portal.kernel.exception.SystemException, 265 com.liferay.portlet.asset.NoSuchVocabularyException { 266 return getPersistence().findByUuid_First(uuid, orderByComparator); 267 } 268 269 /** 270 * Finds the last asset vocabulary in the ordered set where uuid = ?. 271 * 272 * <p> 273 * 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. 274 * </p> 275 * 276 * @param uuid the uuid to search with 277 * @param orderByComparator the comparator to order the set by 278 * @return the last matching asset vocabulary 279 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 280 * @throws SystemException if a system exception occurred 281 */ 282 public static com.liferay.portlet.asset.model.AssetVocabulary findByUuid_Last( 283 java.lang.String uuid, 284 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 285 throws com.liferay.portal.kernel.exception.SystemException, 286 com.liferay.portlet.asset.NoSuchVocabularyException { 287 return getPersistence().findByUuid_Last(uuid, orderByComparator); 288 } 289 290 /** 291 * Finds the asset vocabularies before and after the current asset vocabulary in the ordered set where uuid = ?. 292 * 293 * <p> 294 * 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. 295 * </p> 296 * 297 * @param vocabularyId the primary key of the current asset vocabulary 298 * @param uuid the uuid to search with 299 * @param orderByComparator the comparator to order the set by 300 * @return the previous, current, and next asset vocabulary 301 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public static com.liferay.portlet.asset.model.AssetVocabulary[] findByUuid_PrevAndNext( 305 long vocabularyId, java.lang.String uuid, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException, 308 com.liferay.portlet.asset.NoSuchVocabularyException { 309 return getPersistence() 310 .findByUuid_PrevAndNext(vocabularyId, uuid, orderByComparator); 311 } 312 313 /** 314 * Finds the asset vocabulary where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found. 315 * 316 * @param uuid the uuid to search with 317 * @param groupId the group id to search with 318 * @return the matching asset vocabulary 319 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 320 * @throws SystemException if a system exception occurred 321 */ 322 public static com.liferay.portlet.asset.model.AssetVocabulary findByUUID_G( 323 java.lang.String uuid, long groupId) 324 throws com.liferay.portal.kernel.exception.SystemException, 325 com.liferay.portlet.asset.NoSuchVocabularyException { 326 return getPersistence().findByUUID_G(uuid, groupId); 327 } 328 329 /** 330 * Finds the asset vocabulary where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 331 * 332 * @param uuid the uuid to search with 333 * @param groupId the group id to search with 334 * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 335 * @throws SystemException if a system exception occurred 336 */ 337 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G( 338 java.lang.String uuid, long groupId) 339 throws com.liferay.portal.kernel.exception.SystemException { 340 return getPersistence().fetchByUUID_G(uuid, groupId); 341 } 342 343 /** 344 * Finds the asset vocabulary where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 345 * 346 * @param uuid the uuid to search with 347 * @param groupId the group id to search with 348 * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 349 * @throws SystemException if a system exception occurred 350 */ 351 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G( 352 java.lang.String uuid, long groupId, boolean retrieveFromCache) 353 throws com.liferay.portal.kernel.exception.SystemException { 354 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 355 } 356 357 /** 358 * Finds all the asset vocabularies where groupId = ?. 359 * 360 * @param groupId the group id to search with 361 * @return the matching asset vocabularies 362 * @throws SystemException if a system exception occurred 363 */ 364 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId( 365 long groupId) 366 throws com.liferay.portal.kernel.exception.SystemException { 367 return getPersistence().findByGroupId(groupId); 368 } 369 370 /** 371 * Finds a range of all the asset vocabularies where groupId = ?. 372 * 373 * <p> 374 * 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. 375 * </p> 376 * 377 * @param groupId the group id to search with 378 * @param start the lower bound of the range of asset vocabularies to return 379 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 380 * @return the range of matching asset vocabularies 381 * @throws SystemException if a system exception occurred 382 */ 383 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId( 384 long groupId, int start, int end) 385 throws com.liferay.portal.kernel.exception.SystemException { 386 return getPersistence().findByGroupId(groupId, start, end); 387 } 388 389 /** 390 * Finds an ordered range of all the asset vocabularies where groupId = ?. 391 * 392 * <p> 393 * 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. 394 * </p> 395 * 396 * @param groupId the group id to search with 397 * @param start the lower bound of the range of asset vocabularies to return 398 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 399 * @param orderByComparator the comparator to order the results by 400 * @return the ordered range of matching asset vocabularies 401 * @throws SystemException if a system exception occurred 402 */ 403 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId( 404 long groupId, int start, int end, 405 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 406 throws com.liferay.portal.kernel.exception.SystemException { 407 return getPersistence() 408 .findByGroupId(groupId, start, end, orderByComparator); 409 } 410 411 /** 412 * Finds the first asset vocabulary in the ordered set where groupId = ?. 413 * 414 * <p> 415 * 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. 416 * </p> 417 * 418 * @param groupId the group id to search with 419 * @param orderByComparator the comparator to order the set by 420 * @return the first matching asset vocabulary 421 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 422 * @throws SystemException if a system exception occurred 423 */ 424 public static com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_First( 425 long groupId, 426 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 427 throws com.liferay.portal.kernel.exception.SystemException, 428 com.liferay.portlet.asset.NoSuchVocabularyException { 429 return getPersistence().findByGroupId_First(groupId, orderByComparator); 430 } 431 432 /** 433 * Finds the last asset vocabulary in the ordered set where groupId = ?. 434 * 435 * <p> 436 * 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. 437 * </p> 438 * 439 * @param groupId the group id to search with 440 * @param orderByComparator the comparator to order the set by 441 * @return the last matching asset vocabulary 442 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 443 * @throws SystemException if a system exception occurred 444 */ 445 public static com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_Last( 446 long groupId, 447 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 448 throws com.liferay.portal.kernel.exception.SystemException, 449 com.liferay.portlet.asset.NoSuchVocabularyException { 450 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 451 } 452 453 /** 454 * Finds the asset vocabularies before and after the current asset vocabulary in the ordered set where groupId = ?. 455 * 456 * <p> 457 * 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. 458 * </p> 459 * 460 * @param vocabularyId the primary key of the current asset vocabulary 461 * @param groupId the group id to search with 462 * @param orderByComparator the comparator to order the set by 463 * @return the previous, current, and next asset vocabulary 464 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 465 * @throws SystemException if a system exception occurred 466 */ 467 public static com.liferay.portlet.asset.model.AssetVocabulary[] findByGroupId_PrevAndNext( 468 long vocabularyId, long groupId, 469 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 470 throws com.liferay.portal.kernel.exception.SystemException, 471 com.liferay.portlet.asset.NoSuchVocabularyException { 472 return getPersistence() 473 .findByGroupId_PrevAndNext(vocabularyId, groupId, 474 orderByComparator); 475 } 476 477 /** 478 * Filters by the user's permissions and finds all the asset vocabularies where groupId = ?. 479 * 480 * @param groupId the group id to search with 481 * @return the matching asset vocabularies that the user has permission to view 482 * @throws SystemException if a system exception occurred 483 */ 484 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId( 485 long groupId) 486 throws com.liferay.portal.kernel.exception.SystemException { 487 return getPersistence().filterFindByGroupId(groupId); 488 } 489 490 /** 491 * Filters by the user's permissions and finds a range of all the asset vocabularies where groupId = ?. 492 * 493 * <p> 494 * 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. 495 * </p> 496 * 497 * @param groupId the group id to search with 498 * @param start the lower bound of the range of asset vocabularies to return 499 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 500 * @return the range of matching asset vocabularies that the user has permission to view 501 * @throws SystemException if a system exception occurred 502 */ 503 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId( 504 long groupId, int start, int end) 505 throws com.liferay.portal.kernel.exception.SystemException { 506 return getPersistence().filterFindByGroupId(groupId, start, end); 507 } 508 509 /** 510 * Filters by the user's permissions and finds an ordered range of all the asset vocabularies where groupId = ?. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 514 * </p> 515 * 516 * @param groupId the group id to search with 517 * @param start the lower bound of the range of asset vocabularies to return 518 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 519 * @param orderByComparator the comparator to order the results by 520 * @return the ordered range of matching asset vocabularies that the user has permission to view 521 * @throws SystemException if a system exception occurred 522 */ 523 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId( 524 long groupId, int start, int end, 525 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 526 throws com.liferay.portal.kernel.exception.SystemException { 527 return getPersistence() 528 .filterFindByGroupId(groupId, start, end, orderByComparator); 529 } 530 531 /** 532 * Finds all the asset vocabularies where companyId = ?. 533 * 534 * @param companyId the company id to search with 535 * @return the matching asset vocabularies 536 * @throws SystemException if a system exception occurred 537 */ 538 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId( 539 long companyId) 540 throws com.liferay.portal.kernel.exception.SystemException { 541 return getPersistence().findByCompanyId(companyId); 542 } 543 544 /** 545 * Finds a range of all the asset vocabularies where companyId = ?. 546 * 547 * <p> 548 * 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. 549 * </p> 550 * 551 * @param companyId the company id to search with 552 * @param start the lower bound of the range of asset vocabularies to return 553 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 554 * @return the range of matching asset vocabularies 555 * @throws SystemException if a system exception occurred 556 */ 557 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId( 558 long companyId, int start, int end) 559 throws com.liferay.portal.kernel.exception.SystemException { 560 return getPersistence().findByCompanyId(companyId, start, end); 561 } 562 563 /** 564 * Finds an ordered range of all the asset vocabularies where companyId = ?. 565 * 566 * <p> 567 * 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. 568 * </p> 569 * 570 * @param companyId the company id to search with 571 * @param start the lower bound of the range of asset vocabularies to return 572 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 573 * @param orderByComparator the comparator to order the results by 574 * @return the ordered range of matching asset vocabularies 575 * @throws SystemException if a system exception occurred 576 */ 577 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId( 578 long companyId, int start, int end, 579 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 580 throws com.liferay.portal.kernel.exception.SystemException { 581 return getPersistence() 582 .findByCompanyId(companyId, start, end, orderByComparator); 583 } 584 585 /** 586 * Finds the first asset vocabulary in the ordered set where companyId = ?. 587 * 588 * <p> 589 * 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. 590 * </p> 591 * 592 * @param companyId the company id to search with 593 * @param orderByComparator the comparator to order the set by 594 * @return the first matching asset vocabulary 595 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 596 * @throws SystemException if a system exception occurred 597 */ 598 public static com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_First( 599 long companyId, 600 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 601 throws com.liferay.portal.kernel.exception.SystemException, 602 com.liferay.portlet.asset.NoSuchVocabularyException { 603 return getPersistence() 604 .findByCompanyId_First(companyId, orderByComparator); 605 } 606 607 /** 608 * Finds the last asset vocabulary in the ordered set where companyId = ?. 609 * 610 * <p> 611 * 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. 612 * </p> 613 * 614 * @param companyId the company id to search with 615 * @param orderByComparator the comparator to order the set by 616 * @return the last matching asset vocabulary 617 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 618 * @throws SystemException if a system exception occurred 619 */ 620 public static com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_Last( 621 long companyId, 622 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 623 throws com.liferay.portal.kernel.exception.SystemException, 624 com.liferay.portlet.asset.NoSuchVocabularyException { 625 return getPersistence() 626 .findByCompanyId_Last(companyId, orderByComparator); 627 } 628 629 /** 630 * Finds the asset vocabularies before and after the current asset vocabulary in the ordered set where companyId = ?. 631 * 632 * <p> 633 * 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. 634 * </p> 635 * 636 * @param vocabularyId the primary key of the current asset vocabulary 637 * @param companyId the company id to search with 638 * @param orderByComparator the comparator to order the set by 639 * @return the previous, current, and next asset vocabulary 640 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 641 * @throws SystemException if a system exception occurred 642 */ 643 public static com.liferay.portlet.asset.model.AssetVocabulary[] findByCompanyId_PrevAndNext( 644 long vocabularyId, long companyId, 645 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 646 throws com.liferay.portal.kernel.exception.SystemException, 647 com.liferay.portlet.asset.NoSuchVocabularyException { 648 return getPersistence() 649 .findByCompanyId_PrevAndNext(vocabularyId, companyId, 650 orderByComparator); 651 } 652 653 /** 654 * Finds the asset vocabulary where groupId = ? and name = ? or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found. 655 * 656 * @param groupId the group id to search with 657 * @param name the name to search with 658 * @return the matching asset vocabulary 659 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 660 * @throws SystemException if a system exception occurred 661 */ 662 public static com.liferay.portlet.asset.model.AssetVocabulary findByG_N( 663 long groupId, java.lang.String name) 664 throws com.liferay.portal.kernel.exception.SystemException, 665 com.liferay.portlet.asset.NoSuchVocabularyException { 666 return getPersistence().findByG_N(groupId, name); 667 } 668 669 /** 670 * Finds the asset vocabulary where groupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 671 * 672 * @param groupId the group id to search with 673 * @param name the name to search with 674 * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 675 * @throws SystemException if a system exception occurred 676 */ 677 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N( 678 long groupId, java.lang.String name) 679 throws com.liferay.portal.kernel.exception.SystemException { 680 return getPersistence().fetchByG_N(groupId, name); 681 } 682 683 /** 684 * Finds the asset vocabulary where groupId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 685 * 686 * @param groupId the group id to search with 687 * @param name the name to search with 688 * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 689 * @throws SystemException if a system exception occurred 690 */ 691 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N( 692 long groupId, java.lang.String name, boolean retrieveFromCache) 693 throws com.liferay.portal.kernel.exception.SystemException { 694 return getPersistence().fetchByG_N(groupId, name, retrieveFromCache); 695 } 696 697 /** 698 * Finds all the asset vocabularies. 699 * 700 * @return the asset vocabularies 701 * @throws SystemException if a system exception occurred 702 */ 703 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll() 704 throws com.liferay.portal.kernel.exception.SystemException { 705 return getPersistence().findAll(); 706 } 707 708 /** 709 * Finds a range of all the asset vocabularies. 710 * 711 * <p> 712 * 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. 713 * </p> 714 * 715 * @param start the lower bound of the range of asset vocabularies to return 716 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 717 * @return the range of asset vocabularies 718 * @throws SystemException if a system exception occurred 719 */ 720 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll( 721 int start, int end) 722 throws com.liferay.portal.kernel.exception.SystemException { 723 return getPersistence().findAll(start, end); 724 } 725 726 /** 727 * Finds an ordered range of all the asset vocabularies. 728 * 729 * <p> 730 * 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. 731 * </p> 732 * 733 * @param start the lower bound of the range of asset vocabularies to return 734 * @param end the upper bound of the range of asset vocabularies to return (not inclusive) 735 * @param orderByComparator the comparator to order the results by 736 * @return the ordered range of asset vocabularies 737 * @throws SystemException if a system exception occurred 738 */ 739 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll( 740 int start, int end, 741 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 742 throws com.liferay.portal.kernel.exception.SystemException { 743 return getPersistence().findAll(start, end, orderByComparator); 744 } 745 746 /** 747 * Removes all the asset vocabularies where uuid = ? from the database. 748 * 749 * @param uuid the uuid to search with 750 * @throws SystemException if a system exception occurred 751 */ 752 public static void removeByUuid(java.lang.String uuid) 753 throws com.liferay.portal.kernel.exception.SystemException { 754 getPersistence().removeByUuid(uuid); 755 } 756 757 /** 758 * Removes the asset vocabulary where uuid = ? and groupId = ? from the database. 759 * 760 * @param uuid the uuid to search with 761 * @param groupId the group id to search with 762 * @throws SystemException if a system exception occurred 763 */ 764 public static void removeByUUID_G(java.lang.String uuid, long groupId) 765 throws com.liferay.portal.kernel.exception.SystemException, 766 com.liferay.portlet.asset.NoSuchVocabularyException { 767 getPersistence().removeByUUID_G(uuid, groupId); 768 } 769 770 /** 771 * Removes all the asset vocabularies where groupId = ? from the database. 772 * 773 * @param groupId the group id to search with 774 * @throws SystemException if a system exception occurred 775 */ 776 public static void removeByGroupId(long groupId) 777 throws com.liferay.portal.kernel.exception.SystemException { 778 getPersistence().removeByGroupId(groupId); 779 } 780 781 /** 782 * Removes all the asset vocabularies where companyId = ? from the database. 783 * 784 * @param companyId the company id to search with 785 * @throws SystemException if a system exception occurred 786 */ 787 public static void removeByCompanyId(long companyId) 788 throws com.liferay.portal.kernel.exception.SystemException { 789 getPersistence().removeByCompanyId(companyId); 790 } 791 792 /** 793 * Removes the asset vocabulary where groupId = ? and name = ? from the database. 794 * 795 * @param groupId the group id to search with 796 * @param name the name to search with 797 * @throws SystemException if a system exception occurred 798 */ 799 public static void removeByG_N(long groupId, java.lang.String name) 800 throws com.liferay.portal.kernel.exception.SystemException, 801 com.liferay.portlet.asset.NoSuchVocabularyException { 802 getPersistence().removeByG_N(groupId, name); 803 } 804 805 /** 806 * Removes all the asset vocabularies from the database. 807 * 808 * @throws SystemException if a system exception occurred 809 */ 810 public static void removeAll() 811 throws com.liferay.portal.kernel.exception.SystemException { 812 getPersistence().removeAll(); 813 } 814 815 /** 816 * Counts all the asset vocabularies where uuid = ?. 817 * 818 * @param uuid the uuid to search with 819 * @return the number of matching asset vocabularies 820 * @throws SystemException if a system exception occurred 821 */ 822 public static int countByUuid(java.lang.String uuid) 823 throws com.liferay.portal.kernel.exception.SystemException { 824 return getPersistence().countByUuid(uuid); 825 } 826 827 /** 828 * Counts all the asset vocabularies where uuid = ? and groupId = ?. 829 * 830 * @param uuid the uuid to search with 831 * @param groupId the group id to search with 832 * @return the number of matching asset vocabularies 833 * @throws SystemException if a system exception occurred 834 */ 835 public static int countByUUID_G(java.lang.String uuid, long groupId) 836 throws com.liferay.portal.kernel.exception.SystemException { 837 return getPersistence().countByUUID_G(uuid, groupId); 838 } 839 840 /** 841 * Counts all the asset vocabularies where groupId = ?. 842 * 843 * @param groupId the group id to search with 844 * @return the number of matching asset vocabularies 845 * @throws SystemException if a system exception occurred 846 */ 847 public static int countByGroupId(long groupId) 848 throws com.liferay.portal.kernel.exception.SystemException { 849 return getPersistence().countByGroupId(groupId); 850 } 851 852 /** 853 * Filters by the user's permissions and counts all the asset vocabularies where groupId = ?. 854 * 855 * @param groupId the group id to search with 856 * @return the number of matching asset vocabularies that the user has permission to view 857 * @throws SystemException if a system exception occurred 858 */ 859 public static int filterCountByGroupId(long groupId) 860 throws com.liferay.portal.kernel.exception.SystemException { 861 return getPersistence().filterCountByGroupId(groupId); 862 } 863 864 /** 865 * Counts all the asset vocabularies where companyId = ?. 866 * 867 * @param companyId the company id to search with 868 * @return the number of matching asset vocabularies 869 * @throws SystemException if a system exception occurred 870 */ 871 public static int countByCompanyId(long companyId) 872 throws com.liferay.portal.kernel.exception.SystemException { 873 return getPersistence().countByCompanyId(companyId); 874 } 875 876 /** 877 * Counts all the asset vocabularies where groupId = ? and name = ?. 878 * 879 * @param groupId the group id to search with 880 * @param name the name to search with 881 * @return the number of matching asset vocabularies 882 * @throws SystemException if a system exception occurred 883 */ 884 public static int countByG_N(long groupId, java.lang.String name) 885 throws com.liferay.portal.kernel.exception.SystemException { 886 return getPersistence().countByG_N(groupId, name); 887 } 888 889 /** 890 * Filters by the user's permissions and counts all the asset vocabularies where groupId = ? and name = ?. 891 * 892 * @param groupId the group id to search with 893 * @param name the name to search with 894 * @return the number of matching asset vocabularies that the user has permission to view 895 * @throws SystemException if a system exception occurred 896 */ 897 public static int filterCountByG_N(long groupId, java.lang.String name) 898 throws com.liferay.portal.kernel.exception.SystemException { 899 return getPersistence().filterCountByG_N(groupId, name); 900 } 901 902 /** 903 * Counts all the asset vocabularies. 904 * 905 * @return the number of asset vocabularies 906 * @throws SystemException if a system exception occurred 907 */ 908 public static int countAll() 909 throws com.liferay.portal.kernel.exception.SystemException { 910 return getPersistence().countAll(); 911 } 912 913 public static AssetVocabularyPersistence getPersistence() { 914 if (_persistence == null) { 915 _persistence = (AssetVocabularyPersistence)PortalBeanLocatorUtil.locate(AssetVocabularyPersistence.class.getName()); 916 } 917 918 return _persistence; 919 } 920 921 public void setPersistence(AssetVocabularyPersistence persistence) { 922 _persistence = persistence; 923 } 924 925 private static AssetVocabularyPersistence _persistence; 926 }