001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portlet.asset.service.persistence; 016 017 import com.liferay.portal.kernel.exception.SystemException; 018 import com.liferay.portal.service.persistence.BasePersistence; 019 020 import com.liferay.portlet.asset.model.AssetTagProperty; 021 022 /** 023 * The persistence interface for the asset tag property service. 024 * 025 * <p> 026 * Caching information and settings can be found in <code>portal.properties</code> 027 * </p> 028 * 029 * @author Brian Wing Shun Chan 030 * @see AssetTagPropertyPersistenceImpl 031 * @see AssetTagPropertyUtil 032 * @generated 033 */ 034 public interface AssetTagPropertyPersistence extends BasePersistence<AssetTagProperty> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify or reference this interface directly. Always use {@link AssetTagPropertyUtil} to access the asset tag property persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 039 */ 040 041 /** 042 * Caches the asset tag property in the entity cache if it is enabled. 043 * 044 * @param assetTagProperty the asset tag property to cache 045 */ 046 public void cacheResult( 047 com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty); 048 049 /** 050 * Caches the asset tag properties in the entity cache if it is enabled. 051 * 052 * @param assetTagProperties the asset tag properties to cache 053 */ 054 public void cacheResult( 055 java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> assetTagProperties); 056 057 /** 058 * Creates a new asset tag property with the primary key. Does not add the asset tag property to the database. 059 * 060 * @param tagPropertyId the primary key for the new asset tag property 061 * @return the new asset tag property 062 */ 063 public com.liferay.portlet.asset.model.AssetTagProperty create( 064 long tagPropertyId); 065 066 /** 067 * Removes the asset tag property with the primary key from the database. Also notifies the appropriate model listeners. 068 * 069 * @param tagPropertyId the primary key of the asset tag property to remove 070 * @return the asset tag property that was removed 071 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a asset tag property with the primary key could not be found 072 * @throws SystemException if a system exception occurred 073 */ 074 public com.liferay.portlet.asset.model.AssetTagProperty remove( 075 long tagPropertyId) 076 throws com.liferay.portal.kernel.exception.SystemException, 077 com.liferay.portlet.asset.NoSuchTagPropertyException; 078 079 public com.liferay.portlet.asset.model.AssetTagProperty updateImpl( 080 com.liferay.portlet.asset.model.AssetTagProperty assetTagProperty, 081 boolean merge) 082 throws com.liferay.portal.kernel.exception.SystemException; 083 084 /** 085 * Finds the asset tag property with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchTagPropertyException} if it could not be found. 086 * 087 * @param tagPropertyId the primary key of the asset tag property to find 088 * @return the asset tag property 089 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a asset tag property with the primary key could not be found 090 * @throws SystemException if a system exception occurred 091 */ 092 public com.liferay.portlet.asset.model.AssetTagProperty findByPrimaryKey( 093 long tagPropertyId) 094 throws com.liferay.portal.kernel.exception.SystemException, 095 com.liferay.portlet.asset.NoSuchTagPropertyException; 096 097 /** 098 * Finds the asset tag property with the primary key or returns <code>null</code> if it could not be found. 099 * 100 * @param tagPropertyId the primary key of the asset tag property to find 101 * @return the asset tag property, or <code>null</code> if a asset tag property with the primary key could not be found 102 * @throws SystemException if a system exception occurred 103 */ 104 public com.liferay.portlet.asset.model.AssetTagProperty fetchByPrimaryKey( 105 long tagPropertyId) 106 throws com.liferay.portal.kernel.exception.SystemException; 107 108 /** 109 * Finds all the asset tag properties where companyId = ?. 110 * 111 * @param companyId the company ID to search with 112 * @return the matching asset tag properties 113 * @throws SystemException if a system exception occurred 114 */ 115 public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByCompanyId( 116 long companyId) 117 throws com.liferay.portal.kernel.exception.SystemException; 118 119 /** 120 * Finds a range of all the asset tag properties where companyId = ?. 121 * 122 * <p> 123 * 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. 124 * </p> 125 * 126 * @param companyId the company ID to search with 127 * @param start the lower bound of the range of asset tag properties to return 128 * @param end the upper bound of the range of asset tag properties to return (not inclusive) 129 * @return the range of matching asset tag properties 130 * @throws SystemException if a system exception occurred 131 */ 132 public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByCompanyId( 133 long companyId, int start, int end) 134 throws com.liferay.portal.kernel.exception.SystemException; 135 136 /** 137 * Finds an ordered range of all the asset tag properties where companyId = ?. 138 * 139 * <p> 140 * 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. 141 * </p> 142 * 143 * @param companyId the company ID to search with 144 * @param start the lower bound of the range of asset tag properties to return 145 * @param end the upper bound of the range of asset tag properties to return (not inclusive) 146 * @param orderByComparator the comparator to order the results by 147 * @return the ordered range of matching asset tag properties 148 * @throws SystemException if a system exception occurred 149 */ 150 public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByCompanyId( 151 long companyId, int start, int end, 152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 153 throws com.liferay.portal.kernel.exception.SystemException; 154 155 /** 156 * Finds the first asset tag property in the ordered set where companyId = ?. 157 * 158 * <p> 159 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 160 * </p> 161 * 162 * @param companyId the company ID to search with 163 * @param orderByComparator the comparator to order the set by 164 * @return the first matching asset tag property 165 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found 166 * @throws SystemException if a system exception occurred 167 */ 168 public com.liferay.portlet.asset.model.AssetTagProperty findByCompanyId_First( 169 long companyId, 170 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 171 throws com.liferay.portal.kernel.exception.SystemException, 172 com.liferay.portlet.asset.NoSuchTagPropertyException; 173 174 /** 175 * Finds the last asset tag property in the ordered set where companyId = ?. 176 * 177 * <p> 178 * 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. 179 * </p> 180 * 181 * @param companyId the company ID to search with 182 * @param orderByComparator the comparator to order the set by 183 * @return the last matching asset tag property 184 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public com.liferay.portlet.asset.model.AssetTagProperty findByCompanyId_Last( 188 long companyId, 189 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 190 throws com.liferay.portal.kernel.exception.SystemException, 191 com.liferay.portlet.asset.NoSuchTagPropertyException; 192 193 /** 194 * Finds the asset tag properties before and after the current asset tag property in the ordered set where companyId = ?. 195 * 196 * <p> 197 * 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. 198 * </p> 199 * 200 * @param tagPropertyId the primary key of the current asset tag property 201 * @param companyId the company ID to search with 202 * @param orderByComparator the comparator to order the set by 203 * @return the previous, current, and next asset tag property 204 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a asset tag property with the primary key could not be found 205 * @throws SystemException if a system exception occurred 206 */ 207 public com.liferay.portlet.asset.model.AssetTagProperty[] findByCompanyId_PrevAndNext( 208 long tagPropertyId, long companyId, 209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 210 throws com.liferay.portal.kernel.exception.SystemException, 211 com.liferay.portlet.asset.NoSuchTagPropertyException; 212 213 /** 214 * Finds all the asset tag properties where tagId = ?. 215 * 216 * @param tagId the tag ID to search with 217 * @return the matching asset tag properties 218 * @throws SystemException if a system exception occurred 219 */ 220 public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId( 221 long tagId) throws com.liferay.portal.kernel.exception.SystemException; 222 223 /** 224 * Finds a range of all the asset tag properties where tagId = ?. 225 * 226 * <p> 227 * 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. 228 * </p> 229 * 230 * @param tagId the tag ID to search with 231 * @param start the lower bound of the range of asset tag properties to return 232 * @param end the upper bound of the range of asset tag properties to return (not inclusive) 233 * @return the range of matching asset tag properties 234 * @throws SystemException if a system exception occurred 235 */ 236 public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId( 237 long tagId, int start, int end) 238 throws com.liferay.portal.kernel.exception.SystemException; 239 240 /** 241 * Finds an ordered range of all the asset tag properties where tagId = ?. 242 * 243 * <p> 244 * 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. 245 * </p> 246 * 247 * @param tagId the tag ID to search with 248 * @param start the lower bound of the range of asset tag properties to return 249 * @param end the upper bound of the range of asset tag properties to return (not inclusive) 250 * @param orderByComparator the comparator to order the results by 251 * @return the ordered range of matching asset tag properties 252 * @throws SystemException if a system exception occurred 253 */ 254 public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId( 255 long tagId, int start, int end, 256 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 257 throws com.liferay.portal.kernel.exception.SystemException; 258 259 /** 260 * Finds the first asset tag property in the ordered set where tagId = ?. 261 * 262 * <p> 263 * 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. 264 * </p> 265 * 266 * @param tagId the tag ID to search with 267 * @param orderByComparator the comparator to order the set by 268 * @return the first matching asset tag property 269 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found 270 * @throws SystemException if a system exception occurred 271 */ 272 public com.liferay.portlet.asset.model.AssetTagProperty findByTagId_First( 273 long tagId, 274 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 275 throws com.liferay.portal.kernel.exception.SystemException, 276 com.liferay.portlet.asset.NoSuchTagPropertyException; 277 278 /** 279 * Finds the last asset tag property in the ordered set where tagId = ?. 280 * 281 * <p> 282 * 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. 283 * </p> 284 * 285 * @param tagId the tag ID to search with 286 * @param orderByComparator the comparator to order the set by 287 * @return the last matching asset tag property 288 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found 289 * @throws SystemException if a system exception occurred 290 */ 291 public com.liferay.portlet.asset.model.AssetTagProperty findByTagId_Last( 292 long tagId, 293 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 294 throws com.liferay.portal.kernel.exception.SystemException, 295 com.liferay.portlet.asset.NoSuchTagPropertyException; 296 297 /** 298 * Finds the asset tag properties before and after the current asset tag property in the ordered set where tagId = ?. 299 * 300 * <p> 301 * 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. 302 * </p> 303 * 304 * @param tagPropertyId the primary key of the current asset tag property 305 * @param tagId the tag ID to search with 306 * @param orderByComparator the comparator to order the set by 307 * @return the previous, current, and next asset tag property 308 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a asset tag property with the primary key could not be found 309 * @throws SystemException if a system exception occurred 310 */ 311 public com.liferay.portlet.asset.model.AssetTagProperty[] findByTagId_PrevAndNext( 312 long tagPropertyId, long tagId, 313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 314 throws com.liferay.portal.kernel.exception.SystemException, 315 com.liferay.portlet.asset.NoSuchTagPropertyException; 316 317 /** 318 * Finds all the asset tag properties where companyId = ? and key = ?. 319 * 320 * @param companyId the company ID to search with 321 * @param key the key to search with 322 * @return the matching asset tag properties 323 * @throws SystemException if a system exception occurred 324 */ 325 public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K( 326 long companyId, java.lang.String key) 327 throws com.liferay.portal.kernel.exception.SystemException; 328 329 /** 330 * Finds a range of all the asset tag properties where companyId = ? and key = ?. 331 * 332 * <p> 333 * 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. 334 * </p> 335 * 336 * @param companyId the company ID to search with 337 * @param key the key to search with 338 * @param start the lower bound of the range of asset tag properties to return 339 * @param end the upper bound of the range of asset tag properties to return (not inclusive) 340 * @return the range of matching asset tag properties 341 * @throws SystemException if a system exception occurred 342 */ 343 public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K( 344 long companyId, java.lang.String key, int start, int end) 345 throws com.liferay.portal.kernel.exception.SystemException; 346 347 /** 348 * Finds an ordered range of all the asset tag properties where companyId = ? and key = ?. 349 * 350 * <p> 351 * 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. 352 * </p> 353 * 354 * @param companyId the company ID to search with 355 * @param key the key to search with 356 * @param start the lower bound of the range of asset tag properties to return 357 * @param end the upper bound of the range of asset tag properties to return (not inclusive) 358 * @param orderByComparator the comparator to order the results by 359 * @return the ordered range of matching asset tag properties 360 * @throws SystemException if a system exception occurred 361 */ 362 public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K( 363 long companyId, java.lang.String key, int start, int end, 364 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 365 throws com.liferay.portal.kernel.exception.SystemException; 366 367 /** 368 * Finds the first asset tag property in the ordered set where companyId = ? and key = ?. 369 * 370 * <p> 371 * 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. 372 * </p> 373 * 374 * @param companyId the company ID to search with 375 * @param key the key to search with 376 * @param orderByComparator the comparator to order the set by 377 * @return the first matching asset tag property 378 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found 379 * @throws SystemException if a system exception occurred 380 */ 381 public com.liferay.portlet.asset.model.AssetTagProperty findByC_K_First( 382 long companyId, java.lang.String key, 383 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 384 throws com.liferay.portal.kernel.exception.SystemException, 385 com.liferay.portlet.asset.NoSuchTagPropertyException; 386 387 /** 388 * Finds the last asset tag property in the ordered set where companyId = ? and key = ?. 389 * 390 * <p> 391 * 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. 392 * </p> 393 * 394 * @param companyId the company ID to search with 395 * @param key the key to search with 396 * @param orderByComparator the comparator to order the set by 397 * @return the last matching asset tag property 398 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found 399 * @throws SystemException if a system exception occurred 400 */ 401 public com.liferay.portlet.asset.model.AssetTagProperty findByC_K_Last( 402 long companyId, java.lang.String key, 403 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 404 throws com.liferay.portal.kernel.exception.SystemException, 405 com.liferay.portlet.asset.NoSuchTagPropertyException; 406 407 /** 408 * Finds the asset tag properties before and after the current asset tag property in the ordered set where companyId = ? and key = ?. 409 * 410 * <p> 411 * 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. 412 * </p> 413 * 414 * @param tagPropertyId the primary key of the current asset tag property 415 * @param companyId the company ID to search with 416 * @param key the key to search with 417 * @param orderByComparator the comparator to order the set by 418 * @return the previous, current, and next asset tag property 419 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a asset tag property with the primary key could not be found 420 * @throws SystemException if a system exception occurred 421 */ 422 public com.liferay.portlet.asset.model.AssetTagProperty[] findByC_K_PrevAndNext( 423 long tagPropertyId, long companyId, java.lang.String key, 424 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 425 throws com.liferay.portal.kernel.exception.SystemException, 426 com.liferay.portlet.asset.NoSuchTagPropertyException; 427 428 /** 429 * Finds the asset tag property where tagId = ? and key = ? or throws a {@link com.liferay.portlet.asset.NoSuchTagPropertyException} if it could not be found. 430 * 431 * @param tagId the tag ID to search with 432 * @param key the key to search with 433 * @return the matching asset tag property 434 * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found 435 * @throws SystemException if a system exception occurred 436 */ 437 public com.liferay.portlet.asset.model.AssetTagProperty findByT_K( 438 long tagId, java.lang.String key) 439 throws com.liferay.portal.kernel.exception.SystemException, 440 com.liferay.portlet.asset.NoSuchTagPropertyException; 441 442 /** 443 * Finds the asset tag property where tagId = ? and key = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 444 * 445 * @param tagId the tag ID to search with 446 * @param key the key to search with 447 * @return the matching asset tag property, or <code>null</code> if a matching asset tag property could not be found 448 * @throws SystemException if a system exception occurred 449 */ 450 public com.liferay.portlet.asset.model.AssetTagProperty fetchByT_K( 451 long tagId, java.lang.String key) 452 throws com.liferay.portal.kernel.exception.SystemException; 453 454 /** 455 * Finds the asset tag property where tagId = ? and key = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 456 * 457 * @param tagId the tag ID to search with 458 * @param key the key to search with 459 * @return the matching asset tag property, or <code>null</code> if a matching asset tag property could not be found 460 * @throws SystemException if a system exception occurred 461 */ 462 public com.liferay.portlet.asset.model.AssetTagProperty fetchByT_K( 463 long tagId, java.lang.String key, boolean retrieveFromCache) 464 throws com.liferay.portal.kernel.exception.SystemException; 465 466 /** 467 * Finds all the asset tag properties. 468 * 469 * @return the asset tag properties 470 * @throws SystemException if a system exception occurred 471 */ 472 public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll() 473 throws com.liferay.portal.kernel.exception.SystemException; 474 475 /** 476 * Finds a range of all the asset tag properties. 477 * 478 * <p> 479 * 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. 480 * </p> 481 * 482 * @param start the lower bound of the range of asset tag properties to return 483 * @param end the upper bound of the range of asset tag properties to return (not inclusive) 484 * @return the range of asset tag properties 485 * @throws SystemException if a system exception occurred 486 */ 487 public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll( 488 int start, int end) 489 throws com.liferay.portal.kernel.exception.SystemException; 490 491 /** 492 * Finds an ordered range of all the asset tag properties. 493 * 494 * <p> 495 * 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. 496 * </p> 497 * 498 * @param start the lower bound of the range of asset tag properties to return 499 * @param end the upper bound of the range of asset tag properties to return (not inclusive) 500 * @param orderByComparator the comparator to order the results by 501 * @return the ordered range of asset tag properties 502 * @throws SystemException if a system exception occurred 503 */ 504 public java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll( 505 int start, int end, 506 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 507 throws com.liferay.portal.kernel.exception.SystemException; 508 509 /** 510 * Removes all the asset tag properties where companyId = ? from the database. 511 * 512 * @param companyId the company ID to search with 513 * @throws SystemException if a system exception occurred 514 */ 515 public void removeByCompanyId(long companyId) 516 throws com.liferay.portal.kernel.exception.SystemException; 517 518 /** 519 * Removes all the asset tag properties where tagId = ? from the database. 520 * 521 * @param tagId the tag ID to search with 522 * @throws SystemException if a system exception occurred 523 */ 524 public void removeByTagId(long tagId) 525 throws com.liferay.portal.kernel.exception.SystemException; 526 527 /** 528 * Removes all the asset tag properties where companyId = ? and key = ? from the database. 529 * 530 * @param companyId the company ID to search with 531 * @param key the key to search with 532 * @throws SystemException if a system exception occurred 533 */ 534 public void removeByC_K(long companyId, java.lang.String key) 535 throws com.liferay.portal.kernel.exception.SystemException; 536 537 /** 538 * Removes the asset tag property where tagId = ? and key = ? from the database. 539 * 540 * @param tagId the tag ID to search with 541 * @param key the key to search with 542 * @throws SystemException if a system exception occurred 543 */ 544 public void removeByT_K(long tagId, java.lang.String key) 545 throws com.liferay.portal.kernel.exception.SystemException, 546 com.liferay.portlet.asset.NoSuchTagPropertyException; 547 548 /** 549 * Removes all the asset tag properties from the database. 550 * 551 * @throws SystemException if a system exception occurred 552 */ 553 public void removeAll() 554 throws com.liferay.portal.kernel.exception.SystemException; 555 556 /** 557 * Counts all the asset tag properties where companyId = ?. 558 * 559 * @param companyId the company ID to search with 560 * @return the number of matching asset tag properties 561 * @throws SystemException if a system exception occurred 562 */ 563 public int countByCompanyId(long companyId) 564 throws com.liferay.portal.kernel.exception.SystemException; 565 566 /** 567 * Counts all the asset tag properties where tagId = ?. 568 * 569 * @param tagId the tag ID to search with 570 * @return the number of matching asset tag properties 571 * @throws SystemException if a system exception occurred 572 */ 573 public int countByTagId(long tagId) 574 throws com.liferay.portal.kernel.exception.SystemException; 575 576 /** 577 * Counts all the asset tag properties where companyId = ? and key = ?. 578 * 579 * @param companyId the company ID to search with 580 * @param key the key to search with 581 * @return the number of matching asset tag properties 582 * @throws SystemException if a system exception occurred 583 */ 584 public int countByC_K(long companyId, java.lang.String key) 585 throws com.liferay.portal.kernel.exception.SystemException; 586 587 /** 588 * Counts all the asset tag properties where tagId = ? and key = ?. 589 * 590 * @param tagId the tag ID to search with 591 * @param key the key to search with 592 * @return the number of matching asset tag properties 593 * @throws SystemException if a system exception occurred 594 */ 595 public int countByT_K(long tagId, java.lang.String key) 596 throws com.liferay.portal.kernel.exception.SystemException; 597 598 /** 599 * Counts all the asset tag properties. 600 * 601 * @return the number of asset tag properties 602 * @throws SystemException if a system exception occurred 603 */ 604 public int countAll() 605 throws com.liferay.portal.kernel.exception.SystemException; 606 607 public AssetTagProperty remove(AssetTagProperty assetTagProperty) 608 throws SystemException; 609 }