/** * 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.portal.workflow.kaleo.service.persistence; import aQute.bnd.annotation.ProviderType; import com.liferay.osgi.util.ServiceTrackerFactory; import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.service.ServiceContext; import com.liferay.portal.kernel.util.OrderByComparator; import com.liferay.portal.workflow.kaleo.model.KaleoTimerInstanceToken; import org.osgi.util.tracker.ServiceTracker; import java.util.List; /** * The persistence utility for the kaleo timer instance token service. This utility wraps {@link com.liferay.portal.workflow.kaleo.service.persistence.impl.KaleoTimerInstanceTokenPersistenceImpl} 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 Brian Wing Shun Chan * @see KaleoTimerInstanceTokenPersistence * @see com.liferay.portal.workflow.kaleo.service.persistence.impl.KaleoTimerInstanceTokenPersistenceImpl * @generated */ @ProviderType public class KaleoTimerInstanceTokenUtil { /* * NOTE FOR DEVELOPERS: * * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. */ /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache() */ public static void clearCache() { getPersistence().clearCache(); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache(com.liferay.portal.kernel.model.BaseModel) */ public static void clearCache( KaleoTimerInstanceToken kaleoTimerInstanceToken) { getPersistence().clearCache(kaleoTimerInstanceToken); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) */ public static long countWithDynamicQuery(DynamicQuery dynamicQuery) { return getPersistence().countWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) */ public static List<KaleoTimerInstanceToken> findWithDynamicQuery( DynamicQuery dynamicQuery) { return getPersistence().findWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) */ public static List<KaleoTimerInstanceToken> findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end) { return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) */ public static List<KaleoTimerInstanceToken> findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) { return getPersistence() .findWithDynamicQuery(dynamicQuery, start, end, orderByComparator); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel) */ public static KaleoTimerInstanceToken update( KaleoTimerInstanceToken kaleoTimerInstanceToken) { return getPersistence().update(kaleoTimerInstanceToken); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext) */ public static KaleoTimerInstanceToken update( KaleoTimerInstanceToken kaleoTimerInstanceToken, ServiceContext serviceContext) { return getPersistence().update(kaleoTimerInstanceToken, serviceContext); } /** * Returns all the kaleo timer instance tokens where kaleoInstanceId = ?. * * @param kaleoInstanceId the kaleo instance ID * @return the matching kaleo timer instance tokens */ public static List<KaleoTimerInstanceToken> findByKaleoInstanceId( long kaleoInstanceId) { return getPersistence().findByKaleoInstanceId(kaleoInstanceId); } /** * Returns a range of all the kaleo timer instance tokens where kaleoInstanceId = ?. * * <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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KaleoTimerInstanceTokenModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param kaleoInstanceId the kaleo instance ID * @param start the lower bound of the range of kaleo timer instance tokens * @param end the upper bound of the range of kaleo timer instance tokens (not inclusive) * @return the range of matching kaleo timer instance tokens */ public static List<KaleoTimerInstanceToken> findByKaleoInstanceId( long kaleoInstanceId, int start, int end) { return getPersistence() .findByKaleoInstanceId(kaleoInstanceId, start, end); } /** * Returns an ordered range of all the kaleo timer instance tokens where kaleoInstanceId = ?. * * <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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KaleoTimerInstanceTokenModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param kaleoInstanceId the kaleo instance ID * @param start the lower bound of the range of kaleo timer instance tokens * @param end the upper bound of the range of kaleo timer instance tokens (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kaleo timer instance tokens */ public static List<KaleoTimerInstanceToken> findByKaleoInstanceId( long kaleoInstanceId, int start, int end, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) { return getPersistence() .findByKaleoInstanceId(kaleoInstanceId, start, end, orderByComparator); } /** * Returns an ordered range of all the kaleo timer instance tokens where kaleoInstanceId = ?. * * <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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KaleoTimerInstanceTokenModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param kaleoInstanceId the kaleo instance ID * @param start the lower bound of the range of kaleo timer instance tokens * @param end the upper bound of the range of kaleo timer instance tokens (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kaleo timer instance tokens */ public static List<KaleoTimerInstanceToken> findByKaleoInstanceId( long kaleoInstanceId, int start, int end, OrderByComparator<KaleoTimerInstanceToken> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findByKaleoInstanceId(kaleoInstanceId, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first kaleo timer instance token in the ordered set where kaleoInstanceId = ?. * * @param kaleoInstanceId the kaleo instance ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kaleo timer instance token * @throws NoSuchTimerInstanceTokenException if a matching kaleo timer instance token could not be found */ public static KaleoTimerInstanceToken findByKaleoInstanceId_First( long kaleoInstanceId, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) throws com.liferay.portal.workflow.kaleo.exception.NoSuchTimerInstanceTokenException { return getPersistence() .findByKaleoInstanceId_First(kaleoInstanceId, orderByComparator); } /** * Returns the first kaleo timer instance token in the ordered set where kaleoInstanceId = ?. * * @param kaleoInstanceId the kaleo instance ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kaleo timer instance token, or <code>null</code> if a matching kaleo timer instance token could not be found */ public static KaleoTimerInstanceToken fetchByKaleoInstanceId_First( long kaleoInstanceId, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) { return getPersistence() .fetchByKaleoInstanceId_First(kaleoInstanceId, orderByComparator); } /** * Returns the last kaleo timer instance token in the ordered set where kaleoInstanceId = ?. * * @param kaleoInstanceId the kaleo instance ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kaleo timer instance token * @throws NoSuchTimerInstanceTokenException if a matching kaleo timer instance token could not be found */ public static KaleoTimerInstanceToken findByKaleoInstanceId_Last( long kaleoInstanceId, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) throws com.liferay.portal.workflow.kaleo.exception.NoSuchTimerInstanceTokenException { return getPersistence() .findByKaleoInstanceId_Last(kaleoInstanceId, orderByComparator); } /** * Returns the last kaleo timer instance token in the ordered set where kaleoInstanceId = ?. * * @param kaleoInstanceId the kaleo instance ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kaleo timer instance token, or <code>null</code> if a matching kaleo timer instance token could not be found */ public static KaleoTimerInstanceToken fetchByKaleoInstanceId_Last( long kaleoInstanceId, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) { return getPersistence() .fetchByKaleoInstanceId_Last(kaleoInstanceId, orderByComparator); } /** * Returns the kaleo timer instance tokens before and after the current kaleo timer instance token in the ordered set where kaleoInstanceId = ?. * * @param kaleoTimerInstanceTokenId the primary key of the current kaleo timer instance token * @param kaleoInstanceId the kaleo instance ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kaleo timer instance token * @throws NoSuchTimerInstanceTokenException if a kaleo timer instance token with the primary key could not be found */ public static KaleoTimerInstanceToken[] findByKaleoInstanceId_PrevAndNext( long kaleoTimerInstanceTokenId, long kaleoInstanceId, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) throws com.liferay.portal.workflow.kaleo.exception.NoSuchTimerInstanceTokenException { return getPersistence() .findByKaleoInstanceId_PrevAndNext(kaleoTimerInstanceTokenId, kaleoInstanceId, orderByComparator); } /** * Removes all the kaleo timer instance tokens where kaleoInstanceId = ? from the database. * * @param kaleoInstanceId the kaleo instance ID */ public static void removeByKaleoInstanceId(long kaleoInstanceId) { getPersistence().removeByKaleoInstanceId(kaleoInstanceId); } /** * Returns the number of kaleo timer instance tokens where kaleoInstanceId = ?. * * @param kaleoInstanceId the kaleo instance ID * @return the number of matching kaleo timer instance tokens */ public static int countByKaleoInstanceId(long kaleoInstanceId) { return getPersistence().countByKaleoInstanceId(kaleoInstanceId); } /** * Returns the kaleo timer instance token where kaleoInstanceTokenId = ? and kaleoTimerId = ? or throws a {@link NoSuchTimerInstanceTokenException} if it could not be found. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param kaleoTimerId the kaleo timer ID * @return the matching kaleo timer instance token * @throws NoSuchTimerInstanceTokenException if a matching kaleo timer instance token could not be found */ public static KaleoTimerInstanceToken findByKITI_KTI( long kaleoInstanceTokenId, long kaleoTimerId) throws com.liferay.portal.workflow.kaleo.exception.NoSuchTimerInstanceTokenException { return getPersistence() .findByKITI_KTI(kaleoInstanceTokenId, kaleoTimerId); } /** * Returns the kaleo timer instance token where kaleoInstanceTokenId = ? and kaleoTimerId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param kaleoTimerId the kaleo timer ID * @return the matching kaleo timer instance token, or <code>null</code> if a matching kaleo timer instance token could not be found */ public static KaleoTimerInstanceToken fetchByKITI_KTI( long kaleoInstanceTokenId, long kaleoTimerId) { return getPersistence() .fetchByKITI_KTI(kaleoInstanceTokenId, kaleoTimerId); } /** * Returns the kaleo timer instance token where kaleoInstanceTokenId = ? and kaleoTimerId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param kaleoTimerId the kaleo timer ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching kaleo timer instance token, or <code>null</code> if a matching kaleo timer instance token could not be found */ public static KaleoTimerInstanceToken fetchByKITI_KTI( long kaleoInstanceTokenId, long kaleoTimerId, boolean retrieveFromCache) { return getPersistence() .fetchByKITI_KTI(kaleoInstanceTokenId, kaleoTimerId, retrieveFromCache); } /** * Removes the kaleo timer instance token where kaleoInstanceTokenId = ? and kaleoTimerId = ? from the database. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param kaleoTimerId the kaleo timer ID * @return the kaleo timer instance token that was removed */ public static KaleoTimerInstanceToken removeByKITI_KTI( long kaleoInstanceTokenId, long kaleoTimerId) throws com.liferay.portal.workflow.kaleo.exception.NoSuchTimerInstanceTokenException { return getPersistence() .removeByKITI_KTI(kaleoInstanceTokenId, kaleoTimerId); } /** * Returns the number of kaleo timer instance tokens where kaleoInstanceTokenId = ? and kaleoTimerId = ?. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param kaleoTimerId the kaleo timer ID * @return the number of matching kaleo timer instance tokens */ public static int countByKITI_KTI(long kaleoInstanceTokenId, long kaleoTimerId) { return getPersistence() .countByKITI_KTI(kaleoInstanceTokenId, kaleoTimerId); } /** * Returns all the kaleo timer instance tokens where kaleoInstanceTokenId = ? and completed = ?. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param completed the completed * @return the matching kaleo timer instance tokens */ public static List<KaleoTimerInstanceToken> findByKITI_C( long kaleoInstanceTokenId, boolean completed) { return getPersistence().findByKITI_C(kaleoInstanceTokenId, completed); } /** * Returns a range of all the kaleo timer instance tokens where kaleoInstanceTokenId = ? and completed = ?. * * <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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KaleoTimerInstanceTokenModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param kaleoInstanceTokenId the kaleo instance token ID * @param completed the completed * @param start the lower bound of the range of kaleo timer instance tokens * @param end the upper bound of the range of kaleo timer instance tokens (not inclusive) * @return the range of matching kaleo timer instance tokens */ public static List<KaleoTimerInstanceToken> findByKITI_C( long kaleoInstanceTokenId, boolean completed, int start, int end) { return getPersistence() .findByKITI_C(kaleoInstanceTokenId, completed, start, end); } /** * Returns an ordered range of all the kaleo timer instance tokens where kaleoInstanceTokenId = ? and completed = ?. * * <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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KaleoTimerInstanceTokenModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param kaleoInstanceTokenId the kaleo instance token ID * @param completed the completed * @param start the lower bound of the range of kaleo timer instance tokens * @param end the upper bound of the range of kaleo timer instance tokens (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kaleo timer instance tokens */ public static List<KaleoTimerInstanceToken> findByKITI_C( long kaleoInstanceTokenId, boolean completed, int start, int end, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) { return getPersistence() .findByKITI_C(kaleoInstanceTokenId, completed, start, end, orderByComparator); } /** * Returns an ordered range of all the kaleo timer instance tokens where kaleoInstanceTokenId = ? and completed = ?. * * <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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KaleoTimerInstanceTokenModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param kaleoInstanceTokenId the kaleo instance token ID * @param completed the completed * @param start the lower bound of the range of kaleo timer instance tokens * @param end the upper bound of the range of kaleo timer instance tokens (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kaleo timer instance tokens */ public static List<KaleoTimerInstanceToken> findByKITI_C( long kaleoInstanceTokenId, boolean completed, int start, int end, OrderByComparator<KaleoTimerInstanceToken> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findByKITI_C(kaleoInstanceTokenId, completed, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first kaleo timer instance token in the ordered set where kaleoInstanceTokenId = ? and completed = ?. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param completed the completed * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kaleo timer instance token * @throws NoSuchTimerInstanceTokenException if a matching kaleo timer instance token could not be found */ public static KaleoTimerInstanceToken findByKITI_C_First( long kaleoInstanceTokenId, boolean completed, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) throws com.liferay.portal.workflow.kaleo.exception.NoSuchTimerInstanceTokenException { return getPersistence() .findByKITI_C_First(kaleoInstanceTokenId, completed, orderByComparator); } /** * Returns the first kaleo timer instance token in the ordered set where kaleoInstanceTokenId = ? and completed = ?. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param completed the completed * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kaleo timer instance token, or <code>null</code> if a matching kaleo timer instance token could not be found */ public static KaleoTimerInstanceToken fetchByKITI_C_First( long kaleoInstanceTokenId, boolean completed, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) { return getPersistence() .fetchByKITI_C_First(kaleoInstanceTokenId, completed, orderByComparator); } /** * Returns the last kaleo timer instance token in the ordered set where kaleoInstanceTokenId = ? and completed = ?. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param completed the completed * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kaleo timer instance token * @throws NoSuchTimerInstanceTokenException if a matching kaleo timer instance token could not be found */ public static KaleoTimerInstanceToken findByKITI_C_Last( long kaleoInstanceTokenId, boolean completed, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) throws com.liferay.portal.workflow.kaleo.exception.NoSuchTimerInstanceTokenException { return getPersistence() .findByKITI_C_Last(kaleoInstanceTokenId, completed, orderByComparator); } /** * Returns the last kaleo timer instance token in the ordered set where kaleoInstanceTokenId = ? and completed = ?. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param completed the completed * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kaleo timer instance token, or <code>null</code> if a matching kaleo timer instance token could not be found */ public static KaleoTimerInstanceToken fetchByKITI_C_Last( long kaleoInstanceTokenId, boolean completed, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) { return getPersistence() .fetchByKITI_C_Last(kaleoInstanceTokenId, completed, orderByComparator); } /** * Returns the kaleo timer instance tokens before and after the current kaleo timer instance token in the ordered set where kaleoInstanceTokenId = ? and completed = ?. * * @param kaleoTimerInstanceTokenId the primary key of the current kaleo timer instance token * @param kaleoInstanceTokenId the kaleo instance token ID * @param completed the completed * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kaleo timer instance token * @throws NoSuchTimerInstanceTokenException if a kaleo timer instance token with the primary key could not be found */ public static KaleoTimerInstanceToken[] findByKITI_C_PrevAndNext( long kaleoTimerInstanceTokenId, long kaleoInstanceTokenId, boolean completed, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) throws com.liferay.portal.workflow.kaleo.exception.NoSuchTimerInstanceTokenException { return getPersistence() .findByKITI_C_PrevAndNext(kaleoTimerInstanceTokenId, kaleoInstanceTokenId, completed, orderByComparator); } /** * Removes all the kaleo timer instance tokens where kaleoInstanceTokenId = ? and completed = ? from the database. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param completed the completed */ public static void removeByKITI_C(long kaleoInstanceTokenId, boolean completed) { getPersistence().removeByKITI_C(kaleoInstanceTokenId, completed); } /** * Returns the number of kaleo timer instance tokens where kaleoInstanceTokenId = ? and completed = ?. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param completed the completed * @return the number of matching kaleo timer instance tokens */ public static int countByKITI_C(long kaleoInstanceTokenId, boolean completed) { return getPersistence().countByKITI_C(kaleoInstanceTokenId, completed); } /** * Returns all the kaleo timer instance tokens where kaleoInstanceTokenId = ? and blocking = ? and completed = ?. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param blocking the blocking * @param completed the completed * @return the matching kaleo timer instance tokens */ public static List<KaleoTimerInstanceToken> findByKITI_B_C( long kaleoInstanceTokenId, boolean blocking, boolean completed) { return getPersistence() .findByKITI_B_C(kaleoInstanceTokenId, blocking, completed); } /** * Returns a range of all the kaleo timer instance tokens where kaleoInstanceTokenId = ? and blocking = ? and completed = ?. * * <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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KaleoTimerInstanceTokenModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param kaleoInstanceTokenId the kaleo instance token ID * @param blocking the blocking * @param completed the completed * @param start the lower bound of the range of kaleo timer instance tokens * @param end the upper bound of the range of kaleo timer instance tokens (not inclusive) * @return the range of matching kaleo timer instance tokens */ public static List<KaleoTimerInstanceToken> findByKITI_B_C( long kaleoInstanceTokenId, boolean blocking, boolean completed, int start, int end) { return getPersistence() .findByKITI_B_C(kaleoInstanceTokenId, blocking, completed, start, end); } /** * Returns an ordered range of all the kaleo timer instance tokens where kaleoInstanceTokenId = ? and blocking = ? and completed = ?. * * <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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KaleoTimerInstanceTokenModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param kaleoInstanceTokenId the kaleo instance token ID * @param blocking the blocking * @param completed the completed * @param start the lower bound of the range of kaleo timer instance tokens * @param end the upper bound of the range of kaleo timer instance tokens (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching kaleo timer instance tokens */ public static List<KaleoTimerInstanceToken> findByKITI_B_C( long kaleoInstanceTokenId, boolean blocking, boolean completed, int start, int end, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) { return getPersistence() .findByKITI_B_C(kaleoInstanceTokenId, blocking, completed, start, end, orderByComparator); } /** * Returns an ordered range of all the kaleo timer instance tokens where kaleoInstanceTokenId = ? and blocking = ? and completed = ?. * * <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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KaleoTimerInstanceTokenModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param kaleoInstanceTokenId the kaleo instance token ID * @param blocking the blocking * @param completed the completed * @param start the lower bound of the range of kaleo timer instance tokens * @param end the upper bound of the range of kaleo timer instance tokens (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching kaleo timer instance tokens */ public static List<KaleoTimerInstanceToken> findByKITI_B_C( long kaleoInstanceTokenId, boolean blocking, boolean completed, int start, int end, OrderByComparator<KaleoTimerInstanceToken> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findByKITI_B_C(kaleoInstanceTokenId, blocking, completed, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first kaleo timer instance token in the ordered set where kaleoInstanceTokenId = ? and blocking = ? and completed = ?. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param blocking the blocking * @param completed the completed * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kaleo timer instance token * @throws NoSuchTimerInstanceTokenException if a matching kaleo timer instance token could not be found */ public static KaleoTimerInstanceToken findByKITI_B_C_First( long kaleoInstanceTokenId, boolean blocking, boolean completed, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) throws com.liferay.portal.workflow.kaleo.exception.NoSuchTimerInstanceTokenException { return getPersistence() .findByKITI_B_C_First(kaleoInstanceTokenId, blocking, completed, orderByComparator); } /** * Returns the first kaleo timer instance token in the ordered set where kaleoInstanceTokenId = ? and blocking = ? and completed = ?. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param blocking the blocking * @param completed the completed * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching kaleo timer instance token, or <code>null</code> if a matching kaleo timer instance token could not be found */ public static KaleoTimerInstanceToken fetchByKITI_B_C_First( long kaleoInstanceTokenId, boolean blocking, boolean completed, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) { return getPersistence() .fetchByKITI_B_C_First(kaleoInstanceTokenId, blocking, completed, orderByComparator); } /** * Returns the last kaleo timer instance token in the ordered set where kaleoInstanceTokenId = ? and blocking = ? and completed = ?. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param blocking the blocking * @param completed the completed * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kaleo timer instance token * @throws NoSuchTimerInstanceTokenException if a matching kaleo timer instance token could not be found */ public static KaleoTimerInstanceToken findByKITI_B_C_Last( long kaleoInstanceTokenId, boolean blocking, boolean completed, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) throws com.liferay.portal.workflow.kaleo.exception.NoSuchTimerInstanceTokenException { return getPersistence() .findByKITI_B_C_Last(kaleoInstanceTokenId, blocking, completed, orderByComparator); } /** * Returns the last kaleo timer instance token in the ordered set where kaleoInstanceTokenId = ? and blocking = ? and completed = ?. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param blocking the blocking * @param completed the completed * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching kaleo timer instance token, or <code>null</code> if a matching kaleo timer instance token could not be found */ public static KaleoTimerInstanceToken fetchByKITI_B_C_Last( long kaleoInstanceTokenId, boolean blocking, boolean completed, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) { return getPersistence() .fetchByKITI_B_C_Last(kaleoInstanceTokenId, blocking, completed, orderByComparator); } /** * Returns the kaleo timer instance tokens before and after the current kaleo timer instance token in the ordered set where kaleoInstanceTokenId = ? and blocking = ? and completed = ?. * * @param kaleoTimerInstanceTokenId the primary key of the current kaleo timer instance token * @param kaleoInstanceTokenId the kaleo instance token ID * @param blocking the blocking * @param completed the completed * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next kaleo timer instance token * @throws NoSuchTimerInstanceTokenException if a kaleo timer instance token with the primary key could not be found */ public static KaleoTimerInstanceToken[] findByKITI_B_C_PrevAndNext( long kaleoTimerInstanceTokenId, long kaleoInstanceTokenId, boolean blocking, boolean completed, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) throws com.liferay.portal.workflow.kaleo.exception.NoSuchTimerInstanceTokenException { return getPersistence() .findByKITI_B_C_PrevAndNext(kaleoTimerInstanceTokenId, kaleoInstanceTokenId, blocking, completed, orderByComparator); } /** * Removes all the kaleo timer instance tokens where kaleoInstanceTokenId = ? and blocking = ? and completed = ? from the database. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param blocking the blocking * @param completed the completed */ public static void removeByKITI_B_C(long kaleoInstanceTokenId, boolean blocking, boolean completed) { getPersistence() .removeByKITI_B_C(kaleoInstanceTokenId, blocking, completed); } /** * Returns the number of kaleo timer instance tokens where kaleoInstanceTokenId = ? and blocking = ? and completed = ?. * * @param kaleoInstanceTokenId the kaleo instance token ID * @param blocking the blocking * @param completed the completed * @return the number of matching kaleo timer instance tokens */ public static int countByKITI_B_C(long kaleoInstanceTokenId, boolean blocking, boolean completed) { return getPersistence() .countByKITI_B_C(kaleoInstanceTokenId, blocking, completed); } /** * Caches the kaleo timer instance token in the entity cache if it is enabled. * * @param kaleoTimerInstanceToken the kaleo timer instance token */ public static void cacheResult( KaleoTimerInstanceToken kaleoTimerInstanceToken) { getPersistence().cacheResult(kaleoTimerInstanceToken); } /** * Caches the kaleo timer instance tokens in the entity cache if it is enabled. * * @param kaleoTimerInstanceTokens the kaleo timer instance tokens */ public static void cacheResult( List<KaleoTimerInstanceToken> kaleoTimerInstanceTokens) { getPersistence().cacheResult(kaleoTimerInstanceTokens); } /** * Creates a new kaleo timer instance token with the primary key. Does not add the kaleo timer instance token to the database. * * @param kaleoTimerInstanceTokenId the primary key for the new kaleo timer instance token * @return the new kaleo timer instance token */ public static KaleoTimerInstanceToken create(long kaleoTimerInstanceTokenId) { return getPersistence().create(kaleoTimerInstanceTokenId); } /** * Removes the kaleo timer instance token with the primary key from the database. Also notifies the appropriate model listeners. * * @param kaleoTimerInstanceTokenId the primary key of the kaleo timer instance token * @return the kaleo timer instance token that was removed * @throws NoSuchTimerInstanceTokenException if a kaleo timer instance token with the primary key could not be found */ public static KaleoTimerInstanceToken remove(long kaleoTimerInstanceTokenId) throws com.liferay.portal.workflow.kaleo.exception.NoSuchTimerInstanceTokenException { return getPersistence().remove(kaleoTimerInstanceTokenId); } public static KaleoTimerInstanceToken updateImpl( KaleoTimerInstanceToken kaleoTimerInstanceToken) { return getPersistence().updateImpl(kaleoTimerInstanceToken); } /** * Returns the kaleo timer instance token with the primary key or throws a {@link NoSuchTimerInstanceTokenException} if it could not be found. * * @param kaleoTimerInstanceTokenId the primary key of the kaleo timer instance token * @return the kaleo timer instance token * @throws NoSuchTimerInstanceTokenException if a kaleo timer instance token with the primary key could not be found */ public static KaleoTimerInstanceToken findByPrimaryKey( long kaleoTimerInstanceTokenId) throws com.liferay.portal.workflow.kaleo.exception.NoSuchTimerInstanceTokenException { return getPersistence().findByPrimaryKey(kaleoTimerInstanceTokenId); } /** * Returns the kaleo timer instance token with the primary key or returns <code>null</code> if it could not be found. * * @param kaleoTimerInstanceTokenId the primary key of the kaleo timer instance token * @return the kaleo timer instance token, or <code>null</code> if a kaleo timer instance token with the primary key could not be found */ public static KaleoTimerInstanceToken fetchByPrimaryKey( long kaleoTimerInstanceTokenId) { return getPersistence().fetchByPrimaryKey(kaleoTimerInstanceTokenId); } public static java.util.Map<java.io.Serializable, KaleoTimerInstanceToken> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys) { return getPersistence().fetchByPrimaryKeys(primaryKeys); } /** * Returns all the kaleo timer instance tokens. * * @return the kaleo timer instance tokens */ public static List<KaleoTimerInstanceToken> findAll() { return getPersistence().findAll(); } /** * Returns a range of all the kaleo timer instance tokens. * * <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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KaleoTimerInstanceTokenModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of kaleo timer instance tokens * @param end the upper bound of the range of kaleo timer instance tokens (not inclusive) * @return the range of kaleo timer instance tokens */ public static List<KaleoTimerInstanceToken> findAll(int start, int end) { return getPersistence().findAll(start, end); } /** * Returns an ordered range of all the kaleo timer instance tokens. * * <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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KaleoTimerInstanceTokenModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of kaleo timer instance tokens * @param end the upper bound of the range of kaleo timer instance tokens (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of kaleo timer instance tokens */ public static List<KaleoTimerInstanceToken> findAll(int start, int end, OrderByComparator<KaleoTimerInstanceToken> orderByComparator) { return getPersistence().findAll(start, end, orderByComparator); } /** * Returns an ordered range of all the kaleo timer instance tokens. * * <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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link KaleoTimerInstanceTokenModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of kaleo timer instance tokens * @param end the upper bound of the range of kaleo timer instance tokens (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of kaleo timer instance tokens */ public static List<KaleoTimerInstanceToken> findAll(int start, int end, OrderByComparator<KaleoTimerInstanceToken> orderByComparator, boolean retrieveFromCache) { return getPersistence() .findAll(start, end, orderByComparator, retrieveFromCache); } /** * Removes all the kaleo timer instance tokens from the database. */ public static void removeAll() { getPersistence().removeAll(); } /** * Returns the number of kaleo timer instance tokens. * * @return the number of kaleo timer instance tokens */ public static int countAll() { return getPersistence().countAll(); } public static KaleoTimerInstanceTokenPersistence getPersistence() { return _serviceTracker.getService(); } private static ServiceTracker<KaleoTimerInstanceTokenPersistence, KaleoTimerInstanceTokenPersistence> _serviceTracker = ServiceTrackerFactory.open(KaleoTimerInstanceTokenPersistence.class); }