001 /** 002 * Copyright (c) 2000-present 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.expando.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.persistence.BasePersistence; 020 021 import com.liferay.portlet.expando.model.ExpandoValue; 022 023 /** 024 * The persistence interface for the expando value 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 com.liferay.portlet.expando.service.persistence.impl.ExpandoValuePersistenceImpl 032 * @see ExpandoValueUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface ExpandoValuePersistence extends BasePersistence<ExpandoValue> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link ExpandoValueUtil} to access the expando value persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the expando values where tableId = ?. 045 * 046 * @param tableId the table ID 047 * @return the matching expando values 048 */ 049 public java.util.List<ExpandoValue> findByTableId(long tableId); 050 051 /** 052 * Returns a range of all the expando values where tableId = ?. 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoValueModelImpl}. 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 tableId the table ID 059 * @param start the lower bound of the range of expando values 060 * @param end the upper bound of the range of expando values (not inclusive) 061 * @return the range of matching expando values 062 */ 063 public java.util.List<ExpandoValue> findByTableId(long tableId, int start, 064 int end); 065 066 /** 067 * Returns an ordered range of all the expando values where tableId = ?. 068 * 069 * <p> 070 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoValueModelImpl}. 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. 071 * </p> 072 * 073 * @param tableId the table ID 074 * @param start the lower bound of the range of expando values 075 * @param end the upper bound of the range of expando values (not inclusive) 076 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 077 * @return the ordered range of matching expando values 078 */ 079 public java.util.List<ExpandoValue> findByTableId(long tableId, int start, 080 int end, 081 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 082 083 /** 084 * Returns the first expando value in the ordered set where tableId = ?. 085 * 086 * @param tableId the table ID 087 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 088 * @return the first matching expando value 089 * @throws NoSuchValueException if a matching expando value could not be found 090 */ 091 public ExpandoValue findByTableId_First(long tableId, 092 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 093 throws com.liferay.portlet.expando.NoSuchValueException; 094 095 /** 096 * Returns the first expando value in the ordered set where tableId = ?. 097 * 098 * @param tableId the table ID 099 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 100 * @return the first matching expando value, or <code>null</code> if a matching expando value could not be found 101 */ 102 public ExpandoValue fetchByTableId_First(long tableId, 103 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 104 105 /** 106 * Returns the last expando value in the ordered set where tableId = ?. 107 * 108 * @param tableId the table ID 109 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 110 * @return the last matching expando value 111 * @throws NoSuchValueException if a matching expando value could not be found 112 */ 113 public ExpandoValue findByTableId_Last(long tableId, 114 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 115 throws com.liferay.portlet.expando.NoSuchValueException; 116 117 /** 118 * Returns the last expando value in the ordered set where tableId = ?. 119 * 120 * @param tableId the table ID 121 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 122 * @return the last matching expando value, or <code>null</code> if a matching expando value could not be found 123 */ 124 public ExpandoValue fetchByTableId_Last(long tableId, 125 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 126 127 /** 128 * Returns the expando values before and after the current expando value in the ordered set where tableId = ?. 129 * 130 * @param valueId the primary key of the current expando value 131 * @param tableId the table ID 132 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 133 * @return the previous, current, and next expando value 134 * @throws NoSuchValueException if a expando value with the primary key could not be found 135 */ 136 public ExpandoValue[] findByTableId_PrevAndNext(long valueId, long tableId, 137 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 138 throws com.liferay.portlet.expando.NoSuchValueException; 139 140 /** 141 * Removes all the expando values where tableId = ? from the database. 142 * 143 * @param tableId the table ID 144 */ 145 public void removeByTableId(long tableId); 146 147 /** 148 * Returns the number of expando values where tableId = ?. 149 * 150 * @param tableId the table ID 151 * @return the number of matching expando values 152 */ 153 public int countByTableId(long tableId); 154 155 /** 156 * Returns all the expando values where columnId = ?. 157 * 158 * @param columnId the column ID 159 * @return the matching expando values 160 */ 161 public java.util.List<ExpandoValue> findByColumnId(long columnId); 162 163 /** 164 * Returns a range of all the expando values where columnId = ?. 165 * 166 * <p> 167 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoValueModelImpl}. 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. 168 * </p> 169 * 170 * @param columnId the column ID 171 * @param start the lower bound of the range of expando values 172 * @param end the upper bound of the range of expando values (not inclusive) 173 * @return the range of matching expando values 174 */ 175 public java.util.List<ExpandoValue> findByColumnId(long columnId, 176 int start, int end); 177 178 /** 179 * Returns an ordered range of all the expando values where columnId = ?. 180 * 181 * <p> 182 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoValueModelImpl}. 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. 183 * </p> 184 * 185 * @param columnId the column ID 186 * @param start the lower bound of the range of expando values 187 * @param end the upper bound of the range of expando values (not inclusive) 188 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 189 * @return the ordered range of matching expando values 190 */ 191 public java.util.List<ExpandoValue> findByColumnId(long columnId, 192 int start, int end, 193 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 194 195 /** 196 * Returns the first expando value in the ordered set where columnId = ?. 197 * 198 * @param columnId the column ID 199 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 200 * @return the first matching expando value 201 * @throws NoSuchValueException if a matching expando value could not be found 202 */ 203 public ExpandoValue findByColumnId_First(long columnId, 204 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 205 throws com.liferay.portlet.expando.NoSuchValueException; 206 207 /** 208 * Returns the first expando value in the ordered set where columnId = ?. 209 * 210 * @param columnId the column ID 211 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 212 * @return the first matching expando value, or <code>null</code> if a matching expando value could not be found 213 */ 214 public ExpandoValue fetchByColumnId_First(long columnId, 215 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 216 217 /** 218 * Returns the last expando value in the ordered set where columnId = ?. 219 * 220 * @param columnId the column ID 221 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 222 * @return the last matching expando value 223 * @throws NoSuchValueException if a matching expando value could not be found 224 */ 225 public ExpandoValue findByColumnId_Last(long columnId, 226 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 227 throws com.liferay.portlet.expando.NoSuchValueException; 228 229 /** 230 * Returns the last expando value in the ordered set where columnId = ?. 231 * 232 * @param columnId the column ID 233 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 234 * @return the last matching expando value, or <code>null</code> if a matching expando value could not be found 235 */ 236 public ExpandoValue fetchByColumnId_Last(long columnId, 237 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 238 239 /** 240 * Returns the expando values before and after the current expando value in the ordered set where columnId = ?. 241 * 242 * @param valueId the primary key of the current expando value 243 * @param columnId the column ID 244 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 245 * @return the previous, current, and next expando value 246 * @throws NoSuchValueException if a expando value with the primary key could not be found 247 */ 248 public ExpandoValue[] findByColumnId_PrevAndNext(long valueId, 249 long columnId, 250 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 251 throws com.liferay.portlet.expando.NoSuchValueException; 252 253 /** 254 * Removes all the expando values where columnId = ? from the database. 255 * 256 * @param columnId the column ID 257 */ 258 public void removeByColumnId(long columnId); 259 260 /** 261 * Returns the number of expando values where columnId = ?. 262 * 263 * @param columnId the column ID 264 * @return the number of matching expando values 265 */ 266 public int countByColumnId(long columnId); 267 268 /** 269 * Returns all the expando values where rowId = ?. 270 * 271 * @param rowId the row ID 272 * @return the matching expando values 273 */ 274 public java.util.List<ExpandoValue> findByRowId(long rowId); 275 276 /** 277 * Returns a range of all the expando values where rowId = ?. 278 * 279 * <p> 280 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoValueModelImpl}. 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. 281 * </p> 282 * 283 * @param rowId the row ID 284 * @param start the lower bound of the range of expando values 285 * @param end the upper bound of the range of expando values (not inclusive) 286 * @return the range of matching expando values 287 */ 288 public java.util.List<ExpandoValue> findByRowId(long rowId, int start, 289 int end); 290 291 /** 292 * Returns an ordered range of all the expando values where rowId = ?. 293 * 294 * <p> 295 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoValueModelImpl}. 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. 296 * </p> 297 * 298 * @param rowId the row ID 299 * @param start the lower bound of the range of expando values 300 * @param end the upper bound of the range of expando values (not inclusive) 301 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 302 * @return the ordered range of matching expando values 303 */ 304 public java.util.List<ExpandoValue> findByRowId(long rowId, int start, 305 int end, 306 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 307 308 /** 309 * Returns the first expando value in the ordered set where rowId = ?. 310 * 311 * @param rowId the row ID 312 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 313 * @return the first matching expando value 314 * @throws NoSuchValueException if a matching expando value could not be found 315 */ 316 public ExpandoValue findByRowId_First(long rowId, 317 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 318 throws com.liferay.portlet.expando.NoSuchValueException; 319 320 /** 321 * Returns the first expando value in the ordered set where rowId = ?. 322 * 323 * @param rowId the row ID 324 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 325 * @return the first matching expando value, or <code>null</code> if a matching expando value could not be found 326 */ 327 public ExpandoValue fetchByRowId_First(long rowId, 328 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 329 330 /** 331 * Returns the last expando value in the ordered set where rowId = ?. 332 * 333 * @param rowId the row ID 334 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 335 * @return the last matching expando value 336 * @throws NoSuchValueException if a matching expando value could not be found 337 */ 338 public ExpandoValue findByRowId_Last(long rowId, 339 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 340 throws com.liferay.portlet.expando.NoSuchValueException; 341 342 /** 343 * Returns the last expando value in the ordered set where rowId = ?. 344 * 345 * @param rowId the row ID 346 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 347 * @return the last matching expando value, or <code>null</code> if a matching expando value could not be found 348 */ 349 public ExpandoValue fetchByRowId_Last(long rowId, 350 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 351 352 /** 353 * Returns the expando values before and after the current expando value in the ordered set where rowId = ?. 354 * 355 * @param valueId the primary key of the current expando value 356 * @param rowId the row ID 357 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 358 * @return the previous, current, and next expando value 359 * @throws NoSuchValueException if a expando value with the primary key could not be found 360 */ 361 public ExpandoValue[] findByRowId_PrevAndNext(long valueId, long rowId, 362 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 363 throws com.liferay.portlet.expando.NoSuchValueException; 364 365 /** 366 * Removes all the expando values where rowId = ? from the database. 367 * 368 * @param rowId the row ID 369 */ 370 public void removeByRowId(long rowId); 371 372 /** 373 * Returns the number of expando values where rowId = ?. 374 * 375 * @param rowId the row ID 376 * @return the number of matching expando values 377 */ 378 public int countByRowId(long rowId); 379 380 /** 381 * Returns all the expando values where tableId = ? and columnId = ?. 382 * 383 * @param tableId the table ID 384 * @param columnId the column ID 385 * @return the matching expando values 386 */ 387 public java.util.List<ExpandoValue> findByT_C(long tableId, long columnId); 388 389 /** 390 * Returns a range of all the expando values where tableId = ? and columnId = ?. 391 * 392 * <p> 393 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoValueModelImpl}. 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. 394 * </p> 395 * 396 * @param tableId the table ID 397 * @param columnId the column ID 398 * @param start the lower bound of the range of expando values 399 * @param end the upper bound of the range of expando values (not inclusive) 400 * @return the range of matching expando values 401 */ 402 public java.util.List<ExpandoValue> findByT_C(long tableId, long columnId, 403 int start, int end); 404 405 /** 406 * Returns an ordered range of all the expando values where tableId = ? and columnId = ?. 407 * 408 * <p> 409 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoValueModelImpl}. 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. 410 * </p> 411 * 412 * @param tableId the table ID 413 * @param columnId the column ID 414 * @param start the lower bound of the range of expando values 415 * @param end the upper bound of the range of expando values (not inclusive) 416 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 417 * @return the ordered range of matching expando values 418 */ 419 public java.util.List<ExpandoValue> findByT_C(long tableId, long columnId, 420 int start, int end, 421 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 422 423 /** 424 * Returns the first expando value in the ordered set where tableId = ? and columnId = ?. 425 * 426 * @param tableId the table ID 427 * @param columnId the column ID 428 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 429 * @return the first matching expando value 430 * @throws NoSuchValueException if a matching expando value could not be found 431 */ 432 public ExpandoValue findByT_C_First(long tableId, long columnId, 433 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 434 throws com.liferay.portlet.expando.NoSuchValueException; 435 436 /** 437 * Returns the first expando value in the ordered set where tableId = ? and columnId = ?. 438 * 439 * @param tableId the table ID 440 * @param columnId the column ID 441 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 442 * @return the first matching expando value, or <code>null</code> if a matching expando value could not be found 443 */ 444 public ExpandoValue fetchByT_C_First(long tableId, long columnId, 445 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 446 447 /** 448 * Returns the last expando value in the ordered set where tableId = ? and columnId = ?. 449 * 450 * @param tableId the table ID 451 * @param columnId the column ID 452 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 453 * @return the last matching expando value 454 * @throws NoSuchValueException if a matching expando value could not be found 455 */ 456 public ExpandoValue findByT_C_Last(long tableId, long columnId, 457 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 458 throws com.liferay.portlet.expando.NoSuchValueException; 459 460 /** 461 * Returns the last expando value in the ordered set where tableId = ? and columnId = ?. 462 * 463 * @param tableId the table ID 464 * @param columnId the column ID 465 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 466 * @return the last matching expando value, or <code>null</code> if a matching expando value could not be found 467 */ 468 public ExpandoValue fetchByT_C_Last(long tableId, long columnId, 469 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 470 471 /** 472 * Returns the expando values before and after the current expando value in the ordered set where tableId = ? and columnId = ?. 473 * 474 * @param valueId the primary key of the current expando value 475 * @param tableId the table ID 476 * @param columnId the column ID 477 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 478 * @return the previous, current, and next expando value 479 * @throws NoSuchValueException if a expando value with the primary key could not be found 480 */ 481 public ExpandoValue[] findByT_C_PrevAndNext(long valueId, long tableId, 482 long columnId, 483 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 484 throws com.liferay.portlet.expando.NoSuchValueException; 485 486 /** 487 * Removes all the expando values where tableId = ? and columnId = ? from the database. 488 * 489 * @param tableId the table ID 490 * @param columnId the column ID 491 */ 492 public void removeByT_C(long tableId, long columnId); 493 494 /** 495 * Returns the number of expando values where tableId = ? and columnId = ?. 496 * 497 * @param tableId the table ID 498 * @param columnId the column ID 499 * @return the number of matching expando values 500 */ 501 public int countByT_C(long tableId, long columnId); 502 503 /** 504 * Returns all the expando values where tableId = ? and rowId = ?. 505 * 506 * @param tableId the table ID 507 * @param rowId the row ID 508 * @return the matching expando values 509 */ 510 public java.util.List<ExpandoValue> findByT_R(long tableId, long rowId); 511 512 /** 513 * Returns a range of all the expando values where tableId = ? and rowId = ?. 514 * 515 * <p> 516 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoValueModelImpl}. 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. 517 * </p> 518 * 519 * @param tableId the table ID 520 * @param rowId the row ID 521 * @param start the lower bound of the range of expando values 522 * @param end the upper bound of the range of expando values (not inclusive) 523 * @return the range of matching expando values 524 */ 525 public java.util.List<ExpandoValue> findByT_R(long tableId, long rowId, 526 int start, int end); 527 528 /** 529 * Returns an ordered range of all the expando values where tableId = ? and rowId = ?. 530 * 531 * <p> 532 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoValueModelImpl}. 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. 533 * </p> 534 * 535 * @param tableId the table ID 536 * @param rowId the row ID 537 * @param start the lower bound of the range of expando values 538 * @param end the upper bound of the range of expando values (not inclusive) 539 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 540 * @return the ordered range of matching expando values 541 */ 542 public java.util.List<ExpandoValue> findByT_R(long tableId, long rowId, 543 int start, int end, 544 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 545 546 /** 547 * Returns the first expando value in the ordered set where tableId = ? and rowId = ?. 548 * 549 * @param tableId the table ID 550 * @param rowId the row ID 551 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 552 * @return the first matching expando value 553 * @throws NoSuchValueException if a matching expando value could not be found 554 */ 555 public ExpandoValue findByT_R_First(long tableId, long rowId, 556 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 557 throws com.liferay.portlet.expando.NoSuchValueException; 558 559 /** 560 * Returns the first expando value in the ordered set where tableId = ? and rowId = ?. 561 * 562 * @param tableId the table ID 563 * @param rowId the row ID 564 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 565 * @return the first matching expando value, or <code>null</code> if a matching expando value could not be found 566 */ 567 public ExpandoValue fetchByT_R_First(long tableId, long rowId, 568 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 569 570 /** 571 * Returns the last expando value in the ordered set where tableId = ? and rowId = ?. 572 * 573 * @param tableId the table ID 574 * @param rowId the row ID 575 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 576 * @return the last matching expando value 577 * @throws NoSuchValueException if a matching expando value could not be found 578 */ 579 public ExpandoValue findByT_R_Last(long tableId, long rowId, 580 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 581 throws com.liferay.portlet.expando.NoSuchValueException; 582 583 /** 584 * Returns the last expando value in the ordered set where tableId = ? and rowId = ?. 585 * 586 * @param tableId the table ID 587 * @param rowId the row ID 588 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 589 * @return the last matching expando value, or <code>null</code> if a matching expando value could not be found 590 */ 591 public ExpandoValue fetchByT_R_Last(long tableId, long rowId, 592 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 593 594 /** 595 * Returns the expando values before and after the current expando value in the ordered set where tableId = ? and rowId = ?. 596 * 597 * @param valueId the primary key of the current expando value 598 * @param tableId the table ID 599 * @param rowId the row ID 600 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 601 * @return the previous, current, and next expando value 602 * @throws NoSuchValueException if a expando value with the primary key could not be found 603 */ 604 public ExpandoValue[] findByT_R_PrevAndNext(long valueId, long tableId, 605 long rowId, 606 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 607 throws com.liferay.portlet.expando.NoSuchValueException; 608 609 /** 610 * Removes all the expando values where tableId = ? and rowId = ? from the database. 611 * 612 * @param tableId the table ID 613 * @param rowId the row ID 614 */ 615 public void removeByT_R(long tableId, long rowId); 616 617 /** 618 * Returns the number of expando values where tableId = ? and rowId = ?. 619 * 620 * @param tableId the table ID 621 * @param rowId the row ID 622 * @return the number of matching expando values 623 */ 624 public int countByT_R(long tableId, long rowId); 625 626 /** 627 * Returns all the expando values where tableId = ? and classPK = ?. 628 * 629 * @param tableId the table ID 630 * @param classPK the class p k 631 * @return the matching expando values 632 */ 633 public java.util.List<ExpandoValue> findByT_CPK(long tableId, long classPK); 634 635 /** 636 * Returns a range of all the expando values where tableId = ? and classPK = ?. 637 * 638 * <p> 639 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoValueModelImpl}. 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. 640 * </p> 641 * 642 * @param tableId the table ID 643 * @param classPK the class p k 644 * @param start the lower bound of the range of expando values 645 * @param end the upper bound of the range of expando values (not inclusive) 646 * @return the range of matching expando values 647 */ 648 public java.util.List<ExpandoValue> findByT_CPK(long tableId, long classPK, 649 int start, int end); 650 651 /** 652 * Returns an ordered range of all the expando values where tableId = ? and classPK = ?. 653 * 654 * <p> 655 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoValueModelImpl}. 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. 656 * </p> 657 * 658 * @param tableId the table ID 659 * @param classPK the class p k 660 * @param start the lower bound of the range of expando values 661 * @param end the upper bound of the range of expando values (not inclusive) 662 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 663 * @return the ordered range of matching expando values 664 */ 665 public java.util.List<ExpandoValue> findByT_CPK(long tableId, long classPK, 666 int start, int end, 667 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 668 669 /** 670 * Returns the first expando value in the ordered set where tableId = ? and classPK = ?. 671 * 672 * @param tableId the table ID 673 * @param classPK the class p k 674 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 675 * @return the first matching expando value 676 * @throws NoSuchValueException if a matching expando value could not be found 677 */ 678 public ExpandoValue findByT_CPK_First(long tableId, long classPK, 679 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 680 throws com.liferay.portlet.expando.NoSuchValueException; 681 682 /** 683 * Returns the first expando value in the ordered set where tableId = ? and classPK = ?. 684 * 685 * @param tableId the table ID 686 * @param classPK the class p k 687 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 688 * @return the first matching expando value, or <code>null</code> if a matching expando value could not be found 689 */ 690 public ExpandoValue fetchByT_CPK_First(long tableId, long classPK, 691 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 692 693 /** 694 * Returns the last expando value in the ordered set where tableId = ? and classPK = ?. 695 * 696 * @param tableId the table ID 697 * @param classPK the class p k 698 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 699 * @return the last matching expando value 700 * @throws NoSuchValueException if a matching expando value could not be found 701 */ 702 public ExpandoValue findByT_CPK_Last(long tableId, long classPK, 703 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 704 throws com.liferay.portlet.expando.NoSuchValueException; 705 706 /** 707 * Returns the last expando value in the ordered set where tableId = ? and classPK = ?. 708 * 709 * @param tableId the table ID 710 * @param classPK the class p k 711 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 712 * @return the last matching expando value, or <code>null</code> if a matching expando value could not be found 713 */ 714 public ExpandoValue fetchByT_CPK_Last(long tableId, long classPK, 715 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 716 717 /** 718 * Returns the expando values before and after the current expando value in the ordered set where tableId = ? and classPK = ?. 719 * 720 * @param valueId the primary key of the current expando value 721 * @param tableId the table ID 722 * @param classPK the class p k 723 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 724 * @return the previous, current, and next expando value 725 * @throws NoSuchValueException if a expando value with the primary key could not be found 726 */ 727 public ExpandoValue[] findByT_CPK_PrevAndNext(long valueId, long tableId, 728 long classPK, 729 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 730 throws com.liferay.portlet.expando.NoSuchValueException; 731 732 /** 733 * Removes all the expando values where tableId = ? and classPK = ? from the database. 734 * 735 * @param tableId the table ID 736 * @param classPK the class p k 737 */ 738 public void removeByT_CPK(long tableId, long classPK); 739 740 /** 741 * Returns the number of expando values where tableId = ? and classPK = ?. 742 * 743 * @param tableId the table ID 744 * @param classPK the class p k 745 * @return the number of matching expando values 746 */ 747 public int countByT_CPK(long tableId, long classPK); 748 749 /** 750 * Returns the expando value where columnId = ? and rowId = ? or throws a {@link NoSuchValueException} if it could not be found. 751 * 752 * @param columnId the column ID 753 * @param rowId the row ID 754 * @return the matching expando value 755 * @throws NoSuchValueException if a matching expando value could not be found 756 */ 757 public ExpandoValue findByC_R(long columnId, long rowId) 758 throws com.liferay.portlet.expando.NoSuchValueException; 759 760 /** 761 * Returns the expando value where columnId = ? and rowId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 762 * 763 * @param columnId the column ID 764 * @param rowId the row ID 765 * @return the matching expando value, or <code>null</code> if a matching expando value could not be found 766 */ 767 public ExpandoValue fetchByC_R(long columnId, long rowId); 768 769 /** 770 * Returns the expando value where columnId = ? and rowId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 771 * 772 * @param columnId the column ID 773 * @param rowId the row ID 774 * @param retrieveFromCache whether to use the finder cache 775 * @return the matching expando value, or <code>null</code> if a matching expando value could not be found 776 */ 777 public ExpandoValue fetchByC_R(long columnId, long rowId, 778 boolean retrieveFromCache); 779 780 /** 781 * Removes the expando value where columnId = ? and rowId = ? from the database. 782 * 783 * @param columnId the column ID 784 * @param rowId the row ID 785 * @return the expando value that was removed 786 */ 787 public ExpandoValue removeByC_R(long columnId, long rowId) 788 throws com.liferay.portlet.expando.NoSuchValueException; 789 790 /** 791 * Returns the number of expando values where columnId = ? and rowId = ?. 792 * 793 * @param columnId the column ID 794 * @param rowId the row ID 795 * @return the number of matching expando values 796 */ 797 public int countByC_R(long columnId, long rowId); 798 799 /** 800 * Returns all the expando values where classNameId = ? and classPK = ?. 801 * 802 * @param classNameId the class name ID 803 * @param classPK the class p k 804 * @return the matching expando values 805 */ 806 public java.util.List<ExpandoValue> findByC_C(long classNameId, long classPK); 807 808 /** 809 * Returns a range of all the expando values where classNameId = ? and classPK = ?. 810 * 811 * <p> 812 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoValueModelImpl}. 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. 813 * </p> 814 * 815 * @param classNameId the class name ID 816 * @param classPK the class p k 817 * @param start the lower bound of the range of expando values 818 * @param end the upper bound of the range of expando values (not inclusive) 819 * @return the range of matching expando values 820 */ 821 public java.util.List<ExpandoValue> findByC_C(long classNameId, 822 long classPK, int start, int end); 823 824 /** 825 * Returns an ordered range of all the expando values where classNameId = ? and classPK = ?. 826 * 827 * <p> 828 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoValueModelImpl}. 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. 829 * </p> 830 * 831 * @param classNameId the class name ID 832 * @param classPK the class p k 833 * @param start the lower bound of the range of expando values 834 * @param end the upper bound of the range of expando values (not inclusive) 835 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 836 * @return the ordered range of matching expando values 837 */ 838 public java.util.List<ExpandoValue> findByC_C(long classNameId, 839 long classPK, int start, int end, 840 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 841 842 /** 843 * Returns the first expando value in the ordered set where classNameId = ? and classPK = ?. 844 * 845 * @param classNameId the class name ID 846 * @param classPK the class p k 847 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 848 * @return the first matching expando value 849 * @throws NoSuchValueException if a matching expando value could not be found 850 */ 851 public ExpandoValue findByC_C_First(long classNameId, long classPK, 852 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 853 throws com.liferay.portlet.expando.NoSuchValueException; 854 855 /** 856 * Returns the first expando value in the ordered set where classNameId = ? and classPK = ?. 857 * 858 * @param classNameId the class name ID 859 * @param classPK the class p k 860 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 861 * @return the first matching expando value, or <code>null</code> if a matching expando value could not be found 862 */ 863 public ExpandoValue fetchByC_C_First(long classNameId, long classPK, 864 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 865 866 /** 867 * Returns the last expando value in the ordered set where classNameId = ? and classPK = ?. 868 * 869 * @param classNameId the class name ID 870 * @param classPK the class p k 871 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 872 * @return the last matching expando value 873 * @throws NoSuchValueException if a matching expando value could not be found 874 */ 875 public ExpandoValue findByC_C_Last(long classNameId, long classPK, 876 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 877 throws com.liferay.portlet.expando.NoSuchValueException; 878 879 /** 880 * Returns the last expando value in the ordered set where classNameId = ? and classPK = ?. 881 * 882 * @param classNameId the class name ID 883 * @param classPK the class p k 884 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 885 * @return the last matching expando value, or <code>null</code> if a matching expando value could not be found 886 */ 887 public ExpandoValue fetchByC_C_Last(long classNameId, long classPK, 888 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 889 890 /** 891 * Returns the expando values before and after the current expando value in the ordered set where classNameId = ? and classPK = ?. 892 * 893 * @param valueId the primary key of the current expando value 894 * @param classNameId the class name ID 895 * @param classPK the class p k 896 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 897 * @return the previous, current, and next expando value 898 * @throws NoSuchValueException if a expando value with the primary key could not be found 899 */ 900 public ExpandoValue[] findByC_C_PrevAndNext(long valueId, long classNameId, 901 long classPK, 902 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 903 throws com.liferay.portlet.expando.NoSuchValueException; 904 905 /** 906 * Removes all the expando values where classNameId = ? and classPK = ? from the database. 907 * 908 * @param classNameId the class name ID 909 * @param classPK the class p k 910 */ 911 public void removeByC_C(long classNameId, long classPK); 912 913 /** 914 * Returns the number of expando values where classNameId = ? and classPK = ?. 915 * 916 * @param classNameId the class name ID 917 * @param classPK the class p k 918 * @return the number of matching expando values 919 */ 920 public int countByC_C(long classNameId, long classPK); 921 922 /** 923 * Returns the expando value where tableId = ? and columnId = ? and classPK = ? or throws a {@link NoSuchValueException} if it could not be found. 924 * 925 * @param tableId the table ID 926 * @param columnId the column ID 927 * @param classPK the class p k 928 * @return the matching expando value 929 * @throws NoSuchValueException if a matching expando value could not be found 930 */ 931 public ExpandoValue findByT_C_C(long tableId, long columnId, long classPK) 932 throws com.liferay.portlet.expando.NoSuchValueException; 933 934 /** 935 * Returns the expando value where tableId = ? and columnId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 936 * 937 * @param tableId the table ID 938 * @param columnId the column ID 939 * @param classPK the class p k 940 * @return the matching expando value, or <code>null</code> if a matching expando value could not be found 941 */ 942 public ExpandoValue fetchByT_C_C(long tableId, long columnId, long classPK); 943 944 /** 945 * Returns the expando value where tableId = ? and columnId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 946 * 947 * @param tableId the table ID 948 * @param columnId the column ID 949 * @param classPK the class p k 950 * @param retrieveFromCache whether to use the finder cache 951 * @return the matching expando value, or <code>null</code> if a matching expando value could not be found 952 */ 953 public ExpandoValue fetchByT_C_C(long tableId, long columnId, long classPK, 954 boolean retrieveFromCache); 955 956 /** 957 * Removes the expando value where tableId = ? and columnId = ? and classPK = ? from the database. 958 * 959 * @param tableId the table ID 960 * @param columnId the column ID 961 * @param classPK the class p k 962 * @return the expando value that was removed 963 */ 964 public ExpandoValue removeByT_C_C(long tableId, long columnId, long classPK) 965 throws com.liferay.portlet.expando.NoSuchValueException; 966 967 /** 968 * Returns the number of expando values where tableId = ? and columnId = ? and classPK = ?. 969 * 970 * @param tableId the table ID 971 * @param columnId the column ID 972 * @param classPK the class p k 973 * @return the number of matching expando values 974 */ 975 public int countByT_C_C(long tableId, long columnId, long classPK); 976 977 /** 978 * Returns all the expando values where tableId = ? and columnId = ? and data = ?. 979 * 980 * @param tableId the table ID 981 * @param columnId the column ID 982 * @param data the data 983 * @return the matching expando values 984 */ 985 public java.util.List<ExpandoValue> findByT_C_D(long tableId, 986 long columnId, java.lang.String data); 987 988 /** 989 * Returns a range of all the expando values where tableId = ? and columnId = ? and data = ?. 990 * 991 * <p> 992 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoValueModelImpl}. 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. 993 * </p> 994 * 995 * @param tableId the table ID 996 * @param columnId the column ID 997 * @param data the data 998 * @param start the lower bound of the range of expando values 999 * @param end the upper bound of the range of expando values (not inclusive) 1000 * @return the range of matching expando values 1001 */ 1002 public java.util.List<ExpandoValue> findByT_C_D(long tableId, 1003 long columnId, java.lang.String data, int start, int end); 1004 1005 /** 1006 * Returns an ordered range of all the expando values where tableId = ? and columnId = ? and data = ?. 1007 * 1008 * <p> 1009 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoValueModelImpl}. 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. 1010 * </p> 1011 * 1012 * @param tableId the table ID 1013 * @param columnId the column ID 1014 * @param data the data 1015 * @param start the lower bound of the range of expando values 1016 * @param end the upper bound of the range of expando values (not inclusive) 1017 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1018 * @return the ordered range of matching expando values 1019 */ 1020 public java.util.List<ExpandoValue> findByT_C_D(long tableId, 1021 long columnId, java.lang.String data, int start, int end, 1022 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 1023 1024 /** 1025 * Returns the first expando value in the ordered set where tableId = ? and columnId = ? and data = ?. 1026 * 1027 * @param tableId the table ID 1028 * @param columnId the column ID 1029 * @param data the data 1030 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1031 * @return the first matching expando value 1032 * @throws NoSuchValueException if a matching expando value could not be found 1033 */ 1034 public ExpandoValue findByT_C_D_First(long tableId, long columnId, 1035 java.lang.String data, 1036 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 1037 throws com.liferay.portlet.expando.NoSuchValueException; 1038 1039 /** 1040 * Returns the first expando value in the ordered set where tableId = ? and columnId = ? and data = ?. 1041 * 1042 * @param tableId the table ID 1043 * @param columnId the column ID 1044 * @param data the data 1045 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1046 * @return the first matching expando value, or <code>null</code> if a matching expando value could not be found 1047 */ 1048 public ExpandoValue fetchByT_C_D_First(long tableId, long columnId, 1049 java.lang.String data, 1050 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 1051 1052 /** 1053 * Returns the last expando value in the ordered set where tableId = ? and columnId = ? and data = ?. 1054 * 1055 * @param tableId the table ID 1056 * @param columnId the column ID 1057 * @param data the data 1058 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1059 * @return the last matching expando value 1060 * @throws NoSuchValueException if a matching expando value could not be found 1061 */ 1062 public ExpandoValue findByT_C_D_Last(long tableId, long columnId, 1063 java.lang.String data, 1064 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 1065 throws com.liferay.portlet.expando.NoSuchValueException; 1066 1067 /** 1068 * Returns the last expando value in the ordered set where tableId = ? and columnId = ? and data = ?. 1069 * 1070 * @param tableId the table ID 1071 * @param columnId the column ID 1072 * @param data the data 1073 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1074 * @return the last matching expando value, or <code>null</code> if a matching expando value could not be found 1075 */ 1076 public ExpandoValue fetchByT_C_D_Last(long tableId, long columnId, 1077 java.lang.String data, 1078 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 1079 1080 /** 1081 * Returns the expando values before and after the current expando value in the ordered set where tableId = ? and columnId = ? and data = ?. 1082 * 1083 * @param valueId the primary key of the current expando value 1084 * @param tableId the table ID 1085 * @param columnId the column ID 1086 * @param data the data 1087 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1088 * @return the previous, current, and next expando value 1089 * @throws NoSuchValueException if a expando value with the primary key could not be found 1090 */ 1091 public ExpandoValue[] findByT_C_D_PrevAndNext(long valueId, long tableId, 1092 long columnId, java.lang.String data, 1093 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator) 1094 throws com.liferay.portlet.expando.NoSuchValueException; 1095 1096 /** 1097 * Removes all the expando values where tableId = ? and columnId = ? and data = ? from the database. 1098 * 1099 * @param tableId the table ID 1100 * @param columnId the column ID 1101 * @param data the data 1102 */ 1103 public void removeByT_C_D(long tableId, long columnId, java.lang.String data); 1104 1105 /** 1106 * Returns the number of expando values where tableId = ? and columnId = ? and data = ?. 1107 * 1108 * @param tableId the table ID 1109 * @param columnId the column ID 1110 * @param data the data 1111 * @return the number of matching expando values 1112 */ 1113 public int countByT_C_D(long tableId, long columnId, java.lang.String data); 1114 1115 /** 1116 * Caches the expando value in the entity cache if it is enabled. 1117 * 1118 * @param expandoValue the expando value 1119 */ 1120 public void cacheResult(ExpandoValue expandoValue); 1121 1122 /** 1123 * Caches the expando values in the entity cache if it is enabled. 1124 * 1125 * @param expandoValues the expando values 1126 */ 1127 public void cacheResult(java.util.List<ExpandoValue> expandoValues); 1128 1129 /** 1130 * Creates a new expando value with the primary key. Does not add the expando value to the database. 1131 * 1132 * @param valueId the primary key for the new expando value 1133 * @return the new expando value 1134 */ 1135 public ExpandoValue create(long valueId); 1136 1137 /** 1138 * Removes the expando value with the primary key from the database. Also notifies the appropriate model listeners. 1139 * 1140 * @param valueId the primary key of the expando value 1141 * @return the expando value that was removed 1142 * @throws NoSuchValueException if a expando value with the primary key could not be found 1143 */ 1144 public ExpandoValue remove(long valueId) 1145 throws com.liferay.portlet.expando.NoSuchValueException; 1146 1147 public ExpandoValue updateImpl(ExpandoValue expandoValue); 1148 1149 /** 1150 * Returns the expando value with the primary key or throws a {@link NoSuchValueException} if it could not be found. 1151 * 1152 * @param valueId the primary key of the expando value 1153 * @return the expando value 1154 * @throws NoSuchValueException if a expando value with the primary key could not be found 1155 */ 1156 public ExpandoValue findByPrimaryKey(long valueId) 1157 throws com.liferay.portlet.expando.NoSuchValueException; 1158 1159 /** 1160 * Returns the expando value with the primary key or returns <code>null</code> if it could not be found. 1161 * 1162 * @param valueId the primary key of the expando value 1163 * @return the expando value, or <code>null</code> if a expando value with the primary key could not be found 1164 */ 1165 public ExpandoValue fetchByPrimaryKey(long valueId); 1166 1167 @Override 1168 public java.util.Map<java.io.Serializable, ExpandoValue> fetchByPrimaryKeys( 1169 java.util.Set<java.io.Serializable> primaryKeys); 1170 1171 /** 1172 * Returns all the expando values. 1173 * 1174 * @return the expando values 1175 */ 1176 public java.util.List<ExpandoValue> findAll(); 1177 1178 /** 1179 * Returns a range of all the expando values. 1180 * 1181 * <p> 1182 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoValueModelImpl}. 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. 1183 * </p> 1184 * 1185 * @param start the lower bound of the range of expando values 1186 * @param end the upper bound of the range of expando values (not inclusive) 1187 * @return the range of expando values 1188 */ 1189 public java.util.List<ExpandoValue> findAll(int start, int end); 1190 1191 /** 1192 * Returns an ordered range of all the expando values. 1193 * 1194 * <p> 1195 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoValueModelImpl}. 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. 1196 * </p> 1197 * 1198 * @param start the lower bound of the range of expando values 1199 * @param end the upper bound of the range of expando values (not inclusive) 1200 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1201 * @return the ordered range of expando values 1202 */ 1203 public java.util.List<ExpandoValue> findAll(int start, int end, 1204 com.liferay.portal.kernel.util.OrderByComparator<ExpandoValue> orderByComparator); 1205 1206 /** 1207 * Removes all the expando values from the database. 1208 */ 1209 public void removeAll(); 1210 1211 /** 1212 * Returns the number of expando values. 1213 * 1214 * @return the number of expando values 1215 */ 1216 public int countAll(); 1217 }