001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.expando.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.expando.model.ExpandoColumn; 020 021 /** 022 * The persistence interface for the expando column 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 ExpandoColumnPersistenceImpl 030 * @see ExpandoColumnUtil 031 * @generated 032 */ 033 public interface ExpandoColumnPersistence extends BasePersistence<ExpandoColumn> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link ExpandoColumnUtil} to access the expando column persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Returns all the expando columns where tableId = ?. 042 * 043 * @param tableId the table ID 044 * @return the matching expando columns 045 * @throws SystemException if a system exception occurred 046 */ 047 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId( 048 long tableId) 049 throws com.liferay.portal.kernel.exception.SystemException; 050 051 /** 052 * Returns a range of all the expando columns 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 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.expando.model.impl.ExpandoColumnModelImpl}. 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 columns 060 * @param end the upper bound of the range of expando columns (not inclusive) 061 * @return the range of matching expando columns 062 * @throws SystemException if a system exception occurred 063 */ 064 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId( 065 long tableId, int start, int end) 066 throws com.liferay.portal.kernel.exception.SystemException; 067 068 /** 069 * Returns an ordered range of all the expando columns where tableId = ?. 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.expando.model.impl.ExpandoColumnModelImpl}. 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 tableId the table ID 076 * @param start the lower bound of the range of expando columns 077 * @param end the upper bound of the range of expando columns (not inclusive) 078 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 079 * @return the ordered range of matching expando columns 080 * @throws SystemException if a system exception occurred 081 */ 082 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId( 083 long tableId, 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 expando column in the ordered set where tableId = ?. 089 * 090 * @param tableId the table ID 091 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 092 * @return the first matching expando column 093 * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found 094 * @throws SystemException if a system exception occurred 095 */ 096 public com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First( 097 long tableId, 098 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 099 throws com.liferay.portal.kernel.exception.SystemException, 100 com.liferay.portlet.expando.NoSuchColumnException; 101 102 /** 103 * Returns the first expando column in the ordered set where tableId = ?. 104 * 105 * @param tableId the table ID 106 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 107 * @return the first matching expando column, or <code>null</code> if a matching expando column could not be found 108 * @throws SystemException if a system exception occurred 109 */ 110 public com.liferay.portlet.expando.model.ExpandoColumn fetchByTableId_First( 111 long tableId, 112 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 113 throws com.liferay.portal.kernel.exception.SystemException; 114 115 /** 116 * Returns the last expando column in the ordered set where tableId = ?. 117 * 118 * @param tableId the table ID 119 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 120 * @return the last matching expando column 121 * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found 122 * @throws SystemException if a system exception occurred 123 */ 124 public com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last( 125 long tableId, 126 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 127 throws com.liferay.portal.kernel.exception.SystemException, 128 com.liferay.portlet.expando.NoSuchColumnException; 129 130 /** 131 * Returns the last expando column in the ordered set where tableId = ?. 132 * 133 * @param tableId the table ID 134 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 135 * @return the last matching expando column, or <code>null</code> if a matching expando column could not be found 136 * @throws SystemException if a system exception occurred 137 */ 138 public com.liferay.portlet.expando.model.ExpandoColumn fetchByTableId_Last( 139 long tableId, 140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 141 throws com.liferay.portal.kernel.exception.SystemException; 142 143 /** 144 * Returns the expando columns before and after the current expando column in the ordered set where tableId = ?. 145 * 146 * @param columnId the primary key of the current expando column 147 * @param tableId the table ID 148 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 149 * @return the previous, current, and next expando column 150 * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext( 154 long columnId, long tableId, 155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 156 throws com.liferay.portal.kernel.exception.SystemException, 157 com.liferay.portlet.expando.NoSuchColumnException; 158 159 /** 160 * Returns all the expando columns that the user has permission to view where tableId = ?. 161 * 162 * @param tableId the table ID 163 * @return the matching expando columns that the user has permission to view 164 * @throws SystemException if a system exception occurred 165 */ 166 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId( 167 long tableId) 168 throws com.liferay.portal.kernel.exception.SystemException; 169 170 /** 171 * Returns a range of all the expando columns that the user has permission to view where tableId = ?. 172 * 173 * <p> 174 * 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.expando.model.impl.ExpandoColumnModelImpl}. 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. 175 * </p> 176 * 177 * @param tableId the table ID 178 * @param start the lower bound of the range of expando columns 179 * @param end the upper bound of the range of expando columns (not inclusive) 180 * @return the range of matching expando columns that the user has permission to view 181 * @throws SystemException if a system exception occurred 182 */ 183 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId( 184 long tableId, int start, int end) 185 throws com.liferay.portal.kernel.exception.SystemException; 186 187 /** 188 * Returns an ordered range of all the expando columns that the user has permissions to view where tableId = ?. 189 * 190 * <p> 191 * 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.expando.model.impl.ExpandoColumnModelImpl}. 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. 192 * </p> 193 * 194 * @param tableId the table ID 195 * @param start the lower bound of the range of expando columns 196 * @param end the upper bound of the range of expando columns (not inclusive) 197 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 198 * @return the ordered range of matching expando columns that the user has permission to view 199 * @throws SystemException if a system exception occurred 200 */ 201 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId( 202 long tableId, int start, int end, 203 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 204 throws com.liferay.portal.kernel.exception.SystemException; 205 206 /** 207 * Returns the expando columns before and after the current expando column in the ordered set of expando columns that the user has permission to view where tableId = ?. 208 * 209 * @param columnId the primary key of the current expando column 210 * @param tableId the table ID 211 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 212 * @return the previous, current, and next expando column 213 * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found 214 * @throws SystemException if a system exception occurred 215 */ 216 public com.liferay.portlet.expando.model.ExpandoColumn[] filterFindByTableId_PrevAndNext( 217 long columnId, long tableId, 218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 219 throws com.liferay.portal.kernel.exception.SystemException, 220 com.liferay.portlet.expando.NoSuchColumnException; 221 222 /** 223 * Removes all the expando columns where tableId = ? from the database. 224 * 225 * @param tableId the table ID 226 * @throws SystemException if a system exception occurred 227 */ 228 public void removeByTableId(long tableId) 229 throws com.liferay.portal.kernel.exception.SystemException; 230 231 /** 232 * Returns the number of expando columns where tableId = ?. 233 * 234 * @param tableId the table ID 235 * @return the number of matching expando columns 236 * @throws SystemException if a system exception occurred 237 */ 238 public int countByTableId(long tableId) 239 throws com.liferay.portal.kernel.exception.SystemException; 240 241 /** 242 * Returns the number of expando columns that the user has permission to view where tableId = ?. 243 * 244 * @param tableId the table ID 245 * @return the number of matching expando columns that the user has permission to view 246 * @throws SystemException if a system exception occurred 247 */ 248 public int filterCountByTableId(long tableId) 249 throws com.liferay.portal.kernel.exception.SystemException; 250 251 /** 252 * Returns all the expando columns where tableId = ? and name = any ?. 253 * 254 * <p> 255 * 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.expando.model.impl.ExpandoColumnModelImpl}. 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. 256 * </p> 257 * 258 * @param tableId the table ID 259 * @param names the names 260 * @return the matching expando columns 261 * @throws SystemException if a system exception occurred 262 */ 263 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N( 264 long tableId, java.lang.String[] names) 265 throws com.liferay.portal.kernel.exception.SystemException; 266 267 /** 268 * Returns a range of all the expando columns where tableId = ? and name = any ?. 269 * 270 * <p> 271 * 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.expando.model.impl.ExpandoColumnModelImpl}. 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. 272 * </p> 273 * 274 * @param tableId the table ID 275 * @param names the names 276 * @param start the lower bound of the range of expando columns 277 * @param end the upper bound of the range of expando columns (not inclusive) 278 * @return the range of matching expando columns 279 * @throws SystemException if a system exception occurred 280 */ 281 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N( 282 long tableId, java.lang.String[] names, int start, int end) 283 throws com.liferay.portal.kernel.exception.SystemException; 284 285 /** 286 * Returns an ordered range of all the expando columns where tableId = ? and name = any ?. 287 * 288 * <p> 289 * 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.expando.model.impl.ExpandoColumnModelImpl}. 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. 290 * </p> 291 * 292 * @param tableId the table ID 293 * @param names the names 294 * @param start the lower bound of the range of expando columns 295 * @param end the upper bound of the range of expando columns (not inclusive) 296 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 297 * @return the ordered range of matching expando columns 298 * @throws SystemException if a system exception occurred 299 */ 300 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N( 301 long tableId, java.lang.String[] names, int start, int end, 302 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 303 throws com.liferay.portal.kernel.exception.SystemException; 304 305 /** 306 * Returns the expando column where tableId = ? and name = ? or throws a {@link com.liferay.portlet.expando.NoSuchColumnException} if it could not be found. 307 * 308 * @param tableId the table ID 309 * @param name the name 310 * @return the matching expando column 311 * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found 312 * @throws SystemException if a system exception occurred 313 */ 314 public com.liferay.portlet.expando.model.ExpandoColumn findByT_N( 315 long tableId, java.lang.String name) 316 throws com.liferay.portal.kernel.exception.SystemException, 317 com.liferay.portlet.expando.NoSuchColumnException; 318 319 /** 320 * Returns the expando column where tableId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 321 * 322 * @param tableId the table ID 323 * @param name the name 324 * @return the matching expando column, or <code>null</code> if a matching expando column could not be found 325 * @throws SystemException if a system exception occurred 326 */ 327 public com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N( 328 long tableId, java.lang.String name) 329 throws com.liferay.portal.kernel.exception.SystemException; 330 331 /** 332 * Returns the expando column where tableId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 333 * 334 * @param tableId the table ID 335 * @param name the name 336 * @param retrieveFromCache whether to use the finder cache 337 * @return the matching expando column, or <code>null</code> if a matching expando column could not be found 338 * @throws SystemException if a system exception occurred 339 */ 340 public com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N( 341 long tableId, java.lang.String name, boolean retrieveFromCache) 342 throws com.liferay.portal.kernel.exception.SystemException; 343 344 /** 345 * Removes the expando column where tableId = ? and name = ? from the database. 346 * 347 * @param tableId the table ID 348 * @param name the name 349 * @return the expando column that was removed 350 * @throws SystemException if a system exception occurred 351 */ 352 public com.liferay.portlet.expando.model.ExpandoColumn removeByT_N( 353 long tableId, java.lang.String name) 354 throws com.liferay.portal.kernel.exception.SystemException, 355 com.liferay.portlet.expando.NoSuchColumnException; 356 357 /** 358 * Returns the number of expando columns where tableId = ? and name = ?. 359 * 360 * @param tableId the table ID 361 * @param name the name 362 * @return the number of matching expando columns 363 * @throws SystemException if a system exception occurred 364 */ 365 public int countByT_N(long tableId, java.lang.String name) 366 throws com.liferay.portal.kernel.exception.SystemException; 367 368 /** 369 * Returns the number of expando columns where tableId = ? and name = any ?. 370 * 371 * @param tableId the table ID 372 * @param names the names 373 * @return the number of matching expando columns 374 * @throws SystemException if a system exception occurred 375 */ 376 public int countByT_N(long tableId, java.lang.String[] names) 377 throws com.liferay.portal.kernel.exception.SystemException; 378 379 /** 380 * Returns the number of expando columns that the user has permission to view where tableId = ? and name = ?. 381 * 382 * @param tableId the table ID 383 * @param name the name 384 * @return the number of matching expando columns that the user has permission to view 385 * @throws SystemException if a system exception occurred 386 */ 387 public int filterCountByT_N(long tableId, java.lang.String name) 388 throws com.liferay.portal.kernel.exception.SystemException; 389 390 /** 391 * Returns the number of expando columns that the user has permission to view where tableId = ? and name = any ?. 392 * 393 * @param tableId the table ID 394 * @param names the names 395 * @return the number of matching expando columns that the user has permission to view 396 * @throws SystemException if a system exception occurred 397 */ 398 public int filterCountByT_N(long tableId, java.lang.String[] names) 399 throws com.liferay.portal.kernel.exception.SystemException; 400 401 /** 402 * Caches the expando column in the entity cache if it is enabled. 403 * 404 * @param expandoColumn the expando column 405 */ 406 public void cacheResult( 407 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn); 408 409 /** 410 * Caches the expando columns in the entity cache if it is enabled. 411 * 412 * @param expandoColumns the expando columns 413 */ 414 public void cacheResult( 415 java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> expandoColumns); 416 417 /** 418 * Creates a new expando column with the primary key. Does not add the expando column to the database. 419 * 420 * @param columnId the primary key for the new expando column 421 * @return the new expando column 422 */ 423 public com.liferay.portlet.expando.model.ExpandoColumn create(long columnId); 424 425 /** 426 * Removes the expando column with the primary key from the database. Also notifies the appropriate model listeners. 427 * 428 * @param columnId the primary key of the expando column 429 * @return the expando column that was removed 430 * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found 431 * @throws SystemException if a system exception occurred 432 */ 433 public com.liferay.portlet.expando.model.ExpandoColumn remove(long columnId) 434 throws com.liferay.portal.kernel.exception.SystemException, 435 com.liferay.portlet.expando.NoSuchColumnException; 436 437 public com.liferay.portlet.expando.model.ExpandoColumn updateImpl( 438 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn) 439 throws com.liferay.portal.kernel.exception.SystemException; 440 441 /** 442 * Returns the expando column with the primary key or throws a {@link com.liferay.portlet.expando.NoSuchColumnException} if it could not be found. 443 * 444 * @param columnId the primary key of the expando column 445 * @return the expando column 446 * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found 447 * @throws SystemException if a system exception occurred 448 */ 449 public com.liferay.portlet.expando.model.ExpandoColumn findByPrimaryKey( 450 long columnId) 451 throws com.liferay.portal.kernel.exception.SystemException, 452 com.liferay.portlet.expando.NoSuchColumnException; 453 454 /** 455 * Returns the expando column with the primary key or returns <code>null</code> if it could not be found. 456 * 457 * @param columnId the primary key of the expando column 458 * @return the expando column, or <code>null</code> if a expando column with the primary key could not be found 459 * @throws SystemException if a system exception occurred 460 */ 461 public com.liferay.portlet.expando.model.ExpandoColumn fetchByPrimaryKey( 462 long columnId) 463 throws com.liferay.portal.kernel.exception.SystemException; 464 465 /** 466 * Returns all the expando columns. 467 * 468 * @return the expando columns 469 * @throws SystemException if a system exception occurred 470 */ 471 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll() 472 throws com.liferay.portal.kernel.exception.SystemException; 473 474 /** 475 * Returns a range of all the expando columns. 476 * 477 * <p> 478 * 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.expando.model.impl.ExpandoColumnModelImpl}. 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. 479 * </p> 480 * 481 * @param start the lower bound of the range of expando columns 482 * @param end the upper bound of the range of expando columns (not inclusive) 483 * @return the range of expando columns 484 * @throws SystemException if a system exception occurred 485 */ 486 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll( 487 int start, int end) 488 throws com.liferay.portal.kernel.exception.SystemException; 489 490 /** 491 * Returns an ordered range of all the expando columns. 492 * 493 * <p> 494 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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.expando.model.impl.ExpandoColumnModelImpl}. 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. 495 * </p> 496 * 497 * @param start the lower bound of the range of expando columns 498 * @param end the upper bound of the range of expando columns (not inclusive) 499 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 500 * @return the ordered range of expando columns 501 * @throws SystemException if a system exception occurred 502 */ 503 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll( 504 int start, int end, 505 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 506 throws com.liferay.portal.kernel.exception.SystemException; 507 508 /** 509 * Removes all the expando columns from the database. 510 * 511 * @throws SystemException if a system exception occurred 512 */ 513 public void removeAll() 514 throws com.liferay.portal.kernel.exception.SystemException; 515 516 /** 517 * Returns the number of expando columns. 518 * 519 * @return the number of expando columns 520 * @throws SystemException if a system exception occurred 521 */ 522 public int countAll() 523 throws com.liferay.portal.kernel.exception.SystemException; 524 }