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.kernel.bean.PortalBeanLocatorUtil; 020 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 021 import com.liferay.portal.kernel.util.OrderByComparator; 022 import com.liferay.portal.kernel.util.ReferenceRegistry; 023 import com.liferay.portal.service.ServiceContext; 024 025 import com.liferay.portlet.expando.model.ExpandoColumn; 026 027 import java.util.List; 028 029 /** 030 * 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. 031 * 032 * <p> 033 * Caching information and settings can be found in <code>portal.properties</code> 034 * </p> 035 * 036 * @author Brian Wing Shun Chan 037 * @see ExpandoColumnPersistence 038 * @see ExpandoColumnPersistenceImpl 039 * @generated 040 */ 041 @ProviderType 042 public class ExpandoColumnUtil { 043 /* 044 * NOTE FOR DEVELOPERS: 045 * 046 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 047 */ 048 049 /** 050 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 051 */ 052 public static void clearCache() { 053 getPersistence().clearCache(); 054 } 055 056 /** 057 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 058 */ 059 public static void clearCache(ExpandoColumn expandoColumn) { 060 getPersistence().clearCache(expandoColumn); 061 } 062 063 /** 064 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 065 */ 066 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) { 067 return getPersistence().countWithDynamicQuery(dynamicQuery); 068 } 069 070 /** 071 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 072 */ 073 public static List<ExpandoColumn> findWithDynamicQuery( 074 DynamicQuery dynamicQuery) { 075 return getPersistence().findWithDynamicQuery(dynamicQuery); 076 } 077 078 /** 079 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 080 */ 081 public static List<ExpandoColumn> findWithDynamicQuery( 082 DynamicQuery dynamicQuery, int start, int end) { 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<ExpandoColumn> orderByComparator) { 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 return getPersistence().update(expandoColumn); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 106 */ 107 public static ExpandoColumn update(ExpandoColumn expandoColumn, 108 ServiceContext serviceContext) { 109 return getPersistence().update(expandoColumn, serviceContext); 110 } 111 112 /** 113 * Returns all the expando columns where tableId = ?. 114 * 115 * @param tableId the table ID 116 * @return the matching expando columns 117 */ 118 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId( 119 long tableId) { 120 return getPersistence().findByTableId(tableId); 121 } 122 123 /** 124 * Returns a range of all the expando columns where tableId = ?. 125 * 126 * <p> 127 * 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. 128 * </p> 129 * 130 * @param tableId the table ID 131 * @param start the lower bound of the range of expando columns 132 * @param end the upper bound of the range of expando columns (not inclusive) 133 * @return the range of matching expando columns 134 */ 135 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId( 136 long tableId, int start, int end) { 137 return getPersistence().findByTableId(tableId, start, end); 138 } 139 140 /** 141 * Returns an ordered range of all the expando columns where tableId = ?. 142 * 143 * <p> 144 * 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. 145 * </p> 146 * 147 * @param tableId the table ID 148 * @param start the lower bound of the range of expando columns 149 * @param end the upper bound of the range of expando columns (not inclusive) 150 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 151 * @return the ordered range of matching expando columns 152 */ 153 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId( 154 long tableId, int start, int end, 155 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoColumn> orderByComparator) { 156 return getPersistence() 157 .findByTableId(tableId, start, end, orderByComparator); 158 } 159 160 /** 161 * Returns the first expando column in the ordered set where tableId = ?. 162 * 163 * @param tableId the table ID 164 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 165 * @return the first matching expando column 166 * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found 167 */ 168 public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First( 169 long tableId, 170 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoColumn> orderByComparator) 171 throws com.liferay.portlet.expando.NoSuchColumnException { 172 return getPersistence().findByTableId_First(tableId, orderByComparator); 173 } 174 175 /** 176 * Returns the first expando column in the ordered set where tableId = ?. 177 * 178 * @param tableId the table ID 179 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 180 * @return the first matching expando column, or <code>null</code> if a matching expando column could not be found 181 */ 182 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByTableId_First( 183 long tableId, 184 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoColumn> orderByComparator) { 185 return getPersistence().fetchByTableId_First(tableId, orderByComparator); 186 } 187 188 /** 189 * Returns the last expando column in the ordered set where tableId = ?. 190 * 191 * @param tableId the table ID 192 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 193 * @return the last matching expando column 194 * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found 195 */ 196 public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last( 197 long tableId, 198 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoColumn> orderByComparator) 199 throws com.liferay.portlet.expando.NoSuchColumnException { 200 return getPersistence().findByTableId_Last(tableId, orderByComparator); 201 } 202 203 /** 204 * Returns the last expando column in the ordered set where tableId = ?. 205 * 206 * @param tableId the table ID 207 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 208 * @return the last matching expando column, or <code>null</code> if a matching expando column could not be found 209 */ 210 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByTableId_Last( 211 long tableId, 212 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoColumn> orderByComparator) { 213 return getPersistence().fetchByTableId_Last(tableId, orderByComparator); 214 } 215 216 /** 217 * Returns the expando columns before and after the current expando column in the ordered set where tableId = ?. 218 * 219 * @param columnId the primary key of the current expando column 220 * @param tableId the table ID 221 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 222 * @return the previous, current, and next expando column 223 * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found 224 */ 225 public static com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext( 226 long columnId, long tableId, 227 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoColumn> orderByComparator) 228 throws com.liferay.portlet.expando.NoSuchColumnException { 229 return getPersistence() 230 .findByTableId_PrevAndNext(columnId, tableId, 231 orderByComparator); 232 } 233 234 /** 235 * Returns all the expando columns that the user has permission to view where tableId = ?. 236 * 237 * @param tableId the table ID 238 * @return the matching expando columns that the user has permission to view 239 */ 240 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId( 241 long tableId) { 242 return getPersistence().filterFindByTableId(tableId); 243 } 244 245 /** 246 * Returns a range of all the expando columns that the user has permission to view where tableId = ?. 247 * 248 * <p> 249 * 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. 250 * </p> 251 * 252 * @param tableId the table ID 253 * @param start the lower bound of the range of expando columns 254 * @param end the upper bound of the range of expando columns (not inclusive) 255 * @return the range of matching expando columns that the user has permission to view 256 */ 257 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId( 258 long tableId, int start, int end) { 259 return getPersistence().filterFindByTableId(tableId, start, end); 260 } 261 262 /** 263 * Returns an ordered range of all the expando columns that the user has permissions to view where tableId = ?. 264 * 265 * <p> 266 * 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. 267 * </p> 268 * 269 * @param tableId the table ID 270 * @param start the lower bound of the range of expando columns 271 * @param end the upper bound of the range of expando columns (not inclusive) 272 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 273 * @return the ordered range of matching expando columns that the user has permission to view 274 */ 275 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> filterFindByTableId( 276 long tableId, int start, int end, 277 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoColumn> orderByComparator) { 278 return getPersistence() 279 .filterFindByTableId(tableId, start, end, orderByComparator); 280 } 281 282 /** 283 * 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 = ?. 284 * 285 * @param columnId the primary key of the current expando column 286 * @param tableId the table ID 287 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 288 * @return the previous, current, and next expando column 289 * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found 290 */ 291 public static com.liferay.portlet.expando.model.ExpandoColumn[] filterFindByTableId_PrevAndNext( 292 long columnId, long tableId, 293 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoColumn> orderByComparator) 294 throws com.liferay.portlet.expando.NoSuchColumnException { 295 return getPersistence() 296 .filterFindByTableId_PrevAndNext(columnId, tableId, 297 orderByComparator); 298 } 299 300 /** 301 * Removes all the expando columns where tableId = ? from the database. 302 * 303 * @param tableId the table ID 304 */ 305 public static void removeByTableId(long tableId) { 306 getPersistence().removeByTableId(tableId); 307 } 308 309 /** 310 * Returns the number of expando columns where tableId = ?. 311 * 312 * @param tableId the table ID 313 * @return the number of matching expando columns 314 */ 315 public static int countByTableId(long tableId) { 316 return getPersistence().countByTableId(tableId); 317 } 318 319 /** 320 * Returns the number of expando columns that the user has permission to view where tableId = ?. 321 * 322 * @param tableId the table ID 323 * @return the number of matching expando columns that the user has permission to view 324 */ 325 public static int filterCountByTableId(long tableId) { 326 return getPersistence().filterCountByTableId(tableId); 327 } 328 329 /** 330 * Returns all the expando columns where tableId = ? and name = any ?. 331 * 332 * <p> 333 * 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. 334 * </p> 335 * 336 * @param tableId the table ID 337 * @param names the names 338 * @return the matching expando columns 339 */ 340 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N( 341 long tableId, java.lang.String[] names) { 342 return getPersistence().findByT_N(tableId, names); 343 } 344 345 /** 346 * Returns a range of all the expando columns where tableId = ? and name = any ?. 347 * 348 * <p> 349 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.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. 350 * </p> 351 * 352 * @param tableId the table ID 353 * @param names the names 354 * @param start the lower bound of the range of expando columns 355 * @param end the upper bound of the range of expando columns (not inclusive) 356 * @return the range of matching expando columns 357 */ 358 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N( 359 long tableId, java.lang.String[] names, int start, int end) { 360 return getPersistence().findByT_N(tableId, names, start, end); 361 } 362 363 /** 364 * Returns an ordered range of all the expando columns where tableId = ? and name = any ?. 365 * 366 * <p> 367 * 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. 368 * </p> 369 * 370 * @param tableId the table ID 371 * @param names the names 372 * @param start the lower bound of the range of expando columns 373 * @param end the upper bound of the range of expando columns (not inclusive) 374 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 375 * @return the ordered range of matching expando columns 376 */ 377 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByT_N( 378 long tableId, java.lang.String[] names, int start, int end, 379 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoColumn> orderByComparator) { 380 return getPersistence() 381 .findByT_N(tableId, names, start, end, orderByComparator); 382 } 383 384 /** 385 * Returns the expando column where tableId = ? and name = ? or throws a {@link com.liferay.portlet.expando.NoSuchColumnException} if it could not be found. 386 * 387 * @param tableId the table ID 388 * @param name the name 389 * @return the matching expando column 390 * @throws com.liferay.portlet.expando.NoSuchColumnException if a matching expando column could not be found 391 */ 392 public static com.liferay.portlet.expando.model.ExpandoColumn findByT_N( 393 long tableId, java.lang.String name) 394 throws com.liferay.portlet.expando.NoSuchColumnException { 395 return getPersistence().findByT_N(tableId, name); 396 } 397 398 /** 399 * Returns the expando column where tableId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 400 * 401 * @param tableId the table ID 402 * @param name the name 403 * @return the matching expando column, or <code>null</code> if a matching expando column could not be found 404 */ 405 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N( 406 long tableId, java.lang.String name) { 407 return getPersistence().fetchByT_N(tableId, name); 408 } 409 410 /** 411 * Returns the expando column where tableId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 412 * 413 * @param tableId the table ID 414 * @param name the name 415 * @param retrieveFromCache whether to use the finder cache 416 * @return the matching expando column, or <code>null</code> if a matching expando column could not be found 417 */ 418 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N( 419 long tableId, java.lang.String name, boolean retrieveFromCache) { 420 return getPersistence().fetchByT_N(tableId, name, retrieveFromCache); 421 } 422 423 /** 424 * Removes the expando column where tableId = ? and name = ? from the database. 425 * 426 * @param tableId the table ID 427 * @param name the name 428 * @return the expando column that was removed 429 */ 430 public static com.liferay.portlet.expando.model.ExpandoColumn removeByT_N( 431 long tableId, java.lang.String name) 432 throws com.liferay.portlet.expando.NoSuchColumnException { 433 return getPersistence().removeByT_N(tableId, name); 434 } 435 436 /** 437 * Returns the number of expando columns where tableId = ? and name = ?. 438 * 439 * @param tableId the table ID 440 * @param name the name 441 * @return the number of matching expando columns 442 */ 443 public static int countByT_N(long tableId, java.lang.String name) { 444 return getPersistence().countByT_N(tableId, name); 445 } 446 447 /** 448 * Returns the number of expando columns where tableId = ? and name = any ?. 449 * 450 * @param tableId the table ID 451 * @param names the names 452 * @return the number of matching expando columns 453 */ 454 public static int countByT_N(long tableId, java.lang.String[] names) { 455 return getPersistence().countByT_N(tableId, names); 456 } 457 458 /** 459 * Returns the number of expando columns that the user has permission to view where tableId = ? and name = ?. 460 * 461 * @param tableId the table ID 462 * @param name the name 463 * @return the number of matching expando columns that the user has permission to view 464 */ 465 public static int filterCountByT_N(long tableId, java.lang.String name) { 466 return getPersistence().filterCountByT_N(tableId, name); 467 } 468 469 /** 470 * Returns the number of expando columns that the user has permission to view where tableId = ? and name = any ?. 471 * 472 * @param tableId the table ID 473 * @param names the names 474 * @return the number of matching expando columns that the user has permission to view 475 */ 476 public static int filterCountByT_N(long tableId, java.lang.String[] names) { 477 return getPersistence().filterCountByT_N(tableId, names); 478 } 479 480 /** 481 * Caches the expando column in the entity cache if it is enabled. 482 * 483 * @param expandoColumn the expando column 484 */ 485 public static void cacheResult( 486 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn) { 487 getPersistence().cacheResult(expandoColumn); 488 } 489 490 /** 491 * Caches the expando columns in the entity cache if it is enabled. 492 * 493 * @param expandoColumns the expando columns 494 */ 495 public static void cacheResult( 496 java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> expandoColumns) { 497 getPersistence().cacheResult(expandoColumns); 498 } 499 500 /** 501 * Creates a new expando column with the primary key. Does not add the expando column to the database. 502 * 503 * @param columnId the primary key for the new expando column 504 * @return the new expando column 505 */ 506 public static com.liferay.portlet.expando.model.ExpandoColumn create( 507 long columnId) { 508 return getPersistence().create(columnId); 509 } 510 511 /** 512 * Removes the expando column with the primary key from the database. Also notifies the appropriate model listeners. 513 * 514 * @param columnId the primary key of the expando column 515 * @return the expando column that was removed 516 * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found 517 */ 518 public static com.liferay.portlet.expando.model.ExpandoColumn remove( 519 long columnId) throws com.liferay.portlet.expando.NoSuchColumnException { 520 return getPersistence().remove(columnId); 521 } 522 523 public static com.liferay.portlet.expando.model.ExpandoColumn updateImpl( 524 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn) { 525 return getPersistence().updateImpl(expandoColumn); 526 } 527 528 /** 529 * Returns the expando column with the primary key or throws a {@link com.liferay.portlet.expando.NoSuchColumnException} if it could not be found. 530 * 531 * @param columnId the primary key of the expando column 532 * @return the expando column 533 * @throws com.liferay.portlet.expando.NoSuchColumnException if a expando column with the primary key could not be found 534 */ 535 public static com.liferay.portlet.expando.model.ExpandoColumn findByPrimaryKey( 536 long columnId) throws com.liferay.portlet.expando.NoSuchColumnException { 537 return getPersistence().findByPrimaryKey(columnId); 538 } 539 540 /** 541 * Returns the expando column with the primary key or returns <code>null</code> if it could not be found. 542 * 543 * @param columnId the primary key of the expando column 544 * @return the expando column, or <code>null</code> if a expando column with the primary key could not be found 545 */ 546 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByPrimaryKey( 547 long columnId) { 548 return getPersistence().fetchByPrimaryKey(columnId); 549 } 550 551 public static java.util.Map<java.io.Serializable, com.liferay.portlet.expando.model.ExpandoColumn> fetchByPrimaryKeys( 552 java.util.Set<java.io.Serializable> primaryKeys) { 553 return getPersistence().fetchByPrimaryKeys(primaryKeys); 554 } 555 556 /** 557 * Returns all the expando columns. 558 * 559 * @return the expando columns 560 */ 561 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll() { 562 return getPersistence().findAll(); 563 } 564 565 /** 566 * Returns a range of all the expando columns. 567 * 568 * <p> 569 * 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. 570 * </p> 571 * 572 * @param start the lower bound of the range of expando columns 573 * @param end the upper bound of the range of expando columns (not inclusive) 574 * @return the range of expando columns 575 */ 576 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll( 577 int start, int end) { 578 return getPersistence().findAll(start, end); 579 } 580 581 /** 582 * Returns an ordered range of all the expando columns. 583 * 584 * <p> 585 * 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. 586 * </p> 587 * 588 * @param start the lower bound of the range of expando columns 589 * @param end the upper bound of the range of expando columns (not inclusive) 590 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 591 * @return the ordered range of expando columns 592 */ 593 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll( 594 int start, int end, 595 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.expando.model.ExpandoColumn> orderByComparator) { 596 return getPersistence().findAll(start, end, orderByComparator); 597 } 598 599 /** 600 * Removes all the expando columns from the database. 601 */ 602 public static void removeAll() { 603 getPersistence().removeAll(); 604 } 605 606 /** 607 * Returns the number of expando columns. 608 * 609 * @return the number of expando columns 610 */ 611 public static int countAll() { 612 return getPersistence().countAll(); 613 } 614 615 public static ExpandoColumnPersistence getPersistence() { 616 if (_persistence == null) { 617 _persistence = (ExpandoColumnPersistence)PortalBeanLocatorUtil.locate(ExpandoColumnPersistence.class.getName()); 618 619 ReferenceRegistry.registerReference(ExpandoColumnUtil.class, 620 "_persistence"); 621 } 622 623 return _persistence; 624 } 625 626 /** 627 * @deprecated As of 6.2.0 628 */ 629 @Deprecated 630 public void setPersistence(ExpandoColumnPersistence persistence) { 631 } 632 633 private static ExpandoColumnPersistence _persistence; 634 }