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