/**
* 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.Module;
import com.liferay.portal.service.persistence.BasePersistence;
/**
* The persistence interface for the module service.
*
* <p>
* Caching information and settings can be found in <code>portal.properties</code>
* </p>
*
* @author edik
* @see ModulePersistenceImpl
* @see ModuleUtil
* @generated
*/
public interface ModulePersistence extends BasePersistence<Module> {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link ModuleUtil} to access the module persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
*/
/**
* Caches the module in the entity cache if it is enabled.
*
* @param module the module
*/
public void cacheResult(com.ese.ils.beta.model.Module module);
/**
* Caches the modules in the entity cache if it is enabled.
*
* @param modules the modules
*/
public void cacheResult(
java.util.List<com.ese.ils.beta.model.Module> modules);
/**
* Creates a new module with the primary key. Does not add the module to the database.
*
* @param moduleId the primary key for the new module
* @return the new module
*/
public com.ese.ils.beta.model.Module create(long moduleId);
/**
* Removes the module with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param moduleId the primary key of the module
* @return the module that was removed
* @throws com.ese.ils.beta.NoSuchModuleException if a module with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Module remove(long moduleId)
throws com.ese.ils.beta.NoSuchModuleException,
com.liferay.portal.kernel.exception.SystemException;
public com.ese.ils.beta.model.Module updateImpl(
com.ese.ils.beta.model.Module module, boolean merge)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the module with the primary key or throws a {@link com.ese.ils.beta.NoSuchModuleException} if it could not be found.
*
* @param moduleId the primary key of the module
* @return the module
* @throws com.ese.ils.beta.NoSuchModuleException if a module with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Module findByPrimaryKey(long moduleId)
throws com.ese.ils.beta.NoSuchModuleException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the module with the primary key or returns <code>null</code> if it could not be found.
*
* @param moduleId the primary key of the module
* @return the module, or <code>null</code> if a module with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Module fetchByPrimaryKey(long moduleId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns all the modules where lecturerUserId = ?.
*
* @param lecturerUserId the lecturer user ID
* @return the matching modules
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Module> findByByLecturer(
long lecturerUserId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the modules where lecturerUserId = ?.
*
* <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 lecturerUserId the lecturer user ID
* @param start the lower bound of the range of modules
* @param end the upper bound of the range of modules (not inclusive)
* @return the range of matching modules
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Module> findByByLecturer(
long lecturerUserId, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the modules where lecturerUserId = ?.
*
* <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 lecturerUserId the lecturer user ID
* @param start the lower bound of the range of modules
* @param end the upper bound of the range of modules (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching modules
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Module> findByByLecturer(
long lecturerUserId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first module in the ordered set where lecturerUserId = ?.
*
* @param lecturerUserId the lecturer user ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching module
* @throws com.ese.ils.beta.NoSuchModuleException if a matching module could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Module findByByLecturer_First(
long lecturerUserId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.ese.ils.beta.NoSuchModuleException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first module in the ordered set where lecturerUserId = ?.
*
* @param lecturerUserId the lecturer user ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching module, or <code>null</code> if a matching module could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Module fetchByByLecturer_First(
long lecturerUserId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last module in the ordered set where lecturerUserId = ?.
*
* @param lecturerUserId the lecturer user ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching module
* @throws com.ese.ils.beta.NoSuchModuleException if a matching module could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Module findByByLecturer_Last(
long lecturerUserId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.ese.ils.beta.NoSuchModuleException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last module in the ordered set where lecturerUserId = ?.
*
* @param lecturerUserId the lecturer user ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching module, or <code>null</code> if a matching module could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Module fetchByByLecturer_Last(
long lecturerUserId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the modules before and after the current module in the ordered set where lecturerUserId = ?.
*
* @param moduleId the primary key of the current module
* @param lecturerUserId the lecturer user ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next module
* @throws com.ese.ils.beta.NoSuchModuleException if a module with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.ese.ils.beta.model.Module[] findByByLecturer_PrevAndNext(
long moduleId, long lecturerUserId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.ese.ils.beta.NoSuchModuleException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns all the modules.
*
* @return the modules
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Module> findAll()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the modules.
*
* <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 modules
* @param end the upper bound of the range of modules (not inclusive)
* @return the range of modules
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Module> findAll(int start,
int end) throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the modules.
*
* <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 modules
* @param end the upper bound of the range of modules (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of modules
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.ese.ils.beta.model.Module> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes all the modules where lecturerUserId = ? from the database.
*
* @param lecturerUserId the lecturer user ID
* @throws SystemException if a system exception occurred
*/
public void removeByByLecturer(long lecturerUserId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes all the modules from the database.
*
* @throws SystemException if a system exception occurred
*/
public void removeAll()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of modules where lecturerUserId = ?.
*
* @param lecturerUserId the lecturer user ID
* @return the number of matching modules
* @throws SystemException if a system exception occurred
*/
public int countByByLecturer(long lecturerUserId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of modules.
*
* @return the number of modules
* @throws SystemException if a system exception occurred
*/
public int countAll()
throws com.liferay.portal.kernel.exception.SystemException;
}