001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.expando.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.expando.model.ExpandoColumn; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the expando column service. This utility wraps {@link ExpandoColumnPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see ExpandoColumnPersistence 037 * @see ExpandoColumnPersistenceImpl 038 * @generated 039 */ 040 public class ExpandoColumnUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(ExpandoColumn expandoColumn) { 058 getPersistence().clearCache(expandoColumn); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<ExpandoColumn> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<ExpandoColumn> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<ExpandoColumn> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 099 */ 100 public static ExpandoColumn update(ExpandoColumn expandoColumn) 101 throws SystemException { 102 return getPersistence().update(expandoColumn); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static ExpandoColumn update(ExpandoColumn expandoColumn, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(expandoColumn, serviceContext); 111 } 112 113 /** 114 * Returns all the expando columns where tableId = ?. 115 * 116 * @param tableId the table ID 117 * @return the matching expando columns 118 * @throws SystemException if a system exception occurred 119 */ 120 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId( 121 long tableId) 122 throws com.liferay.portal.kernel.exception.SystemException { 123 return getPersistence().findByTableId(tableId); 124 } 125 126 /** 127 * Returns a range of all the expando columns where tableId = ?. 128 * 129 * <p> 130 * 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. 131 * </p> 132 * 133 * @param tableId the table ID 134 * @param start the lower bound of the range of expando columns 135 * @param end the upper bound of the range of expando columns (not inclusive) 136 * @return the range of matching expando columns 137 * @throws SystemException if a system exception occurred 138 */ 139 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId( 140 long tableId, int start, int end) 141 throws com.liferay.portal.kernel.exception.SystemException { 142 return getPersistence().findByTableId(tableId, start, end); 143 } 144 145 /** 146 * Returns an ordered range of all the expando columns where tableId = ?. 147 * 148 * <p> 149 * 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. 150 * </p> 151 * 152 * @param tableId the table ID 153 * @param start the lower bound of the range of expando columns 154 * @param end the upper bound of the range of expando columns (not inclusive) 155 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 156 * @return the ordered range of matching expando columns 157 * @throws SystemException if a system exception occurred 158 */ 159 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId( 160 long tableId, int start, int end, 161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence() 164 .findByTableId(tableId, start, end, orderByComparator); 165 } 166 167 /** 168 * Returns the first expando column in the ordered set where tableId = ?. 169 * 170 * @param tableId the table ID 171 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 172 * @return the first matching expando column 173 * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found 174 * @throws SystemException if a system exception occurred 175 */ 176 public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First( 177 long tableId, 178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 179 throws com.liferay.portal.kernel.exception.SystemException, 180 com.liferay.portlet.expando.NoSuchColumnException { 181 return getPersistence().findByTableId_First(tableId, orderByComparator); 182 } 183 184 /** 185 * Returns the first expando column in the ordered set where tableId = ?. 186 * 187 * @param tableId the table ID 188 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 189 * @return the first matching expando column, or <code>null</code> if a matching expando column could not be found 190 * @throws SystemException if a system exception occurred 191 */ 192 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByTableId_First( 193 long tableId, 194 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 195 throws com.liferay.portal.kernel.exception.SystemException { 196 return getPersistence().fetchByTableId_First(tableId, orderByComparator); 197 } 198 199 /** 200 * Returns the last expando column in the ordered set where tableId = ?. 201 * 202 * @param tableId the table ID 203 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 204 * @return the last matching expando column 205 * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found 206 * @throws SystemException if a system exception occurred 207 */ 208 public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last( 209 long tableId, 210 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 211 throws com.liferay.portal.kernel.exception.SystemException, 212 com.liferay.portlet.expando.NoSuchColumnException { 213 return getPersistence().findByTableId_Last(tableId, orderByComparator); 214 } 215 216 /** 217 * Returns the last expando column in the ordered set where tableId = ?. 218 * 219 * @param tableId the table ID 220 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 221 * @return the last matching expando column, or <code>null</code> if a matching expando column could not be found 222 * @throws SystemException if a system exception occurred 223 */ 224 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByTableId_Last( 225 long tableId, 226 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 227 throws com.liferay.portal.kernel.exception.SystemException { 228 return getPersistence().fetchByTableId_Last(tableId, orderByComparator); 229 } 230 231 /** 232 * Returns the expando columns before and after the current expando column in the ordered set where tableId = ?. 233 * 234 * @param columnId the primary key of the current expando column 235 * @param tableId the table ID 236 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 237 * @return the previous, current, and next expando column 238 * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found 239 * @throws SystemException if a system exception occurred 240 */ 241 public static com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext( 242 long columnId, long tableId, 243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 244 throws com.liferay.portal.kernel.exception.SystemException, 245 com.liferay.portlet.expando.NoSuchColumnException { 246 return getPersistence() 247 .findByTableId_PrevAndNext(columnId, tableId, 248 orderByComparator); 249 } 250 251 /** 252 * Returns all the expando columns that the user has permission to view where tableId = ?. 253 * 254 * @param tableId the table ID 255 * @return the matching expando columns that the user has permission to view 256 * @throws SystemException if a system exception occurred 257 */ 258 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId( 259 long tableId) 260 throws com.liferay.portal.kernel.exception.SystemException { 261 return getPersistence().filterFindByTableId(tableId); 262 } 263 264 /** 265 * Returns a range of all the expando columns that the user has permission to view where tableId = ?. 266 * 267 * <p> 268 * 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. 269 * </p> 270 * 271 * @param tableId the table ID 272 * @param start the lower bound of the range of expando columns 273 * @param end the upper bound of the range of expando columns (not inclusive) 274 * @return the range of matching expando columns that the user has permission to view 275 * @throws SystemException if a system exception occurred 276 */ 277 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId( 278 long tableId, int start, int end) 279 throws com.liferay.portal.kernel.exception.SystemException { 280 return getPersistence().filterFindByTableId(tableId, start, end); 281 } 282 283 /** 284 * Returns an ordered range of all the expando columns that the user has permissions to view where tableId = ?. 285 * 286 * <p> 287 * 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. 288 * </p> 289 * 290 * @param tableId the table ID 291 * @param start the lower bound of the range of expando columns 292 * @param end the upper bound of the range of expando columns (not inclusive) 293 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 294 * @return the ordered range of matching expando columns that the user has permission to view 295 * @throws SystemException if a system exception occurred 296 */ 297 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId( 298 long tableId, int start, int end, 299 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 300 throws com.liferay.portal.kernel.exception.SystemException { 301 return getPersistence() 302 .filterFindByTableId(tableId, start, end, orderByComparator); 303 } 304 305 /** 306 * 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 = ?. 307 * 308 * @param columnId the primary key of the current expando column 309 * @param tableId the table ID 310 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 311 * @return the previous, current, and next expando column 312 * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found 313 * @throws SystemException if a system exception occurred 314 */ 315 public static com.liferay.portlet.expando.model.ExpandoColumn[] filterFindByTableId_PrevAndNext( 316 long columnId, long tableId, 317 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 318 throws com.liferay.portal.kernel.exception.SystemException, 319 com.liferay.portlet.expando.NoSuchColumnException { 320 return getPersistence() 321 .filterFindByTableId_PrevAndNext(columnId, tableId, 322 orderByComparator); 323 } 324 325 /** 326 * Removes all the expando columns where tableId = ? from the database. 327 * 328 * @param tableId the table ID 329 * @throws SystemException if a system exception occurred 330 */ 331 public static void removeByTableId(long tableId) 332 throws com.liferay.portal.kernel.exception.SystemException { 333 getPersistence().removeByTableId(tableId); 334 } 335 336 /** 337 * Returns the number of expando columns where tableId = ?. 338 * 339 * @param tableId the table ID 340 * @return the number of matching expando columns 341 * @throws SystemException if a system exception occurred 342 */ 343 public static int countByTableId(long tableId) 344 throws com.liferay.portal.kernel.exception.SystemException { 345 return getPersistence().countByTableId(tableId); 346 } 347 348 /** 349 * Returns the number of expando columns that the user has permission to view where tableId = ?. 350 * 351 * @param tableId the table ID 352 * @return the number of matching expando columns that the user has permission to view 353 * @throws SystemException if a system exception occurred 354 */ 355 public static int filterCountByTableId(long tableId) 356 throws com.liferay.portal.kernel.exception.SystemException { 357 return getPersistence().filterCountByTableId(tableId); 358 } 359 360 /** 361 * Returns all the expando columns where tableId = ? and name = any ?. 362 * 363 * <p> 364 * 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. 365 * </p> 366 * 367 * @param tableId the table ID 368 * @param names the names 369 * @return the matching expando columns 370 * @throws SystemException if a system exception occurred 371 */ 372 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N( 373 long tableId, java.lang.String[] names) 374 throws com.liferay.portal.kernel.exception.SystemException { 375 return getPersistence().findByT_N(tableId, names); 376 } 377 378 /** 379 * Returns a range of all the expando columns where tableId = ? and name = any ?. 380 * 381 * <p> 382 * 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. 383 * </p> 384 * 385 * @param tableId the table ID 386 * @param names the names 387 * @param start the lower bound of the range of expando columns 388 * @param end the upper bound of the range of expando columns (not inclusive) 389 * @return the range of matching expando columns 390 * @throws SystemException if a system exception occurred 391 */ 392 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N( 393 long tableId, java.lang.String[] names, int start, int end) 394 throws com.liferay.portal.kernel.exception.SystemException { 395 return getPersistence().findByT_N(tableId, names, start, end); 396 } 397 398 /** 399 * Returns an ordered range of all the expando columns where tableId = ? and name = any ?. 400 * 401 * <p> 402 * 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. 403 * </p> 404 * 405 * @param tableId the table ID 406 * @param names the names 407 * @param start the lower bound of the range of expando columns 408 * @param end the upper bound of the range of expando columns (not inclusive) 409 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 410 * @return the ordered range of matching expando columns 411 * @throws SystemException if a system exception occurred 412 */ 413 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N( 414 long tableId, java.lang.String[] names, int start, int end, 415 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 416 throws com.liferay.portal.kernel.exception.SystemException { 417 return getPersistence() 418 .findByT_N(tableId, names, start, end, orderByComparator); 419 } 420 421 /** 422 * Returns the expando column where tableId = ? and name = ? or throws a {@link com.liferay.portlet.expando.NoSuchColumnException} if it could not be found. 423 * 424 * @param tableId the table ID 425 * @param name the name 426 * @return the matching expando column 427 * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found 428 * @throws SystemException if a system exception occurred 429 */ 430 public static com.liferay.portlet.expando.model.ExpandoColumn findByT_N( 431 long tableId, java.lang.String name) 432 throws com.liferay.portal.kernel.exception.SystemException, 433 com.liferay.portlet.expando.NoSuchColumnException { 434 return getPersistence().findByT_N(tableId, name); 435 } 436 437 /** 438 * Returns the expando column where tableId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 439 * 440 * @param tableId the table ID 441 * @param name the name 442 * @return the matching expando column, or <code>null</code> if a matching expando column could not be found 443 * @throws SystemException if a system exception occurred 444 */ 445 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N( 446 long tableId, java.lang.String name) 447 throws com.liferay.portal.kernel.exception.SystemException { 448 return getPersistence().fetchByT_N(tableId, name); 449 } 450 451 /** 452 * Returns the expando column where tableId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 453 * 454 * @param tableId the table ID 455 * @param name the name 456 * @param retrieveFromCache whether to use the finder cache 457 * @return the matching expando column, or <code>null</code> if a matching expando column could not be found 458 * @throws SystemException if a system exception occurred 459 */ 460 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N( 461 long tableId, java.lang.String name, boolean retrieveFromCache) 462 throws com.liferay.portal.kernel.exception.SystemException { 463 return getPersistence().fetchByT_N(tableId, name, retrieveFromCache); 464 } 465 466 /** 467 * Removes the expando column where tableId = ? and name = ? from the database. 468 * 469 * @param tableId the table ID 470 * @param name the name 471 * @return the expando column that was removed 472 * @throws SystemException if a system exception occurred 473 */ 474 public static com.liferay.portlet.expando.model.ExpandoColumn removeByT_N( 475 long tableId, java.lang.String name) 476 throws com.liferay.portal.kernel.exception.SystemException, 477 com.liferay.portlet.expando.NoSuchColumnException { 478 return getPersistence().removeByT_N(tableId, name); 479 } 480 481 /** 482 * Returns the number of expando columns where tableId = ? and name = ?. 483 * 484 * @param tableId the table ID 485 * @param name the name 486 * @return the number of matching expando columns 487 * @throws SystemException if a system exception occurred 488 */ 489 public static int countByT_N(long tableId, java.lang.String name) 490 throws com.liferay.portal.kernel.exception.SystemException { 491 return getPersistence().countByT_N(tableId, name); 492 } 493 494 /** 495 * Returns the number of expando columns where tableId = ? and name = any ?. 496 * 497 * @param tableId the table ID 498 * @param names the names 499 * @return the number of matching expando columns 500 * @throws SystemException if a system exception occurred 501 */ 502 public static int countByT_N(long tableId, java.lang.String[] names) 503 throws com.liferay.portal.kernel.exception.SystemException { 504 return getPersistence().countByT_N(tableId, names); 505 } 506 507 /** 508 * Returns the number of expando columns that the user has permission to view where tableId = ? and name = ?. 509 * 510 * @param tableId the table ID 511 * @param name the name 512 * @return the number of matching expando columns that the user has permission to view 513 * @throws SystemException if a system exception occurred 514 */ 515 public static int filterCountByT_N(long tableId, java.lang.String name) 516 throws com.liferay.portal.kernel.exception.SystemException { 517 return getPersistence().filterCountByT_N(tableId, name); 518 } 519 520 /** 521 * Returns the number of expando columns that the user has permission to view where tableId = ? and name = any ?. 522 * 523 * @param tableId the table ID 524 * @param names the names 525 * @return the number of matching expando columns that the user has permission to view 526 * @throws SystemException if a system exception occurred 527 */ 528 public static int filterCountByT_N(long tableId, java.lang.String[] names) 529 throws com.liferay.portal.kernel.exception.SystemException { 530 return getPersistence().filterCountByT_N(tableId, names); 531 } 532 533 /** 534 * Caches the expando column in the entity cache if it is enabled. 535 * 536 * @param expandoColumn the expando column 537 */ 538 public static void cacheResult( 539 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn) { 540 getPersistence().cacheResult(expandoColumn); 541 } 542 543 /** 544 * Caches the expando columns in the entity cache if it is enabled. 545 * 546 * @param expandoColumns the expando columns 547 */ 548 public static void cacheResult( 549 java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> expandoColumns) { 550 getPersistence().cacheResult(expandoColumns); 551 } 552 553 /** 554 * Creates a new expando column with the primary key. Does not add the expando column to the database. 555 * 556 * @param columnId the primary key for the new expando column 557 * @return the new expando column 558 */ 559 public static com.liferay.portlet.expando.model.ExpandoColumn create( 560 long columnId) { 561 return getPersistence().create(columnId); 562 } 563 564 /** 565 * Removes the expando column with the primary key from the database. Also notifies the appropriate model listeners. 566 * 567 * @param columnId the primary key of the expando column 568 * @return the expando column that was removed 569 * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found 570 * @throws SystemException if a system exception occurred 571 */ 572 public static com.liferay.portlet.expando.model.ExpandoColumn remove( 573 long columnId) 574 throws com.liferay.portal.kernel.exception.SystemException, 575 com.liferay.portlet.expando.NoSuchColumnException { 576 return getPersistence().remove(columnId); 577 } 578 579 public static com.liferay.portlet.expando.model.ExpandoColumn updateImpl( 580 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn) 581 throws com.liferay.portal.kernel.exception.SystemException { 582 return getPersistence().updateImpl(expandoColumn); 583 } 584 585 /** 586 * Returns the expando column with the primary key or throws a {@link com.liferay.portlet.expando.NoSuchColumnException} if it could not be found. 587 * 588 * @param columnId the primary key of the expando column 589 * @return the expando column 590 * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found 591 * @throws SystemException if a system exception occurred 592 */ 593 public static com.liferay.portlet.expando.model.ExpandoColumn findByPrimaryKey( 594 long columnId) 595 throws com.liferay.portal.kernel.exception.SystemException, 596 com.liferay.portlet.expando.NoSuchColumnException { 597 return getPersistence().findByPrimaryKey(columnId); 598 } 599 600 /** 601 * Returns the expando column with the primary key or returns <code>null</code> if it could not be found. 602 * 603 * @param columnId the primary key of the expando column 604 * @return the expando column, or <code>null</code> if a expando column with the primary key could not be found 605 * @throws SystemException if a system exception occurred 606 */ 607 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByPrimaryKey( 608 long columnId) 609 throws com.liferay.portal.kernel.exception.SystemException { 610 return getPersistence().fetchByPrimaryKey(columnId); 611 } 612 613 /** 614 * Returns all the expando columns. 615 * 616 * @return the expando columns 617 * @throws SystemException if a system exception occurred 618 */ 619 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll() 620 throws com.liferay.portal.kernel.exception.SystemException { 621 return getPersistence().findAll(); 622 } 623 624 /** 625 * Returns a range of all the expando columns. 626 * 627 * <p> 628 * 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. 629 * </p> 630 * 631 * @param start the lower bound of the range of expando columns 632 * @param end the upper bound of the range of expando columns (not inclusive) 633 * @return the range of expando columns 634 * @throws SystemException if a system exception occurred 635 */ 636 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll( 637 int start, int end) 638 throws com.liferay.portal.kernel.exception.SystemException { 639 return getPersistence().findAll(start, end); 640 } 641 642 /** 643 * Returns an ordered range of all the expando columns. 644 * 645 * <p> 646 * 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. 647 * </p> 648 * 649 * @param start the lower bound of the range of expando columns 650 * @param end the upper bound of the range of expando columns (not inclusive) 651 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 652 * @return the ordered range of expando columns 653 * @throws SystemException if a system exception occurred 654 */ 655 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll( 656 int start, int end, 657 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 658 throws com.liferay.portal.kernel.exception.SystemException { 659 return getPersistence().findAll(start, end, orderByComparator); 660 } 661 662 /** 663 * Removes all the expando columns from the database. 664 * 665 * @throws SystemException if a system exception occurred 666 */ 667 public static void removeAll() 668 throws com.liferay.portal.kernel.exception.SystemException { 669 getPersistence().removeAll(); 670 } 671 672 /** 673 * Returns the number of expando columns. 674 * 675 * @return the number of expando columns 676 * @throws SystemException if a system exception occurred 677 */ 678 public static int countAll() 679 throws com.liferay.portal.kernel.exception.SystemException { 680 return getPersistence().countAll(); 681 } 682 683 public static ExpandoColumnPersistence getPersistence() { 684 if (_persistence == null) { 685 _persistence = (ExpandoColumnPersistence)PortalBeanLocatorUtil.locate(ExpandoColumnPersistence.class.getName()); 686 687 ReferenceRegistry.registerReference(ExpandoColumnUtil.class, 688 "_persistence"); 689 } 690 691 return _persistence; 692 } 693 694 /** 695 * @deprecated As of 6.2.0 696 */ 697 public void setPersistence(ExpandoColumnPersistence persistence) { 698 } 699 700 private static ExpandoColumnPersistence _persistence; 701 }