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