/**
* 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.service.persistence.BasePersistence;
/**
* The persistence interface for the user info service.
*
* <p>
* Caching information and settings can be found in <code>portal.properties</code>
* </p>
*
* @author edik
* @see UserInfoPersistenceImpl
* @see UserInfoUtil
* @generated
*/
public interface UserInfoPersistence extends BasePersistence<UserInfo> {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link UserInfoUtil} to access the user info persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
*/
/**
* Caches the user info in the entity cache if it is enabled.
*
* @param userInfo the user info
*/
public void cacheResult(com.ese.ils.beta.model.UserInfo userInfo);
/**
* Caches the user infos in the entity cache if it is enabled.
*
* @param userInfos the user infos
*/
public void cacheResult(
java.util.List<com.ese.ils.beta.model.UserInfo> 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 com.ese.ils.beta.model.UserInfo create(long 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 com.ese.ils.beta.model.UserInfo remove(long userInfoId)
throws com.ese.ils.beta.NoSuchUserInfoException,
com.liferay.portal.kernel.exception.SystemException;
public com.ese.ils.beta.model.UserInfo updateImpl(
com.ese.ils.beta.model.UserInfo userInfo, boolean merge)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 com.ese.ils.beta.model.UserInfo findByPrimaryKey(long userInfoId)
throws com.ese.ils.beta.NoSuchUserInfoException,
com.liferay.portal.kernel.exception.SystemException;
/**
* 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 com.ese.ils.beta.model.UserInfo fetchByPrimaryKey(long userInfoId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 java.util.List<com.ese.ils.beta.model.UserInfo> findByByUser(
long userId) throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 java.util.List<com.ese.ils.beta.model.UserInfo> findByByUser(
long userId, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 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;
/**
* 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 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;
/**
* 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 com.ese.ils.beta.model.UserInfo fetchByByUser_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 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;
/**
* 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 com.ese.ils.beta.model.UserInfo fetchByByUser_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 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;
/**
* 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 java.util.List<com.ese.ils.beta.model.UserInfo> findByByCompany(
long companyId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 java.util.List<com.ese.ils.beta.model.UserInfo> findByByCompany(
long companyId, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 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;
/**
* 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 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;
/**
* 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 com.ese.ils.beta.model.UserInfo fetchByByCompany_First(
long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 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;
/**
* 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 com.ese.ils.beta.model.UserInfo fetchByByCompany_Last(
long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 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;
/**
* 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 java.util.List<com.ese.ils.beta.model.UserInfo> findByModule(
long moduleId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 java.util.List<com.ese.ils.beta.model.UserInfo> findByModule(
long moduleId, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 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;
/**
* 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 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;
/**
* 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 com.ese.ils.beta.model.UserInfo fetchByModule_First(long moduleId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 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;
/**
* 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 com.ese.ils.beta.model.UserInfo fetchByModule_Last(long moduleId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 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;
/**
* Returns all the user infos.
*
* @return the user infos
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.UserInfo> findAll()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 java.util.List<com.ese.ils.beta.model.UserInfo> findAll(int start,
int end) throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 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;
/**
* Removes all the user infos where userId = ? from the database.
*
* @param userId the user ID
* @throws SystemException if a system exception occurred
*/
public void removeByByUser(long userId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes all the user infos where companyId = ? from the database.
*
* @param companyId the company ID
* @throws SystemException if a system exception occurred
*/
public void removeByByCompany(long companyId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes all the user infos where moduleId = ? from the database.
*
* @param moduleId the module ID
* @throws SystemException if a system exception occurred
*/
public void removeByModule(long moduleId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes all the user infos from the database.
*
* @throws SystemException if a system exception occurred
*/
public void removeAll()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 int countByByUser(long userId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 int countByByCompany(long companyId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* 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 int countByModule(long moduleId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of user infos.
*
* @return the number of user infos
* @throws SystemException if a system exception occurred
*/
public int countAll()
throws com.liferay.portal.kernel.exception.SystemException;
}