001 /** 002 * Copyright (c) 2000-2012 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.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.asset.model.AssetVocabulary; 025 026 import java.util.List; 027 028 /** 029 * 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. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see AssetVocabularyPersistence 037 * @see AssetVocabularyPersistenceImpl 038 * @generated 039 */ 040 public class AssetVocabularyUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(AssetVocabulary assetVocabulary) { 058 getPersistence().clearCache(assetVocabulary); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<AssetVocabulary> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<AssetVocabulary> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<AssetVocabulary> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 099 */ 100 public static AssetVocabulary update(AssetVocabulary assetVocabulary, 101 boolean merge) throws SystemException { 102 return getPersistence().update(assetVocabulary, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static AssetVocabulary update(AssetVocabulary assetVocabulary, 109 boolean merge, ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(assetVocabulary, merge, serviceContext); 111 } 112 113 /** 114 * Caches the asset vocabulary in the entity cache if it is enabled. 115 * 116 * @param assetVocabulary the asset vocabulary 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) { 120 getPersistence().cacheResult(assetVocabulary); 121 } 122 123 /** 124 * Caches the asset vocabularies in the entity cache if it is enabled. 125 * 126 * @param assetVocabularies the asset vocabularies 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> assetVocabularies) { 130 getPersistence().cacheResult(assetVocabularies); 131 } 132 133 /** 134 * Creates a new asset vocabulary with the primary key. Does not add the asset vocabulary to the database. 135 * 136 * @param vocabularyId the primary key for the new asset vocabulary 137 * @return the new asset vocabulary 138 */ 139 public static com.liferay.portlet.asset.model.AssetVocabulary create( 140 long vocabularyId) { 141 return getPersistence().create(vocabularyId); 142 } 143 144 /** 145 * Removes the asset vocabulary with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param vocabularyId the primary key of the asset vocabulary 148 * @return the asset vocabulary that was removed 149 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.asset.model.AssetVocabulary remove( 153 long vocabularyId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.asset.NoSuchVocabularyException { 156 return getPersistence().remove(vocabularyId); 157 } 158 159 public static com.liferay.portlet.asset.model.AssetVocabulary updateImpl( 160 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary, 161 boolean merge) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().updateImpl(assetVocabulary, merge); 164 } 165 166 /** 167 * Returns the asset vocabulary with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found. 168 * 169 * @param vocabularyId the primary key of the asset vocabulary 170 * @return the asset vocabulary 171 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public static com.liferay.portlet.asset.model.AssetVocabulary findByPrimaryKey( 175 long vocabularyId) 176 throws com.liferay.portal.kernel.exception.SystemException, 177 com.liferay.portlet.asset.NoSuchVocabularyException { 178 return getPersistence().findByPrimaryKey(vocabularyId); 179 } 180 181 /** 182 * Returns the asset vocabulary with the primary key or returns <code>null</code> if it could not be found. 183 * 184 * @param vocabularyId the primary key of the asset vocabulary 185 * @return the asset vocabulary, or <code>null</code> if a asset vocabulary with the primary key could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByPrimaryKey( 189 long vocabularyId) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return getPersistence().fetchByPrimaryKey(vocabularyId); 192 } 193 194 /** 195 * Returns all the asset vocabularies where uuid = ?. 196 * 197 * @param uuid the uuid 198 * @return the matching asset vocabularies 199 * @throws SystemException if a system exception occurred 200 */ 201 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid( 202 java.lang.String uuid) 203 throws com.liferay.portal.kernel.exception.SystemException { 204 return getPersistence().findByUuid(uuid); 205 } 206 207 /** 208 * Returns a range of all the asset vocabularies where uuid = ?. 209 * 210 * <p> 211 * 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. 212 * </p> 213 * 214 * @param uuid the uuid 215 * @param start the lower bound of the range of asset vocabularies 216 * @param end the upper bound of the range of asset vocabularies (not inclusive) 217 * @return the range of matching asset vocabularies 218 * @throws SystemException if a system exception occurred 219 */ 220 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid( 221 java.lang.String uuid, int start, int end) 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return getPersistence().findByUuid(uuid, start, end); 224 } 225 226 /** 227 * Returns an ordered range of all the asset vocabularies where uuid = ?. 228 * 229 * <p> 230 * 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. 231 * </p> 232 * 233 * @param uuid the uuid 234 * @param start the lower bound of the range of asset vocabularies 235 * @param end the upper bound of the range of asset vocabularies (not inclusive) 236 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 237 * @return the ordered range of matching asset vocabularies 238 * @throws SystemException if a system exception occurred 239 */ 240 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid( 241 java.lang.String uuid, int start, int end, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException { 244 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 245 } 246 247 /** 248 * Returns the first asset vocabulary in the ordered set where uuid = ?. 249 * 250 * <p> 251 * 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. 252 * </p> 253 * 254 * @param uuid the uuid 255 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 256 * @return the first matching asset vocabulary 257 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 258 * @throws SystemException if a system exception occurred 259 */ 260 public static com.liferay.portlet.asset.model.AssetVocabulary findByUuid_First( 261 java.lang.String uuid, 262 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 263 throws com.liferay.portal.kernel.exception.SystemException, 264 com.liferay.portlet.asset.NoSuchVocabularyException { 265 return getPersistence().findByUuid_First(uuid, orderByComparator); 266 } 267 268 /** 269 * Returns the last asset vocabulary in the ordered set where uuid = ?. 270 * 271 * <p> 272 * 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. 273 * </p> 274 * 275 * @param uuid the uuid 276 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 277 * @return the last matching asset vocabulary 278 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 279 * @throws SystemException if a system exception occurred 280 */ 281 public static com.liferay.portlet.asset.model.AssetVocabulary findByUuid_Last( 282 java.lang.String uuid, 283 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 284 throws com.liferay.portal.kernel.exception.SystemException, 285 com.liferay.portlet.asset.NoSuchVocabularyException { 286 return getPersistence().findByUuid_Last(uuid, orderByComparator); 287 } 288 289 /** 290 * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where uuid = ?. 291 * 292 * <p> 293 * 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. 294 * </p> 295 * 296 * @param vocabularyId the primary key of the current asset vocabulary 297 * @param uuid the uuid 298 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 299 * @return the previous, current, and next asset vocabulary 300 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 301 * @throws SystemException if a system exception occurred 302 */ 303 public static com.liferay.portlet.asset.model.AssetVocabulary[] findByUuid_PrevAndNext( 304 long vocabularyId, java.lang.String uuid, 305 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 306 throws com.liferay.portal.kernel.exception.SystemException, 307 com.liferay.portlet.asset.NoSuchVocabularyException { 308 return getPersistence() 309 .findByUuid_PrevAndNext(vocabularyId, uuid, orderByComparator); 310 } 311 312 /** 313 * Returns the asset vocabulary where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found. 314 * 315 * @param uuid the uuid 316 * @param groupId the group ID 317 * @return the matching asset vocabulary 318 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 319 * @throws SystemException if a system exception occurred 320 */ 321 public static com.liferay.portlet.asset.model.AssetVocabulary findByUUID_G( 322 java.lang.String uuid, long groupId) 323 throws com.liferay.portal.kernel.exception.SystemException, 324 com.liferay.portlet.asset.NoSuchVocabularyException { 325 return getPersistence().findByUUID_G(uuid, groupId); 326 } 327 328 /** 329 * Returns the asset vocabulary where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 330 * 331 * @param uuid the uuid 332 * @param groupId the group ID 333 * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 334 * @throws SystemException if a system exception occurred 335 */ 336 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G( 337 java.lang.String uuid, long groupId) 338 throws com.liferay.portal.kernel.exception.SystemException { 339 return getPersistence().fetchByUUID_G(uuid, groupId); 340 } 341 342 /** 343 * Returns the asset vocabulary where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 344 * 345 * @param uuid the uuid 346 * @param groupId the group ID 347 * @param retrieveFromCache whether to use the finder cache 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 * Returns all the asset vocabularies where groupId = ?. 359 * 360 * @param groupId the group ID 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 * Returns 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 378 * @param start the lower bound of the range of asset vocabularies 379 * @param end the upper bound of the range of asset vocabularies (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 * Returns 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 397 * @param start the lower bound of the range of asset vocabularies 398 * @param end the upper bound of the range of asset vocabularies (not inclusive) 399 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 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 * Returns 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 419 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns 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 440 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns 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 462 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns all the asset vocabularies that the user has permission to view where groupId = ?. 479 * 480 * @param groupId the group ID 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 * Returns a range of all the asset vocabularies that the user has permission to view 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 498 * @param start the lower bound of the range of asset vocabularies 499 * @param end the upper bound of the range of asset vocabularies (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 * Returns an ordered range of all the asset vocabularies that the user has permissions to view 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 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 * @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 * 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 = ?. 533 * 534 * @param vocabularyId the primary key of the current asset vocabulary 535 * @param groupId the group ID 536 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 537 * @return the previous, current, and next asset vocabulary 538 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 539 * @throws SystemException if a system exception occurred 540 */ 541 public static com.liferay.portlet.asset.model.AssetVocabulary[] filterFindByGroupId_PrevAndNext( 542 long vocabularyId, long groupId, 543 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 544 throws com.liferay.portal.kernel.exception.SystemException, 545 com.liferay.portlet.asset.NoSuchVocabularyException { 546 return getPersistence() 547 .filterFindByGroupId_PrevAndNext(vocabularyId, groupId, 548 orderByComparator); 549 } 550 551 /** 552 * Returns all the asset vocabularies where companyId = ?. 553 * 554 * @param companyId the company ID 555 * @return the matching asset vocabularies 556 * @throws SystemException if a system exception occurred 557 */ 558 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId( 559 long companyId) 560 throws com.liferay.portal.kernel.exception.SystemException { 561 return getPersistence().findByCompanyId(companyId); 562 } 563 564 /** 565 * Returns a range of all the asset vocabularies where companyId = ?. 566 * 567 * <p> 568 * 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. 569 * </p> 570 * 571 * @param companyId the company ID 572 * @param start the lower bound of the range of asset vocabularies 573 * @param end the upper bound of the range of asset vocabularies (not inclusive) 574 * @return the 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 throws com.liferay.portal.kernel.exception.SystemException { 580 return getPersistence().findByCompanyId(companyId, start, end); 581 } 582 583 /** 584 * Returns an ordered range of all the asset vocabularies where companyId = ?. 585 * 586 * <p> 587 * 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. 588 * </p> 589 * 590 * @param companyId the company ID 591 * @param start the lower bound of the range of asset vocabularies 592 * @param end the upper bound of the range of asset vocabularies (not inclusive) 593 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 594 * @return the ordered range of matching asset vocabularies 595 * @throws SystemException if a system exception occurred 596 */ 597 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId( 598 long companyId, int start, int end, 599 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 600 throws com.liferay.portal.kernel.exception.SystemException { 601 return getPersistence() 602 .findByCompanyId(companyId, start, end, orderByComparator); 603 } 604 605 /** 606 * Returns the first asset vocabulary in the ordered set where companyId = ?. 607 * 608 * <p> 609 * 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. 610 * </p> 611 * 612 * @param companyId the company ID 613 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 614 * @return the first matching asset vocabulary 615 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 616 * @throws SystemException if a system exception occurred 617 */ 618 public static com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_First( 619 long companyId, 620 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 621 throws com.liferay.portal.kernel.exception.SystemException, 622 com.liferay.portlet.asset.NoSuchVocabularyException { 623 return getPersistence() 624 .findByCompanyId_First(companyId, orderByComparator); 625 } 626 627 /** 628 * Returns the last asset vocabulary in the ordered set where companyId = ?. 629 * 630 * <p> 631 * 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. 632 * </p> 633 * 634 * @param companyId the company ID 635 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 636 * @return the last matching asset vocabulary 637 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 638 * @throws SystemException if a system exception occurred 639 */ 640 public static com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_Last( 641 long companyId, 642 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 643 throws com.liferay.portal.kernel.exception.SystemException, 644 com.liferay.portlet.asset.NoSuchVocabularyException { 645 return getPersistence() 646 .findByCompanyId_Last(companyId, orderByComparator); 647 } 648 649 /** 650 * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where companyId = ?. 651 * 652 * <p> 653 * 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. 654 * </p> 655 * 656 * @param vocabularyId the primary key of the current asset vocabulary 657 * @param companyId the company ID 658 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 659 * @return the previous, current, and next asset vocabulary 660 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found 661 * @throws SystemException if a system exception occurred 662 */ 663 public static com.liferay.portlet.asset.model.AssetVocabulary[] findByCompanyId_PrevAndNext( 664 long vocabularyId, long companyId, 665 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 666 throws com.liferay.portal.kernel.exception.SystemException, 667 com.liferay.portlet.asset.NoSuchVocabularyException { 668 return getPersistence() 669 .findByCompanyId_PrevAndNext(vocabularyId, companyId, 670 orderByComparator); 671 } 672 673 /** 674 * Returns the asset vocabulary where groupId = ? and name = ? or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found. 675 * 676 * @param groupId the group ID 677 * @param name the name 678 * @return the matching asset vocabulary 679 * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found 680 * @throws SystemException if a system exception occurred 681 */ 682 public static com.liferay.portlet.asset.model.AssetVocabulary findByG_N( 683 long groupId, java.lang.String name) 684 throws com.liferay.portal.kernel.exception.SystemException, 685 com.liferay.portlet.asset.NoSuchVocabularyException { 686 return getPersistence().findByG_N(groupId, name); 687 } 688 689 /** 690 * Returns the asset vocabulary where groupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 691 * 692 * @param groupId the group ID 693 * @param name the name 694 * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 695 * @throws SystemException if a system exception occurred 696 */ 697 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N( 698 long groupId, java.lang.String name) 699 throws com.liferay.portal.kernel.exception.SystemException { 700 return getPersistence().fetchByG_N(groupId, name); 701 } 702 703 /** 704 * Returns the asset vocabulary where groupId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 705 * 706 * @param groupId the group ID 707 * @param name the name 708 * @param retrieveFromCache whether to use the finder cache 709 * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found 710 * @throws SystemException if a system exception occurred 711 */ 712 public static com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N( 713 long groupId, java.lang.String name, boolean retrieveFromCache) 714 throws com.liferay.portal.kernel.exception.SystemException { 715 return getPersistence().fetchByG_N(groupId, name, retrieveFromCache); 716 } 717 718 /** 719 * Returns all the asset vocabularies. 720 * 721 * @return the 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 throws com.liferay.portal.kernel.exception.SystemException { 726 return getPersistence().findAll(); 727 } 728 729 /** 730 * Returns a range of all the asset vocabularies. 731 * 732 * <p> 733 * 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. 734 * </p> 735 * 736 * @param start the lower bound of the range of asset vocabularies 737 * @param end the upper bound of the range of asset vocabularies (not inclusive) 738 * @return the range of asset vocabularies 739 * @throws SystemException if a system exception occurred 740 */ 741 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll( 742 int start, int end) 743 throws com.liferay.portal.kernel.exception.SystemException { 744 return getPersistence().findAll(start, end); 745 } 746 747 /** 748 * Returns an ordered range of all the asset vocabularies. 749 * 750 * <p> 751 * 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. 752 * </p> 753 * 754 * @param start the lower bound of the range of asset vocabularies 755 * @param end the upper bound of the range of asset vocabularies (not inclusive) 756 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 757 * @return the ordered range of asset vocabularies 758 * @throws SystemException if a system exception occurred 759 */ 760 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll( 761 int start, int end, 762 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 763 throws com.liferay.portal.kernel.exception.SystemException { 764 return getPersistence().findAll(start, end, orderByComparator); 765 } 766 767 /** 768 * Removes all the asset vocabularies where uuid = ? from the database. 769 * 770 * @param uuid the uuid 771 * @throws SystemException if a system exception occurred 772 */ 773 public static void removeByUuid(java.lang.String uuid) 774 throws com.liferay.portal.kernel.exception.SystemException { 775 getPersistence().removeByUuid(uuid); 776 } 777 778 /** 779 * Removes the asset vocabulary where uuid = ? and groupId = ? from the database. 780 * 781 * @param uuid the uuid 782 * @param groupId the group ID 783 * @throws SystemException if a system exception occurred 784 */ 785 public static void removeByUUID_G(java.lang.String uuid, long groupId) 786 throws com.liferay.portal.kernel.exception.SystemException, 787 com.liferay.portlet.asset.NoSuchVocabularyException { 788 getPersistence().removeByUUID_G(uuid, groupId); 789 } 790 791 /** 792 * Removes all the asset vocabularies where groupId = ? from the database. 793 * 794 * @param groupId the group ID 795 * @throws SystemException if a system exception occurred 796 */ 797 public static void removeByGroupId(long groupId) 798 throws com.liferay.portal.kernel.exception.SystemException { 799 getPersistence().removeByGroupId(groupId); 800 } 801 802 /** 803 * Removes all the asset vocabularies where companyId = ? from the database. 804 * 805 * @param companyId the company ID 806 * @throws SystemException if a system exception occurred 807 */ 808 public static void removeByCompanyId(long companyId) 809 throws com.liferay.portal.kernel.exception.SystemException { 810 getPersistence().removeByCompanyId(companyId); 811 } 812 813 /** 814 * Removes the asset vocabulary where groupId = ? and name = ? from the database. 815 * 816 * @param groupId the group ID 817 * @param name the name 818 * @throws SystemException if a system exception occurred 819 */ 820 public static void removeByG_N(long groupId, java.lang.String name) 821 throws com.liferay.portal.kernel.exception.SystemException, 822 com.liferay.portlet.asset.NoSuchVocabularyException { 823 getPersistence().removeByG_N(groupId, name); 824 } 825 826 /** 827 * Removes all the asset vocabularies from the database. 828 * 829 * @throws SystemException if a system exception occurred 830 */ 831 public static void removeAll() 832 throws com.liferay.portal.kernel.exception.SystemException { 833 getPersistence().removeAll(); 834 } 835 836 /** 837 * Returns the number of asset vocabularies where uuid = ?. 838 * 839 * @param uuid the uuid 840 * @return the number of matching asset vocabularies 841 * @throws SystemException if a system exception occurred 842 */ 843 public static int countByUuid(java.lang.String uuid) 844 throws com.liferay.portal.kernel.exception.SystemException { 845 return getPersistence().countByUuid(uuid); 846 } 847 848 /** 849 * Returns the number of asset vocabularies where uuid = ? and groupId = ?. 850 * 851 * @param uuid the uuid 852 * @param groupId the group ID 853 * @return the number of matching asset vocabularies 854 * @throws SystemException if a system exception occurred 855 */ 856 public static int countByUUID_G(java.lang.String uuid, long groupId) 857 throws com.liferay.portal.kernel.exception.SystemException { 858 return getPersistence().countByUUID_G(uuid, groupId); 859 } 860 861 /** 862 * Returns the number of asset vocabularies where groupId = ?. 863 * 864 * @param groupId the group ID 865 * @return the number of matching asset vocabularies 866 * @throws SystemException if a system exception occurred 867 */ 868 public static int countByGroupId(long groupId) 869 throws com.liferay.portal.kernel.exception.SystemException { 870 return getPersistence().countByGroupId(groupId); 871 } 872 873 /** 874 * Returns the number of asset vocabularies that the user has permission to view where groupId = ?. 875 * 876 * @param groupId the group ID 877 * @return the number of matching asset vocabularies that the user has permission to view 878 * @throws SystemException if a system exception occurred 879 */ 880 public static int filterCountByGroupId(long groupId) 881 throws com.liferay.portal.kernel.exception.SystemException { 882 return getPersistence().filterCountByGroupId(groupId); 883 } 884 885 /** 886 * Returns the number of asset vocabularies where companyId = ?. 887 * 888 * @param companyId the company ID 889 * @return the number of matching asset vocabularies 890 * @throws SystemException if a system exception occurred 891 */ 892 public static int countByCompanyId(long companyId) 893 throws com.liferay.portal.kernel.exception.SystemException { 894 return getPersistence().countByCompanyId(companyId); 895 } 896 897 /** 898 * Returns the number of asset vocabularies where groupId = ? and name = ?. 899 * 900 * @param groupId the group ID 901 * @param name the name 902 * @return the number of matching asset vocabularies 903 * @throws SystemException if a system exception occurred 904 */ 905 public static int countByG_N(long groupId, java.lang.String name) 906 throws com.liferay.portal.kernel.exception.SystemException { 907 return getPersistence().countByG_N(groupId, name); 908 } 909 910 /** 911 * Returns the number of asset vocabularies. 912 * 913 * @return the number of asset vocabularies 914 * @throws SystemException if a system exception occurred 915 */ 916 public static int countAll() 917 throws com.liferay.portal.kernel.exception.SystemException { 918 return getPersistence().countAll(); 919 } 920 921 public static AssetVocabularyPersistence getPersistence() { 922 if (_persistence == null) { 923 _persistence = (AssetVocabularyPersistence)PortalBeanLocatorUtil.locate(AssetVocabularyPersistence.class.getName()); 924 925 ReferenceRegistry.registerReference(AssetVocabularyUtil.class, 926 "_persistence"); 927 } 928 929 return _persistence; 930 } 931 932 public void setPersistence(AssetVocabularyPersistence persistence) { 933 _persistence = persistence; 934 935 ReferenceRegistry.registerReference(AssetVocabularyUtil.class, 936 "_persistence"); 937 } 938 939 private static AssetVocabularyPersistence _persistence; 940 }