All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.reading.time.service.persistence.ReadingTimeEntryPersistence Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
Show newest version
/**
 * Copyright (c) 2000-present 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.liferay.reading.time.service.persistence;

import aQute.bnd.annotation.ProviderType;

import com.liferay.portal.kernel.service.persistence.BasePersistence;

import com.liferay.reading.time.exception.NoSuchEntryException;
import com.liferay.reading.time.model.ReadingTimeEntry;

/**
 * The persistence interface for the reading time entry service.
 *
 * 

* Caching information and settings can be found in portal.properties *

* * @author Brian Wing Shun Chan * @see com.liferay.reading.time.service.persistence.impl.ReadingTimeEntryPersistenceImpl * @see ReadingTimeEntryUtil * @generated */ @ProviderType public interface ReadingTimeEntryPersistence extends BasePersistence { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link ReadingTimeEntryUtil} to access the reading time entry persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the reading time entries where uuid = ?. * * @param uuid the uuid * @return the matching reading time entries */ public java.util.List findByUuid(String uuid); /** * Returns a range of all the reading time entries where uuid = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ReadingTimeEntryModelImpl}. If both orderByComparator 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. *

* * @param uuid the uuid * @param start the lower bound of the range of reading time entries * @param end the upper bound of the range of reading time entries (not inclusive) * @return the range of matching reading time entries */ public java.util.List findByUuid(String uuid, int start, int end); /** * Returns an ordered range of all the reading time entries where uuid = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ReadingTimeEntryModelImpl}. If both orderByComparator 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. *

* * @param uuid the uuid * @param start the lower bound of the range of reading time entries * @param end the upper bound of the range of reading time entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching reading time entries */ public java.util.List findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the reading time entries where uuid = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ReadingTimeEntryModelImpl}. If both orderByComparator 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. *

