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