/** * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.ese.ils.beta.service.persistence; import com.ese.ils.beta.model.UserInfo; import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.util.OrderByComparator; import com.liferay.portal.kernel.util.ReferenceRegistry; import com.liferay.portal.service.ServiceContext; import java.util.List; /** * The persistence utility for the user info service. This utility wraps {@link UserInfoPersistenceImpl} 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. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author edik * @see UserInfoPersistence * @see UserInfoPersistenceImpl * @generated */ public class UserInfoUtil { /* * NOTE FOR DEVELOPERS: * * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. */ /** * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() */ public static void clearCache() { getPersistence().clearCache(); } /** * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) */ public static void clearCache(UserInfo userInfo) { getPersistence().clearCache(userInfo); } /** * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) */ public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException { return getPersistence().countWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) */ public static List<UserInfo> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException { return getPersistence().findWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) */ public static List<UserInfo> findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end) throws SystemException { return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); } /** * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) */ public static List<UserInfo> findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException { return getPersistence() .findWithDynamicQuery(dynamicQuery, start, end, orderByComparator); } /** * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) */ public static UserInfo update(UserInfo userInfo, boolean merge) throws SystemException { return getPersistence().update(userInfo, merge); } /** * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) */ public static UserInfo update(UserInfo userInfo, boolean merge, ServiceContext serviceContext) throws SystemException { return getPersistence().update(userInfo, merge, serviceContext); } /** * Caches the user info in the entity cache if it is enabled. * * @param userInfo the user info */ public static void cacheResult(com.ese.ils.beta.model.UserInfo userInfo) { getPersistence().cacheResult(userInfo); } /** * Caches the user infos in the entity cache if it is enabled. * * @param userInfos the user infos */ public static void cacheResult( java.util.List<com.ese.ils.beta.model.UserInfo> userInfos) { getPersistence().cacheResult(userInfos); } /** * Creates a new user info with the primary key. Does not add the user info to the database. * * @param userInfoId the primary key for the new user info * @return the new user info */ public static com.ese.ils.beta.model.UserInfo create(long userInfoId) { return getPersistence().create(userInfoId); } /** * Removes the user info with the primary key from the database. Also notifies the appropriate model listeners. * * @param userInfoId the primary key of the user info * @return the user info that was removed * @throws com.ese.ils.beta.NoSuchUserInfoException if a user info with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.ese.ils.beta.model.UserInfo remove(long userInfoId) throws com.ese.ils.beta.NoSuchUserInfoException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().remove(userInfoId); } public static com.ese.ils.beta.model.UserInfo updateImpl( com.ese.ils.beta.model.UserInfo userInfo, boolean merge) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().updateImpl(userInfo, merge); } /** * Returns the user info with the primary key or throws a {@link com.ese.ils.beta.NoSuchUserInfoException} if it could not be found. * * @param userInfoId the primary key of the user info * @return the user info * @throws com.ese.ils.beta.NoSuchUserInfoException if a user info with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.ese.ils.beta.model.UserInfo findByPrimaryKey( long userInfoId) throws com.ese.ils.beta.NoSuchUserInfoException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByPrimaryKey(userInfoId); } /** * Returns the user info with the primary key or returns <code>null</code> if it could not be found. * * @param userInfoId the primary key of the user info * @return the user info, or <code>null</code> if a user info with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.ese.ils.beta.model.UserInfo fetchByPrimaryKey( long userInfoId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByPrimaryKey(userInfoId); } /** * Returns all the user infos where userId = ?. * * @param userId the user ID * @return the matching user infos * @throws SystemException if a system exception occurred */ public static java.util.List<com.ese.ils.beta.model.UserInfo> findByByUser( long userId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByByUser(userId); } /** * Returns a range of all the user infos where userId = ?. * * <p> * 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. * </p> * * @param userId the user ID * @param start the lower bound of the range of user infos * @param end the upper bound of the range of user infos (not inclusive) * @return the range of matching user infos * @throws SystemException if a system exception occurred */ public static java.util.List<com.ese.ils.beta.model.UserInfo> findByByUser( long userId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByByUser(userId, start, end); } /** * Returns an ordered range of all the user infos where userId = ?. * * <p> * 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. * </p> * * @param userId the user ID * @param start the lower bound of the range of user infos * @param end the upper bound of the range of user infos (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching user infos * @throws SystemException if a system exception occurred */ public static java.util.List<com.ese.ils.beta.model.UserInfo> findByByUser( long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByByUser(userId, start, end, orderByComparator); } /** * Returns the first user info in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching user info * @throws com.ese.ils.beta.NoSuchUserInfoException if a matching user info could not be found * @throws SystemException if a system exception occurred */ public static com.ese.ils.beta.model.UserInfo findByByUser_First( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchUserInfoException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByByUser_First(userId, orderByComparator); } /** * Returns the first user info in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching user info, or <code>null</code> if a matching user info could not be found * @throws SystemException if a system exception occurred */ public static com.ese.ils.beta.model.UserInfo fetchByByUser_First( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByByUser_First(userId, orderByComparator); } /** * Returns the last user info in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching user info * @throws com.ese.ils.beta.NoSuchUserInfoException if a matching user info could not be found * @throws SystemException if a system exception occurred */ public static com.ese.ils.beta.model.UserInfo findByByUser_Last( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchUserInfoException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByByUser_Last(userId, orderByComparator); } /** * Returns the last user info in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching user info, or <code>null</code> if a matching user info could not be found * @throws SystemException if a system exception occurred */ public static com.ese.ils.beta.model.UserInfo fetchByByUser_Last( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByByUser_Last(userId, orderByComparator); } /** * Returns the user infos before and after the current user info in the ordered set where userId = ?. * * @param userInfoId the primary key of the current user info * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next user info * @throws com.ese.ils.beta.NoSuchUserInfoException if a user info with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.ese.ils.beta.model.UserInfo[] findByByUser_PrevAndNext( long userInfoId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchUserInfoException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByByUser_PrevAndNext(userInfoId, userId, orderByComparator); } /** * Returns all the user infos where companyId = ?. * * @param companyId the company ID * @return the matching user infos * @throws SystemException if a system exception occurred */ public static java.util.List<com.ese.ils.beta.model.UserInfo> findByByCompany( long companyId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByByCompany(companyId); } /** * Returns a range of all the user infos where companyId = ?. * * <p> * 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. * </p> * * @param companyId the company ID * @param start the lower bound of the range of user infos * @param end the upper bound of the range of user infos (not inclusive) * @return the range of matching user infos * @throws SystemException if a system exception occurred */ public static java.util.List<com.ese.ils.beta.model.UserInfo> findByByCompany( long companyId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByByCompany(companyId, start, end); } /** * Returns an ordered range of all the user infos where companyId = ?. * * <p> * 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. * </p> * * @param companyId the company ID * @param start the lower bound of the range of user infos * @param end the upper bound of the range of user infos (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching user infos * @throws SystemException if a system exception occurred */ public static java.util.List<com.ese.ils.beta.model.UserInfo> findByByCompany( long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByByCompany(companyId, start, end, orderByComparator); } /** * Returns the first user info in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching user info * @throws com.ese.ils.beta.NoSuchUserInfoException if a matching user info could not be found * @throws SystemException if a system exception occurred */ public static com.ese.ils.beta.model.UserInfo findByByCompany_First( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchUserInfoException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByByCompany_First(companyId, orderByComparator); } /** * Returns the first user info in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching user info, or <code>null</code> if a matching user info could not be found * @throws SystemException if a system exception occurred */ public static com.ese.ils.beta.model.UserInfo fetchByByCompany_First( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByByCompany_First(companyId, orderByComparator); } /** * Returns the last user info in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching user info * @throws com.ese.ils.beta.NoSuchUserInfoException if a matching user info could not be found * @throws SystemException if a system exception occurred */ public static com.ese.ils.beta.model.UserInfo findByByCompany_Last( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchUserInfoException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByByCompany_Last(companyId, orderByComparator); } /** * Returns the last user info in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching user info, or <code>null</code> if a matching user info could not be found * @throws SystemException if a system exception occurred */ public static com.ese.ils.beta.model.UserInfo fetchByByCompany_Last( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByByCompany_Last(companyId, orderByComparator); } /** * Returns the user infos before and after the current user info in the ordered set where companyId = ?. * * @param userInfoId the primary key of the current user info * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next user info * @throws com.ese.ils.beta.NoSuchUserInfoException if a user info with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.ese.ils.beta.model.UserInfo[] findByByCompany_PrevAndNext( long userInfoId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchUserInfoException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByByCompany_PrevAndNext(userInfoId, companyId, orderByComparator); } /** * Returns all the user infos where moduleId = ?. * * @param moduleId the module ID * @return the matching user infos * @throws SystemException if a system exception occurred */ public static java.util.List<com.ese.ils.beta.model.UserInfo> findByModule( long moduleId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByModule(moduleId); } /** * Returns a range of all the user infos where moduleId = ?. * * <p> * 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. * </p> * * @param moduleId the module ID * @param start the lower bound of the range of user infos * @param end the upper bound of the range of user infos (not inclusive) * @return the range of matching user infos * @throws SystemException if a system exception occurred */ public static java.util.List<com.ese.ils.beta.model.UserInfo> findByModule( long moduleId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByModule(moduleId, start, end); } /** * Returns an ordered range of all the user infos where moduleId = ?. * * <p> * 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. * </p> * * @param moduleId the module ID * @param start the lower bound of the range of user infos * @param end the upper bound of the range of user infos (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching user infos * @throws SystemException if a system exception occurred */ public static java.util.List<com.ese.ils.beta.model.UserInfo> findByModule( long moduleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByModule(moduleId, start, end, orderByComparator); } /** * Returns the first user info in the ordered set where moduleId = ?. * * @param moduleId the module ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching user info * @throws com.ese.ils.beta.NoSuchUserInfoException if a matching user info could not be found * @throws SystemException if a system exception occurred */ public static com.ese.ils.beta.model.UserInfo findByModule_First( long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchUserInfoException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByModule_First(moduleId, orderByComparator); } /** * Returns the first user info in the ordered set where moduleId = ?. * * @param moduleId the module ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching user info, or <code>null</code> if a matching user info could not be found * @throws SystemException if a system exception occurred */ public static com.ese.ils.beta.model.UserInfo fetchByModule_First( long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByModule_First(moduleId, orderByComparator); } /** * Returns the last user info in the ordered set where moduleId = ?. * * @param moduleId the module ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching user info * @throws com.ese.ils.beta.NoSuchUserInfoException if a matching user info could not be found * @throws SystemException if a system exception occurred */ public static com.ese.ils.beta.model.UserInfo findByModule_Last( long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchUserInfoException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByModule_Last(moduleId, orderByComparator); } /** * Returns the last user info in the ordered set where moduleId = ?. * * @param moduleId the module ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching user info, or <code>null</code> if a matching user info could not be found * @throws SystemException if a system exception occurred */ public static com.ese.ils.beta.model.UserInfo fetchByModule_Last( long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByModule_Last(moduleId, orderByComparator); } /** * Returns the user infos before and after the current user info in the ordered set where moduleId = ?. * * @param userInfoId the primary key of the current user info * @param moduleId the module ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next user info * @throws com.ese.ils.beta.NoSuchUserInfoException if a user info with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.ese.ils.beta.model.UserInfo[] findByModule_PrevAndNext( long userInfoId, long moduleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.ese.ils.beta.NoSuchUserInfoException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByModule_PrevAndNext(userInfoId, moduleId, orderByComparator); } /** * Returns all the user infos. * * @return the user infos * @throws SystemException if a system exception occurred */ public static java.util.List<com.ese.ils.beta.model.UserInfo> findAll() throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findAll(); } /** * Returns a range of all the user infos. * * <p> * 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. * </p> * * @param start the lower bound of the range of user infos * @param end the upper bound of the range of user infos (not inclusive) * @return the range of user infos * @throws SystemException if a system exception occurred */ public static java.util.List<com.ese.ils.beta.model.UserInfo> findAll( int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findAll(start, end); } /** * Returns an ordered range of all the user infos. * * <p> * 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. * </p> * * @param start the lower bound of the range of user infos * @param end the upper bound of the range of user infos (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of user infos * @throws SystemException if a system exception occurred */ public static java.util.List<com.ese.ils.beta.model.UserInfo> findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findAll(start, end, orderByComparator); } /** * Removes all the user infos where userId = ? from the database. * * @param userId the user ID * @throws SystemException if a system exception occurred */ public static void removeByByUser(long userId) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByByUser(userId); } /** * Removes all the user infos where companyId = ? from the database. * * @param companyId the company ID * @throws SystemException if a system exception occurred */ public static void removeByByCompany(long companyId) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByByCompany(companyId); } /** * Removes all the user infos where moduleId = ? from the database. * * @param moduleId the module ID * @throws SystemException if a system exception occurred */ public static void removeByModule(long moduleId) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByModule(moduleId); } /** * Removes all the user infos from the database. * * @throws SystemException if a system exception occurred */ public static void removeAll() throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeAll(); } /** * Returns the number of user infos where userId = ?. * * @param userId the user ID * @return the number of matching user infos * @throws SystemException if a system exception occurred */ public static int countByByUser(long userId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByByUser(userId); } /** * Returns the number of user infos where companyId = ?. * * @param companyId the company ID * @return the number of matching user infos * @throws SystemException if a system exception occurred */ public static int countByByCompany(long companyId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByByCompany(companyId); } /** * Returns the number of user infos where moduleId = ?. * * @param moduleId the module ID * @return the number of matching user infos * @throws SystemException if a system exception occurred */ public static int countByModule(long moduleId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByModule(moduleId); } /** * Returns the number of user infos. * * @return the number of user infos * @throws SystemException if a system exception occurred */ public static int countAll() throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countAll(); } public static UserInfoPersistence getPersistence() { if (_persistence == null) { _persistence = (UserInfoPersistence)PortletBeanLocatorUtil.locate(com.ese.ils.beta.service.ClpSerializer.getServletContextName(), UserInfoPersistence.class.getName()); ReferenceRegistry.registerReference(UserInfoUtil.class, "_persistence"); } return _persistence; } /** * @deprecated */ public void setPersistence(UserInfoPersistence persistence) { } private static UserInfoPersistence _persistence; }