* * @param uuid the uuid * @param start the lower bound of the range of reading time entries * @param end the upper bound of the range of reading time entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching reading time entries */ public java.util.List findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first reading time entry in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching reading time entry * @throws NoSuchEntryException if a matching reading time entry could not be found */ public ReadingTimeEntry findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the first reading time entry in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching reading time entry, or null if a matching reading time entry could not be found */ public ReadingTimeEntry fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last reading time entry in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching reading time entry * @throws NoSuchEntryException if a matching reading time entry could not be found */ public ReadingTimeEntry findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the last reading time entry in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching reading time entry, or null if a matching reading time entry could not be found */ public ReadingTimeEntry fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the reading time entries before and after the current reading time entry in the ordered set where uuid = ?. * * @param readingTimeEntryId the primary key of the current reading time entry * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next reading time entry * @throws NoSuchEntryException if a reading time entry with the primary key could not be found */ public ReadingTimeEntry[] findByUuid_PrevAndNext(long readingTimeEntryId, String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Removes all the reading time entries where uuid = ? from the database. * * @param uuid the uuid */ public void removeByUuid(String uuid); /** * Returns the number of reading time entries where uuid = ?. * * @param uuid the uuid * @return the number of matching reading time entries */ public int countByUuid(String uuid); /** * Returns the reading time entry where uuid = ? and groupId = ? or throws a {@link NoSuchEntryException} if it could not be found. * * @param uuid the uuid * @param groupId the group ID * @return the matching reading time entry * @throws NoSuchEntryException if a matching reading time entry could not be found */ public ReadingTimeEntry findByUUID_G(String uuid, long groupId) throws NoSuchEntryException; /** * Returns the reading time entry where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. * * @param uuid the uuid * @param groupId the group ID * @return the matching reading time entry, or null if a matching reading time entry could not be found */ public ReadingTimeEntry fetchByUUID_G(String uuid, long groupId); /** * Returns the reading time entry where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. * * @param uuid the uuid * @param groupId the group ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching reading time entry, or null if a matching reading time entry could not be found */ public ReadingTimeEntry fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache); /** * Removes the reading time entry where uuid = ? and groupId = ? from the database. * * @param uuid the uuid * @param groupId the group ID * @return the reading time entry that was removed */ public ReadingTimeEntry removeByUUID_G(String uuid, long groupId) throws NoSuchEntryException; /** * Returns the number of reading time entries where uuid = ? and groupId = ?. * * @param uuid the uuid * @param groupId the group ID * @return the number of matching reading time entries */ public int countByUUID_G(String uuid, long groupId); /** * Returns all the reading time entries where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching reading time entries */ public java.util.List findByUuid_C(String uuid, long companyId); /** * Returns a range of all the reading time entries where uuid = ? and companyId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ReadingTimeEntryModelImpl}. If both orderByComparator 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. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of reading time entries * @param end the upper bound of the range of reading time entries (not inclusive) * @return the range of matching reading time entries */ public java.util.List findByUuid_C(String uuid, long companyId, int start, int end); /** * Returns an ordered range of all the reading time entries where uuid = ? and companyId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ReadingTimeEntryModelImpl}. If both orderByComparator 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. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of reading time entries * @param end the upper bound of the range of reading time entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching reading time entries */ public java.util.List findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the reading time entries where uuid = ? and companyId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ReadingTimeEntryModelImpl}. If both orderByComparator 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. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of reading time entries * @param end the upper bound of the range of reading time entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching reading time entries */ public java.util.List findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first reading time entry in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching reading time entry * @throws NoSuchEntryException if a matching reading time entry could not be found */ public ReadingTimeEntry findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the first reading time entry in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching reading time entry, or null if a matching reading time entry could not be found */ public ReadingTimeEntry fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last reading time entry in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching reading time entry * @throws NoSuchEntryException if a matching reading time entry could not be found */ public ReadingTimeEntry findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Returns the last reading time entry in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching reading time entry, or null if a matching reading time entry could not be found */ public ReadingTimeEntry fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the reading time entries before and after the current reading time entry in the ordered set where uuid = ? and companyId = ?. * * @param readingTimeEntryId the primary key of the current reading time entry * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next reading time entry * @throws NoSuchEntryException if a reading time entry with the primary key could not be found */ public ReadingTimeEntry[] findByUuid_C_PrevAndNext( long readingTimeEntryId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryException; /** * Removes all the reading time entries where uuid = ? and companyId = ? from the database. * * @param uuid the uuid * @param companyId the company ID */ public void removeByUuid_C(String uuid, long companyId); /** * Returns the number of reading time entries where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching reading time entries */ public int countByUuid_C(String uuid, long companyId); /** * Returns the reading time entry where groupId = ? and classNameId = ? and classPK = ? or throws a {@link NoSuchEntryException} if it could not be found. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @return the matching reading time entry * @throws NoSuchEntryException if a matching reading time entry could not be found */ public ReadingTimeEntry findByG_C_C(long groupId, long classNameId, long classPK) throws NoSuchEntryException; /** * Returns the reading time entry where groupId = ? and classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @return the matching reading time entry, or null if a matching reading time entry could not be found */ public ReadingTimeEntry fetchByG_C_C(long groupId, long classNameId, long classPK); /** * Returns the reading time entry where groupId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching reading time entry, or null if a matching reading time entry could not be found */ public ReadingTimeEntry fetchByG_C_C(long groupId, long classNameId, long classPK, boolean retrieveFromCache); /** * Removes the reading time entry where groupId = ? and classNameId = ? and classPK = ? from the database. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @return the reading time entry that was removed */ public ReadingTimeEntry removeByG_C_C(long groupId, long classNameId, long classPK) throws NoSuchEntryException; /** * Returns the number of reading time entries where groupId = ? and classNameId = ? and classPK = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @return the number of matching reading time entries */ public int countByG_C_C(long groupId, long classNameId, long classPK); /** * Caches the reading time entry in the entity cache if it is enabled. * * @param readingTimeEntry the reading time entry */ public void cacheResult(ReadingTimeEntry readingTimeEntry); /** * Caches the reading time entries in the entity cache if it is enabled. * * @param readingTimeEntries the reading time entries */ public void cacheResult(java.util.List readingTimeEntries); /** * Creates a new reading time entry with the primary key. Does not add the reading time entry to the database. * * @param readingTimeEntryId the primary key for the new reading time entry * @return the new reading time entry */ public ReadingTimeEntry create(long readingTimeEntryId); /** * Removes the reading time entry with the primary key from the database. Also notifies the appropriate model listeners. * * @param readingTimeEntryId the primary key of the reading time entry * @return the reading time entry that was removed * @throws NoSuchEntryException if a reading time entry with the primary key could not be found */ public ReadingTimeEntry remove(long readingTimeEntryId) throws NoSuchEntryException; public ReadingTimeEntry updateImpl(ReadingTimeEntry readingTimeEntry); /** * Returns the reading time entry with the primary key or throws a {@link NoSuchEntryException} if it could not be found. * * @param readingTimeEntryId the primary key of the reading time entry * @return the reading time entry * @throws NoSuchEntryException if a reading time entry with the primary key could not be found */ public ReadingTimeEntry findByPrimaryKey(long readingTimeEntryId) throws NoSuchEntryException; /** * Returns the reading time entry with the primary key or returns null if it could not be found. * * @param readingTimeEntryId the primary key of the reading time entry * @return the reading time entry, or null if a reading time entry with the primary key could not be found */ public ReadingTimeEntry fetchByPrimaryKey(long readingTimeEntryId); @Override public java.util.Map fetchByPrimaryKeys( java.util.Set primaryKeys); /** * Returns all the reading time entries. * * @return the reading time entries */ public java.util.List findAll(); /** * Returns a range of all the reading time entries. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ReadingTimeEntryModelImpl}. If both orderByComparator 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. *

* * @param start the lower bound of the range of reading time entries * @param end the upper bound of the range of reading time entries (not inclusive) * @return the range of reading time entries */ public java.util.List findAll(int start, int end); /** * Returns an ordered range of all the reading time entries. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ReadingTimeEntryModelImpl}. If both orderByComparator 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. *

* * @param start the lower bound of the range of reading time entries * @param end the upper bound of the range of reading time entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of reading time entries */ public java.util.List findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the reading time entries. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ReadingTimeEntryModelImpl}. If both orderByComparator 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. *

* * @param start the lower bound of the range of reading time entries * @param end the upper bound of the range of reading time entries (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of reading time entries */ public java.util.List findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Removes all the reading time entries from the database. */ public void removeAll(); /** * Returns the number of reading time entries. * * @return the number of reading time entries */ public int countAll(); @Override public java.util.Set getBadColumnNames(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy