Liferay 7.0-ce-b8 portal-impl

com.liferay.portal.service.persistence.impl
Class SubscriptionPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Subscription>
      extended by com.liferay.portal.service.persistence.impl.SubscriptionPersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Subscription>, com.liferay.portal.kernel.service.persistence.SubscriptionPersistence

@ProviderType
public class SubscriptionPersistenceImpl
extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Subscription>
implements com.liferay.portal.kernel.service.persistence.SubscriptionPersistence

The persistence implementation for the subscription service.

Caching information and settings can be found in portal.properties

See Also:
SubscriptionPersistence, SubscriptionUtil
{$generated.description}

Field Summary
protected  com.liferay.portal.kernel.service.persistence.CompanyProvider companyProvider
           
protected  com.liferay.portal.kernel.dao.orm.EntityCache entityCache
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_C_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_U_C_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_U
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_USERID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_U_C_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_C_U_C_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_U_C_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_U_C_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID
           
protected  com.liferay.portal.kernel.dao.orm.FinderCache finderCache
           
 
Fields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
SubscriptionPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the subscription persistence.
 void cacheResult(List<com.liferay.portal.kernel.model.Subscription> subscriptions)
          Caches the subscriptions in the entity cache if it is enabled.
 void cacheResult(com.liferay.portal.kernel.model.Subscription subscription)
          Caches the subscription in the entity cache if it is enabled.
protected  void cacheUniqueFindersCache(SubscriptionModelImpl subscriptionModelImpl, boolean isNew)
           
 void clearCache()
          Clears the cache for all subscriptions.
 void clearCache(List<com.liferay.portal.kernel.model.Subscription> subscriptions)
           
 void clearCache(com.liferay.portal.kernel.model.Subscription subscription)
          Clears the cache for the subscription.
protected  void clearUniqueFindersCache(SubscriptionModelImpl subscriptionModelImpl)
           
 int countAll()
          Returns the number of subscriptions.
 int countByC_C_C(long companyId, long classNameId, long classPK)
          Returns the number of subscriptions where companyId = ? and classNameId = ? and classPK = ?.
 int countByC_U_C_C(long companyId, long userId, long classNameId, long classPK)
          Returns the number of subscriptions where companyId = ? and userId = ? and classNameId = ? and classPK = ?.
 int countByC_U_C_C(long companyId, long userId, long classNameId, long[] classPKs)
          Returns the number of subscriptions where companyId = ? and userId = ? and classNameId = ? and classPK = any ?.
 int countByG_U(long groupId, long userId)
          Returns the number of subscriptions where groupId = ? and userId = ?.
 int countByU_C(long userId, long classNameId)
          Returns the number of subscriptions where userId = ? and classNameId = ?.
 int countByUserId(long userId)
          Returns the number of subscriptions where userId = ?.
 com.liferay.portal.kernel.model.Subscription create(long subscriptionId)
          Creates a new subscription with the primary key.
 void destroy()
           
 com.liferay.portal.kernel.model.Subscription fetchByC_C_C_First(long companyId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the first subscription in the ordered set where companyId = ? and classNameId = ? and classPK = ?.
 com.liferay.portal.kernel.model.Subscription fetchByC_C_C_Last(long companyId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the last subscription in the ordered set where companyId = ? and classNameId = ? and classPK = ?.
 com.liferay.portal.kernel.model.Subscription fetchByC_U_C_C(long companyId, long userId, long classNameId, long classPK)
          Returns the subscription where companyId = ? and userId = ? and classNameId = ? and classPK = ? or returns null if it could not be found.
 com.liferay.portal.kernel.model.Subscription fetchByC_U_C_C(long companyId, long userId, long classNameId, long classPK, boolean retrieveFromCache)
          Returns the subscription where companyId = ? and userId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.
 com.liferay.portal.kernel.model.Subscription fetchByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the first subscription in the ordered set where groupId = ? and userId = ?.
 com.liferay.portal.kernel.model.Subscription fetchByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the last subscription in the ordered set where groupId = ? and userId = ?.
 com.liferay.portal.kernel.model.Subscription fetchByPrimaryKey(long subscriptionId)
          Returns the subscription with the primary key or returns null if it could not be found.
 com.liferay.portal.kernel.model.Subscription fetchByPrimaryKey(Serializable primaryKey)
          Returns the subscription with the primary key or returns null if it could not be found.
 Map<Serializable,com.liferay.portal.kernel.model.Subscription> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 com.liferay.portal.kernel.model.Subscription fetchByU_C_First(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the first subscription in the ordered set where userId = ? and classNameId = ?.
 com.liferay.portal.kernel.model.Subscription fetchByU_C_Last(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the last subscription in the ordered set where userId = ? and classNameId = ?.
 com.liferay.portal.kernel.model.Subscription fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the first subscription in the ordered set where userId = ?.
 com.liferay.portal.kernel.model.Subscription fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the last subscription in the ordered set where userId = ?.
 List<com.liferay.portal.kernel.model.Subscription> findAll()
          Returns all the subscriptions.
 List<com.liferay.portal.kernel.model.Subscription> findAll(int start, int end)
          Returns a range of all the subscriptions.
 List<com.liferay.portal.kernel.model.Subscription> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns an ordered range of all the subscriptions.
 List<com.liferay.portal.kernel.model.Subscription> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the subscriptions.
 com.liferay.portal.kernel.model.Subscription findByC_C_C_First(long companyId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the first subscription in the ordered set where companyId = ? and classNameId = ? and classPK = ?.
 com.liferay.portal.kernel.model.Subscription findByC_C_C_Last(long companyId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the last subscription in the ordered set where companyId = ? and classNameId = ? and classPK = ?.
 com.liferay.portal.kernel.model.Subscription[] findByC_C_C_PrevAndNext(long subscriptionId, long companyId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the subscriptions before and after the current subscription in the ordered set where companyId = ? and classNameId = ? and classPK = ?.
 List<com.liferay.portal.kernel.model.Subscription> findByC_C_C(long companyId, long classNameId, long classPK)
          Returns all the subscriptions where companyId = ? and classNameId = ? and classPK = ?.
 List<com.liferay.portal.kernel.model.Subscription> findByC_C_C(long companyId, long classNameId, long classPK, int start, int end)
          Returns a range of all the subscriptions where companyId = ? and classNameId = ? and classPK = ?.
 List<com.liferay.portal.kernel.model.Subscription> findByC_C_C(long companyId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns an ordered range of all the subscriptions where companyId = ? and classNameId = ? and classPK = ?.
 List<com.liferay.portal.kernel.model.Subscription> findByC_C_C(long companyId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the subscriptions where companyId = ? and classNameId = ? and classPK = ?.
 com.liferay.portal.kernel.model.Subscription findByC_U_C_C(long companyId, long userId, long classNameId, long classPK)
          Returns the subscription where companyId = ? and userId = ? and classNameId = ? and classPK = ? or throws a NoSuchSubscriptionException if it could not be found.
 List<com.liferay.portal.kernel.model.Subscription> findByC_U_C_C(long companyId, long userId, long classNameId, long[] classPKs)
          Returns all the subscriptions where companyId = ? and userId = ? and classNameId = ? and classPK = any ?.
 List<com.liferay.portal.kernel.model.Subscription> findByC_U_C_C(long companyId, long userId, long classNameId, long[] classPKs, int start, int end)
          Returns a range of all the subscriptions where companyId = ? and userId = ? and classNameId = ? and classPK = any ?.
 List<com.liferay.portal.kernel.model.Subscription> findByC_U_C_C(long companyId, long userId, long classNameId, long[] classPKs, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns an ordered range of all the subscriptions where companyId = ? and userId = ? and classNameId = ? and classPK = any ?.
 List<com.liferay.portal.kernel.model.Subscription> findByC_U_C_C(long companyId, long userId, long classNameId, long[] classPKs, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the subscriptions where companyId = ? and userId = ? and classNameId = ? and classPK = ?, optionally using the finder cache.
 com.liferay.portal.kernel.model.Subscription findByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the first subscription in the ordered set where groupId = ? and userId = ?.
 com.liferay.portal.kernel.model.Subscription findByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the last subscription in the ordered set where groupId = ? and userId = ?.
 com.liferay.portal.kernel.model.Subscription[] findByG_U_PrevAndNext(long subscriptionId, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the subscriptions before and after the current subscription in the ordered set where groupId = ? and userId = ?.
 List<com.liferay.portal.kernel.model.Subscription> findByG_U(long groupId, long userId)
          Returns all the subscriptions where groupId = ? and userId = ?.
 List<com.liferay.portal.kernel.model.Subscription> findByG_U(long groupId, long userId, int start, int end)
          Returns a range of all the subscriptions where groupId = ? and userId = ?.
 List<com.liferay.portal.kernel.model.Subscription> findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns an ordered range of all the subscriptions where groupId = ? and userId = ?.
 List<com.liferay.portal.kernel.model.Subscription> findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the subscriptions where groupId = ? and userId = ?.
 com.liferay.portal.kernel.model.Subscription findByPrimaryKey(long subscriptionId)
          Returns the subscription with the primary key or throws a NoSuchSubscriptionException if it could not be found.
 com.liferay.portal.kernel.model.Subscription findByPrimaryKey(Serializable primaryKey)
          Returns the subscription with the primary key or throws a NoSuchModelException if it could not be found.
 com.liferay.portal.kernel.model.Subscription findByU_C_First(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the first subscription in the ordered set where userId = ? and classNameId = ?.
 com.liferay.portal.kernel.model.Subscription findByU_C_Last(long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the last subscription in the ordered set where userId = ? and classNameId = ?.
 com.liferay.portal.kernel.model.Subscription[] findByU_C_PrevAndNext(long subscriptionId, long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the subscriptions before and after the current subscription in the ordered set where userId = ? and classNameId = ?.
 List<com.liferay.portal.kernel.model.Subscription> findByU_C(long userId, long classNameId)
          Returns all the subscriptions where userId = ? and classNameId = ?.
 List<com.liferay.portal.kernel.model.Subscription> findByU_C(long userId, long classNameId, int start, int end)
          Returns a range of all the subscriptions where userId = ? and classNameId = ?.
 List<com.liferay.portal.kernel.model.Subscription> findByU_C(long userId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns an ordered range of all the subscriptions where userId = ? and classNameId = ?.
 List<com.liferay.portal.kernel.model.Subscription> findByU_C(long userId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the subscriptions where userId = ? and classNameId = ?.
 com.liferay.portal.kernel.model.Subscription findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the first subscription in the ordered set where userId = ?.
 com.liferay.portal.kernel.model.Subscription findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the last subscription in the ordered set where userId = ?.
 com.liferay.portal.kernel.model.Subscription[] findByUserId_PrevAndNext(long subscriptionId, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns the subscriptions before and after the current subscription in the ordered set where userId = ?.
 List<com.liferay.portal.kernel.model.Subscription> findByUserId(long userId)
          Returns all the subscriptions where userId = ?.
 List<com.liferay.portal.kernel.model.Subscription> findByUserId(long userId, int start, int end)
          Returns a range of all the subscriptions where userId = ?.
 List<com.liferay.portal.kernel.model.Subscription> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
          Returns an ordered range of all the subscriptions where userId = ?.
 List<com.liferay.portal.kernel.model.Subscription> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the subscriptions where userId = ?.
protected  com.liferay.portal.kernel.model.Subscription getByC_C_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Subscription subscription, long companyId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator, boolean previous)
           
protected  com.liferay.portal.kernel.model.Subscription getByG_U_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Subscription subscription, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator, boolean previous)
           
protected  com.liferay.portal.kernel.model.Subscription getByU_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Subscription subscription, long userId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator, boolean previous)
           
protected  com.liferay.portal.kernel.model.Subscription getByUserId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Subscription subscription, long userId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator, boolean previous)
           
protected  Map<String,Integer> getTableColumnsMap()
           
 com.liferay.portal.kernel.model.Subscription remove(long subscriptionId)
          Removes the subscription with the primary key from the database.
 com.liferay.portal.kernel.model.Subscription remove(Serializable primaryKey)
          Removes the subscription with the primary key from the database.
 void removeAll()
          Removes all the subscriptions from the database.
 void removeByC_C_C(long companyId, long classNameId, long classPK)
          Removes all the subscriptions where companyId = ? and classNameId = ? and classPK = ? from the database.
 com.liferay.portal.kernel.model.Subscription removeByC_U_C_C(long companyId, long userId, long classNameId, long classPK)
          Removes the subscription where companyId = ? and userId = ? and classNameId = ? and classPK = ? from the database.
 void removeByG_U(long groupId, long userId)
          Removes all the subscriptions where groupId = ? and userId = ? from the database.
 void removeByU_C(long userId, long classNameId)
          Removes all the subscriptions where userId = ? and classNameId = ? from the database.
 void removeByUserId(long userId)
          Removes all the subscriptions where userId = ? from the database.
protected  com.liferay.portal.kernel.model.Subscription removeImpl(com.liferay.portal.kernel.model.Subscription subscription)
           
protected  com.liferay.portal.kernel.model.Subscription toUnwrappedModel(com.liferay.portal.kernel.model.Subscription subscription)
           
 com.liferay.portal.kernel.model.Subscription updateImpl(com.liferay.portal.kernel.model.Subscription subscription)
           
 
Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID

FINDER_PATH_COUNT_BY_USERID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_USERID

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U

FINDER_PATH_COUNT_BY_G_U

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_U

FINDER_PATH_WITH_PAGINATION_FIND_BY_U_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U_C

FINDER_PATH_COUNT_BY_U_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C_C

FINDER_PATH_COUNT_BY_C_C_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_C_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_U_C_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_U_C_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_U_C_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_U_C_C

FINDER_PATH_FETCH_BY_C_U_C_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_U_C_C

FINDER_PATH_COUNT_BY_C_U_C_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_U_C_C

FINDER_PATH_WITH_PAGINATION_COUNT_BY_C_U_C_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_C_U_C_C

companyProvider

@BeanReference(type=com.liferay.portal.kernel.service.persistence.CompanyProviderWrapper.class)
protected com.liferay.portal.kernel.service.persistence.CompanyProvider companyProvider

entityCache

protected com.liferay.portal.kernel.dao.orm.EntityCache entityCache

finderCache

protected com.liferay.portal.kernel.dao.orm.FinderCache finderCache
Constructor Detail

SubscriptionPersistenceImpl

public SubscriptionPersistenceImpl()
Method Detail

findByUserId

public List<com.liferay.portal.kernel.model.Subscription> findByUserId(long userId)
Returns all the subscriptions where userId = ?.

Specified by:
findByUserId in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
Returns:
the matching subscriptions

findByUserId

public List<com.liferay.portal.kernel.model.Subscription> findByUserId(long userId,
                                                                       int start,
                                                                       int end)
Returns a range of all the subscriptions where userId = ?.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findByUserId in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
start - the lower bound of the range of subscriptions
end - the upper bound of the range of subscriptions (not inclusive)
Returns:
the range of matching subscriptions

findByUserId

public List<com.liferay.portal.kernel.model.Subscription> findByUserId(long userId,
                                                                       int start,
                                                                       int end,
                                                                       com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
Returns an ordered range of all the subscriptions where userId = ?.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findByUserId in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
start - the lower bound of the range of subscriptions
end - the upper bound of the range of subscriptions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching subscriptions

findByUserId

public List<com.liferay.portal.kernel.model.Subscription> findByUserId(long userId,
                                                                       int start,
                                                                       int end,
                                                                       com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator,
                                                                       boolean retrieveFromCache)
Returns an ordered range of all the subscriptions where userId = ?.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findByUserId in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
start - the lower bound of the range of subscriptions
end - the upper bound of the range of subscriptions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching subscriptions

findByUserId_First

public com.liferay.portal.kernel.model.Subscription findByUserId_First(long userId,
                                                                       com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
                                                                throws com.liferay.portal.kernel.exception.NoSuchSubscriptionException
Returns the first subscription in the ordered set where userId = ?.

Specified by:
findByUserId_First in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching subscription
Throws:
com.liferay.portal.kernel.exception.NoSuchSubscriptionException - if a matching subscription could not be found

fetchByUserId_First

public com.liferay.portal.kernel.model.Subscription fetchByUserId_First(long userId,
                                                                        com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
Returns the first subscription in the ordered set where userId = ?.

Specified by:
fetchByUserId_First in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching subscription, or null if a matching subscription could not be found

findByUserId_Last

public com.liferay.portal.kernel.model.Subscription findByUserId_Last(long userId,
                                                                      com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
                                                               throws com.liferay.portal.kernel.exception.NoSuchSubscriptionException
Returns the last subscription in the ordered set where userId = ?.

Specified by:
findByUserId_Last in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching subscription
Throws:
com.liferay.portal.kernel.exception.NoSuchSubscriptionException - if a matching subscription could not be found

fetchByUserId_Last

public com.liferay.portal.kernel.model.Subscription fetchByUserId_Last(long userId,
                                                                       com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
Returns the last subscription in the ordered set where userId = ?.

Specified by:
fetchByUserId_Last in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching subscription, or null if a matching subscription could not be found

findByUserId_PrevAndNext

public com.liferay.portal.kernel.model.Subscription[] findByUserId_PrevAndNext(long subscriptionId,
                                                                               long userId,
                                                                               com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
                                                                        throws com.liferay.portal.kernel.exception.NoSuchSubscriptionException
Returns the subscriptions before and after the current subscription in the ordered set where userId = ?.

Specified by:
findByUserId_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
subscriptionId - the primary key of the current subscription
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next subscription
Throws:
com.liferay.portal.kernel.exception.NoSuchSubscriptionException - if a subscription with the primary key could not be found

getByUserId_PrevAndNext

protected com.liferay.portal.kernel.model.Subscription getByUserId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                               com.liferay.portal.kernel.model.Subscription subscription,
                                                                               long userId,
                                                                               com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator,
                                                                               boolean previous)

removeByUserId

public void removeByUserId(long userId)
Removes all the subscriptions where userId = ? from the database.

Specified by:
removeByUserId in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID

countByUserId

public int countByUserId(long userId)
Returns the number of subscriptions where userId = ?.

Specified by:
countByUserId in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
Returns:
the number of matching subscriptions

findByG_U

public List<com.liferay.portal.kernel.model.Subscription> findByG_U(long groupId,
                                                                    long userId)
Returns all the subscriptions where groupId = ? and userId = ?.

Specified by:
findByG_U in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
groupId - the group ID
userId - the user ID
Returns:
the matching subscriptions

findByG_U

public List<com.liferay.portal.kernel.model.Subscription> findByG_U(long groupId,
                                                                    long userId,
                                                                    int start,
                                                                    int end)
Returns a range of all the subscriptions where groupId = ? and userId = ?.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findByG_U in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
groupId - the group ID
userId - the user ID
start - the lower bound of the range of subscriptions
end - the upper bound of the range of subscriptions (not inclusive)
Returns:
the range of matching subscriptions

findByG_U

public List<com.liferay.portal.kernel.model.Subscription> findByG_U(long groupId,
                                                                    long userId,
                                                                    int start,
                                                                    int end,
                                                                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
Returns an ordered range of all the subscriptions where groupId = ? and userId = ?.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findByG_U in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
groupId - the group ID
userId - the user ID
start - the lower bound of the range of subscriptions
end - the upper bound of the range of subscriptions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching subscriptions

findByG_U

public List<com.liferay.portal.kernel.model.Subscription> findByG_U(long groupId,
                                                                    long userId,
                                                                    int start,
                                                                    int end,
                                                                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator,
                                                                    boolean retrieveFromCache)
Returns an ordered range of all the subscriptions where groupId = ? and userId = ?.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findByG_U in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
groupId - the group ID
userId - the user ID
start - the lower bound of the range of subscriptions
end - the upper bound of the range of subscriptions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching subscriptions

findByG_U_First

public com.liferay.portal.kernel.model.Subscription findByG_U_First(long groupId,
                                                                    long userId,
                                                                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
                                                             throws com.liferay.portal.kernel.exception.NoSuchSubscriptionException
Returns the first subscription in the ordered set where groupId = ? and userId = ?.

Specified by:
findByG_U_First in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching subscription
Throws:
com.liferay.portal.kernel.exception.NoSuchSubscriptionException - if a matching subscription could not be found

fetchByG_U_First

public com.liferay.portal.kernel.model.Subscription fetchByG_U_First(long groupId,
                                                                     long userId,
                                                                     com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
Returns the first subscription in the ordered set where groupId = ? and userId = ?.

Specified by:
fetchByG_U_First in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching subscription, or null if a matching subscription could not be found

findByG_U_Last

public com.liferay.portal.kernel.model.Subscription findByG_U_Last(long groupId,
                                                                   long userId,
                                                                   com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
                                                            throws com.liferay.portal.kernel.exception.NoSuchSubscriptionException
Returns the last subscription in the ordered set where groupId = ? and userId = ?.

Specified by:
findByG_U_Last in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching subscription
Throws:
com.liferay.portal.kernel.exception.NoSuchSubscriptionException - if a matching subscription could not be found

fetchByG_U_Last

public com.liferay.portal.kernel.model.Subscription fetchByG_U_Last(long groupId,
                                                                    long userId,
                                                                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
Returns the last subscription in the ordered set where groupId = ? and userId = ?.

Specified by:
fetchByG_U_Last in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching subscription, or null if a matching subscription could not be found

findByG_U_PrevAndNext

public com.liferay.portal.kernel.model.Subscription[] findByG_U_PrevAndNext(long subscriptionId,
                                                                            long groupId,
                                                                            long userId,
                                                                            com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
                                                                     throws com.liferay.portal.kernel.exception.NoSuchSubscriptionException
Returns the subscriptions before and after the current subscription in the ordered set where groupId = ? and userId = ?.

Specified by:
findByG_U_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
subscriptionId - the primary key of the current subscription
groupId - the group ID
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next subscription
Throws:
com.liferay.portal.kernel.exception.NoSuchSubscriptionException - if a subscription with the primary key could not be found

getByG_U_PrevAndNext

protected com.liferay.portal.kernel.model.Subscription getByG_U_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                            com.liferay.portal.kernel.model.Subscription subscription,
                                                                            long groupId,
                                                                            long userId,
                                                                            com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator,
                                                                            boolean previous)

removeByG_U

public void removeByG_U(long groupId,
                        long userId)
Removes all the subscriptions where groupId = ? and userId = ? from the database.

Specified by:
removeByG_U in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
groupId - the group ID
userId - the user ID

countByG_U

public int countByG_U(long groupId,
                      long userId)
Returns the number of subscriptions where groupId = ? and userId = ?.

Specified by:
countByG_U in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
groupId - the group ID
userId - the user ID
Returns:
the number of matching subscriptions

findByU_C

public List<com.liferay.portal.kernel.model.Subscription> findByU_C(long userId,
                                                                    long classNameId)
Returns all the subscriptions where userId = ? and classNameId = ?.

Specified by:
findByU_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
classNameId - the class name ID
Returns:
the matching subscriptions

findByU_C

public List<com.liferay.portal.kernel.model.Subscription> findByU_C(long userId,
                                                                    long classNameId,
                                                                    int start,
                                                                    int end)
Returns a range of all the subscriptions where userId = ? and classNameId = ?.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findByU_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
classNameId - the class name ID
start - the lower bound of the range of subscriptions
end - the upper bound of the range of subscriptions (not inclusive)
Returns:
the range of matching subscriptions

findByU_C

public List<com.liferay.portal.kernel.model.Subscription> findByU_C(long userId,
                                                                    long classNameId,
                                                                    int start,
                                                                    int end,
                                                                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
Returns an ordered range of all the subscriptions where userId = ? and classNameId = ?.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findByU_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
classNameId - the class name ID
start - the lower bound of the range of subscriptions
end - the upper bound of the range of subscriptions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching subscriptions

findByU_C

public List<com.liferay.portal.kernel.model.Subscription> findByU_C(long userId,
                                                                    long classNameId,
                                                                    int start,
                                                                    int end,
                                                                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator,
                                                                    boolean retrieveFromCache)
Returns an ordered range of all the subscriptions where userId = ? and classNameId = ?.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findByU_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
classNameId - the class name ID
start - the lower bound of the range of subscriptions
end - the upper bound of the range of subscriptions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching subscriptions

findByU_C_First

public com.liferay.portal.kernel.model.Subscription findByU_C_First(long userId,
                                                                    long classNameId,
                                                                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
                                                             throws com.liferay.portal.kernel.exception.NoSuchSubscriptionException
Returns the first subscription in the ordered set where userId = ? and classNameId = ?.

Specified by:
findByU_C_First in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching subscription
Throws:
com.liferay.portal.kernel.exception.NoSuchSubscriptionException - if a matching subscription could not be found

fetchByU_C_First

public com.liferay.portal.kernel.model.Subscription fetchByU_C_First(long userId,
                                                                     long classNameId,
                                                                     com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
Returns the first subscription in the ordered set where userId = ? and classNameId = ?.

Specified by:
fetchByU_C_First in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching subscription, or null if a matching subscription could not be found

findByU_C_Last

public com.liferay.portal.kernel.model.Subscription findByU_C_Last(long userId,
                                                                   long classNameId,
                                                                   com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
                                                            throws com.liferay.portal.kernel.exception.NoSuchSubscriptionException
Returns the last subscription in the ordered set where userId = ? and classNameId = ?.

Specified by:
findByU_C_Last in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching subscription
Throws:
com.liferay.portal.kernel.exception.NoSuchSubscriptionException - if a matching subscription could not be found

fetchByU_C_Last

public com.liferay.portal.kernel.model.Subscription fetchByU_C_Last(long userId,
                                                                    long classNameId,
                                                                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
Returns the last subscription in the ordered set where userId = ? and classNameId = ?.

Specified by:
fetchByU_C_Last in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching subscription, or null if a matching subscription could not be found

findByU_C_PrevAndNext

public com.liferay.portal.kernel.model.Subscription[] findByU_C_PrevAndNext(long subscriptionId,
                                                                            long userId,
                                                                            long classNameId,
                                                                            com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
                                                                     throws com.liferay.portal.kernel.exception.NoSuchSubscriptionException
Returns the subscriptions before and after the current subscription in the ordered set where userId = ? and classNameId = ?.

Specified by:
findByU_C_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
subscriptionId - the primary key of the current subscription
userId - the user ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next subscription
Throws:
com.liferay.portal.kernel.exception.NoSuchSubscriptionException - if a subscription with the primary key could not be found

getByU_C_PrevAndNext

protected com.liferay.portal.kernel.model.Subscription getByU_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                            com.liferay.portal.kernel.model.Subscription subscription,
                                                                            long userId,
                                                                            long classNameId,
                                                                            com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator,
                                                                            boolean previous)

removeByU_C

public void removeByU_C(long userId,
                        long classNameId)
Removes all the subscriptions where userId = ? and classNameId = ? from the database.

Specified by:
removeByU_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
classNameId - the class name ID

countByU_C

public int countByU_C(long userId,
                      long classNameId)
Returns the number of subscriptions where userId = ? and classNameId = ?.

Specified by:
countByU_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
userId - the user ID
classNameId - the class name ID
Returns:
the number of matching subscriptions

findByC_C_C

public List<com.liferay.portal.kernel.model.Subscription> findByC_C_C(long companyId,
                                                                      long classNameId,
                                                                      long classPK)
Returns all the subscriptions where companyId = ? and classNameId = ? and classPK = ?.

Specified by:
findByC_C_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
Returns:
the matching subscriptions

findByC_C_C

public List<com.liferay.portal.kernel.model.Subscription> findByC_C_C(long companyId,
                                                                      long classNameId,
                                                                      long classPK,
                                                                      int start,
                                                                      int end)
Returns a range of all the subscriptions where companyId = ? and classNameId = ? and classPK = ?.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findByC_C_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of subscriptions
end - the upper bound of the range of subscriptions (not inclusive)
Returns:
the range of matching subscriptions

findByC_C_C

public List<com.liferay.portal.kernel.model.Subscription> findByC_C_C(long companyId,
                                                                      long classNameId,
                                                                      long classPK,
                                                                      int start,
                                                                      int end,
                                                                      com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
Returns an ordered range of all the subscriptions where companyId = ? and classNameId = ? and classPK = ?.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findByC_C_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of subscriptions
end - the upper bound of the range of subscriptions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching subscriptions

findByC_C_C

public List<com.liferay.portal.kernel.model.Subscription> findByC_C_C(long companyId,
                                                                      long classNameId,
                                                                      long classPK,
                                                                      int start,
                                                                      int end,
                                                                      com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator,
                                                                      boolean retrieveFromCache)
Returns an ordered range of all the subscriptions where companyId = ? and classNameId = ? and classPK = ?.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findByC_C_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of subscriptions
end - the upper bound of the range of subscriptions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching subscriptions

findByC_C_C_First

public com.liferay.portal.kernel.model.Subscription findByC_C_C_First(long companyId,
                                                                      long classNameId,
                                                                      long classPK,
                                                                      com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
                                                               throws com.liferay.portal.kernel.exception.NoSuchSubscriptionException
Returns the first subscription in the ordered set where companyId = ? and classNameId = ? and classPK = ?.

Specified by:
findByC_C_C_First in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching subscription
Throws:
com.liferay.portal.kernel.exception.NoSuchSubscriptionException - if a matching subscription could not be found

fetchByC_C_C_First

public com.liferay.portal.kernel.model.Subscription fetchByC_C_C_First(long companyId,
                                                                       long classNameId,
                                                                       long classPK,
                                                                       com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
Returns the first subscription in the ordered set where companyId = ? and classNameId = ? and classPK = ?.

Specified by:
fetchByC_C_C_First in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching subscription, or null if a matching subscription could not be found

findByC_C_C_Last

public com.liferay.portal.kernel.model.Subscription findByC_C_C_Last(long companyId,
                                                                     long classNameId,
                                                                     long classPK,
                                                                     com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
                                                              throws com.liferay.portal.kernel.exception.NoSuchSubscriptionException
Returns the last subscription in the ordered set where companyId = ? and classNameId = ? and classPK = ?.

Specified by:
findByC_C_C_Last in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching subscription
Throws:
com.liferay.portal.kernel.exception.NoSuchSubscriptionException - if a matching subscription could not be found

fetchByC_C_C_Last

public com.liferay.portal.kernel.model.Subscription fetchByC_C_C_Last(long companyId,
                                                                      long classNameId,
                                                                      long classPK,
                                                                      com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
Returns the last subscription in the ordered set where companyId = ? and classNameId = ? and classPK = ?.

Specified by:
fetchByC_C_C_Last in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching subscription, or null if a matching subscription could not be found

findByC_C_C_PrevAndNext

public com.liferay.portal.kernel.model.Subscription[] findByC_C_C_PrevAndNext(long subscriptionId,
                                                                              long companyId,
                                                                              long classNameId,
                                                                              long classPK,
                                                                              com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
                                                                       throws com.liferay.portal.kernel.exception.NoSuchSubscriptionException
Returns the subscriptions before and after the current subscription in the ordered set where companyId = ? and classNameId = ? and classPK = ?.

Specified by:
findByC_C_C_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
subscriptionId - the primary key of the current subscription
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next subscription
Throws:
com.liferay.portal.kernel.exception.NoSuchSubscriptionException - if a subscription with the primary key could not be found

getByC_C_C_PrevAndNext

protected com.liferay.portal.kernel.model.Subscription getByC_C_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                              com.liferay.portal.kernel.model.Subscription subscription,
                                                                              long companyId,
                                                                              long classNameId,
                                                                              long classPK,
                                                                              com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator,
                                                                              boolean previous)

removeByC_C_C

public void removeByC_C_C(long companyId,
                          long classNameId,
                          long classPK)
Removes all the subscriptions where companyId = ? and classNameId = ? and classPK = ? from the database.

Specified by:
removeByC_C_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k

countByC_C_C

public int countByC_C_C(long companyId,
                        long classNameId,
                        long classPK)
Returns the number of subscriptions where companyId = ? and classNameId = ? and classPK = ?.

Specified by:
countByC_C_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching subscriptions

findByC_U_C_C

public List<com.liferay.portal.kernel.model.Subscription> findByC_U_C_C(long companyId,
                                                                        long userId,
                                                                        long classNameId,
                                                                        long[] classPKs)
Returns all the subscriptions where companyId = ? and userId = ? and classNameId = ? and classPK = any ?.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findByC_U_C_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
userId - the user ID
classNameId - the class name ID
classPKs - the class p ks
Returns:
the matching subscriptions

findByC_U_C_C

public List<com.liferay.portal.kernel.model.Subscription> findByC_U_C_C(long companyId,
                                                                        long userId,
                                                                        long classNameId,
                                                                        long[] classPKs,
                                                                        int start,
                                                                        int end)
Returns a range of all the subscriptions where companyId = ? and userId = ? and classNameId = ? and classPK = any ?.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findByC_U_C_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
userId - the user ID
classNameId - the class name ID
classPKs - the class p ks
start - the lower bound of the range of subscriptions
end - the upper bound of the range of subscriptions (not inclusive)
Returns:
the range of matching subscriptions

findByC_U_C_C

public List<com.liferay.portal.kernel.model.Subscription> findByC_U_C_C(long companyId,
                                                                        long userId,
                                                                        long classNameId,
                                                                        long[] classPKs,
                                                                        int start,
                                                                        int end,
                                                                        com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
Returns an ordered range of all the subscriptions where companyId = ? and userId = ? and classNameId = ? and classPK = any ?.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findByC_U_C_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
userId - the user ID
classNameId - the class name ID
classPKs - the class p ks
start - the lower bound of the range of subscriptions
end - the upper bound of the range of subscriptions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching subscriptions

findByC_U_C_C

public List<com.liferay.portal.kernel.model.Subscription> findByC_U_C_C(long companyId,
                                                                        long userId,
                                                                        long classNameId,
                                                                        long[] classPKs,
                                                                        int start,
                                                                        int end,
                                                                        com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator,
                                                                        boolean retrieveFromCache)
Returns an ordered range of all the subscriptions where companyId = ? and userId = ? and classNameId = ? and classPK = ?, optionally using the finder cache.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findByC_U_C_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of subscriptions
end - the upper bound of the range of subscriptions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching subscriptions

findByC_U_C_C

public com.liferay.portal.kernel.model.Subscription findByC_U_C_C(long companyId,
                                                                  long userId,
                                                                  long classNameId,
                                                                  long classPK)
                                                           throws com.liferay.portal.kernel.exception.NoSuchSubscriptionException
Returns the subscription where companyId = ? and userId = ? and classNameId = ? and classPK = ? or throws a NoSuchSubscriptionException if it could not be found.

Specified by:
findByC_U_C_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
Returns:
the matching subscription
Throws:
com.liferay.portal.kernel.exception.NoSuchSubscriptionException - if a matching subscription could not be found

fetchByC_U_C_C

public com.liferay.portal.kernel.model.Subscription fetchByC_U_C_C(long companyId,
                                                                   long userId,
                                                                   long classNameId,
                                                                   long classPK)
Returns the subscription where companyId = ? and userId = ? and classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_U_C_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
Returns:
the matching subscription, or null if a matching subscription could not be found

fetchByC_U_C_C

public com.liferay.portal.kernel.model.Subscription fetchByC_U_C_C(long companyId,
                                                                   long userId,
                                                                   long classNameId,
                                                                   long classPK,
                                                                   boolean retrieveFromCache)
Returns the subscription where companyId = ? and userId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByC_U_C_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching subscription, or null if a matching subscription could not be found

removeByC_U_C_C

public com.liferay.portal.kernel.model.Subscription removeByC_U_C_C(long companyId,
                                                                    long userId,
                                                                    long classNameId,
                                                                    long classPK)
                                                             throws com.liferay.portal.kernel.exception.NoSuchSubscriptionException
Removes the subscription where companyId = ? and userId = ? and classNameId = ? and classPK = ? from the database.

Specified by:
removeByC_U_C_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
Returns:
the subscription that was removed
Throws:
com.liferay.portal.kernel.exception.NoSuchSubscriptionException

countByC_U_C_C

public int countByC_U_C_C(long companyId,
                          long userId,
                          long classNameId,
                          long classPK)
Returns the number of subscriptions where companyId = ? and userId = ? and classNameId = ? and classPK = ?.

Specified by:
countByC_U_C_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
userId - the user ID
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching subscriptions

countByC_U_C_C

public int countByC_U_C_C(long companyId,
                          long userId,
                          long classNameId,
                          long[] classPKs)
Returns the number of subscriptions where companyId = ? and userId = ? and classNameId = ? and classPK = any ?.

Specified by:
countByC_U_C_C in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
companyId - the company ID
userId - the user ID
classNameId - the class name ID
classPKs - the class p ks
Returns:
the number of matching subscriptions

cacheResult

public void cacheResult(com.liferay.portal.kernel.model.Subscription subscription)
Caches the subscription in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
subscription - the subscription

cacheResult

public void cacheResult(List<com.liferay.portal.kernel.model.Subscription> subscriptions)
Caches the subscriptions in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
subscriptions - the subscriptions

clearCache

public void clearCache()
Clears the cache for all subscriptions.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Subscription>
Overrides:
clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Subscription>

clearCache

public void clearCache(com.liferay.portal.kernel.model.Subscription subscription)
Clears the cache for the subscription.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Subscription>
Overrides:
clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Subscription>

clearCache

public void clearCache(List<com.liferay.portal.kernel.model.Subscription> subscriptions)
Specified by:
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Subscription>
Overrides:
clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Subscription>

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(SubscriptionModelImpl subscriptionModelImpl,
                                       boolean isNew)

clearUniqueFindersCache

protected void clearUniqueFindersCache(SubscriptionModelImpl subscriptionModelImpl)

create

public com.liferay.portal.kernel.model.Subscription create(long subscriptionId)
Creates a new subscription with the primary key. Does not add the subscription to the database.

Specified by:
create in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
subscriptionId - the primary key for the new subscription
Returns:
the new subscription

remove

public com.liferay.portal.kernel.model.Subscription remove(long subscriptionId)
                                                    throws com.liferay.portal.kernel.exception.NoSuchSubscriptionException
Removes the subscription with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
subscriptionId - the primary key of the subscription
Returns:
the subscription that was removed
Throws:
com.liferay.portal.kernel.exception.NoSuchSubscriptionException - if a subscription with the primary key could not be found

remove

public com.liferay.portal.kernel.model.Subscription remove(Serializable primaryKey)
                                                    throws com.liferay.portal.kernel.exception.NoSuchSubscriptionException
Removes the subscription with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Subscription>
Overrides:
remove in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Subscription>
Parameters:
primaryKey - the primary key of the subscription
Returns:
the subscription that was removed
Throws:
com.liferay.portal.kernel.exception.NoSuchSubscriptionException - if a subscription with the primary key could not be found

removeImpl

protected com.liferay.portal.kernel.model.Subscription removeImpl(com.liferay.portal.kernel.model.Subscription subscription)
Overrides:
removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Subscription>

updateImpl

public com.liferay.portal.kernel.model.Subscription updateImpl(com.liferay.portal.kernel.model.Subscription subscription)
Specified by:
updateImpl in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Overrides:
updateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Subscription>

toUnwrappedModel

protected com.liferay.portal.kernel.model.Subscription toUnwrappedModel(com.liferay.portal.kernel.model.Subscription subscription)

findByPrimaryKey

public com.liferay.portal.kernel.model.Subscription findByPrimaryKey(Serializable primaryKey)
                                                              throws com.liferay.portal.kernel.exception.NoSuchSubscriptionException
Returns the subscription with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Subscription>
Overrides:
findByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Subscription>
Parameters:
primaryKey - the primary key of the subscription
Returns:
the subscription
Throws:
com.liferay.portal.kernel.exception.NoSuchSubscriptionException - if a subscription with the primary key could not be found

findByPrimaryKey

public com.liferay.portal.kernel.model.Subscription findByPrimaryKey(long subscriptionId)
                                                              throws com.liferay.portal.kernel.exception.NoSuchSubscriptionException
Returns the subscription with the primary key or throws a NoSuchSubscriptionException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
subscriptionId - the primary key of the subscription
Returns:
the subscription
Throws:
com.liferay.portal.kernel.exception.NoSuchSubscriptionException - if a subscription with the primary key could not be found

fetchByPrimaryKey

public com.liferay.portal.kernel.model.Subscription fetchByPrimaryKey(Serializable primaryKey)
Returns the subscription with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Subscription>
Overrides:
fetchByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Subscription>
Parameters:
primaryKey - the primary key of the subscription
Returns:
the subscription, or null if a subscription with the primary key could not be found

fetchByPrimaryKey

public com.liferay.portal.kernel.model.Subscription fetchByPrimaryKey(long subscriptionId)
Returns the subscription with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
subscriptionId - the primary key of the subscription
Returns:
the subscription, or null if a subscription with the primary key could not be found

fetchByPrimaryKeys

public Map<Serializable,com.liferay.portal.kernel.model.Subscription> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Subscription>
Specified by:
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Overrides:
fetchByPrimaryKeys in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Subscription>

findAll

public List<com.liferay.portal.kernel.model.Subscription> findAll()
Returns all the subscriptions.

Specified by:
findAll in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Returns:
the subscriptions

findAll

public List<com.liferay.portal.kernel.model.Subscription> findAll(int start,
                                                                  int end)
Returns a range of all the subscriptions.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findAll in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
start - the lower bound of the range of subscriptions
end - the upper bound of the range of subscriptions (not inclusive)
Returns:
the range of subscriptions

findAll

public List<com.liferay.portal.kernel.model.Subscription> findAll(int start,
                                                                  int end,
                                                                  com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator)
Returns an ordered range of all the subscriptions.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findAll in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
start - the lower bound of the range of subscriptions
end - the upper bound of the range of subscriptions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of subscriptions

findAll

public List<com.liferay.portal.kernel.model.Subscription> findAll(int start,
                                                                  int end,
                                                                  com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Subscription> orderByComparator,
                                                                  boolean retrieveFromCache)
Returns an ordered range of all the subscriptions.

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 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 QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SubscriptionModelImpl. 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.

Specified by:
findAll in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Parameters:
start - the lower bound of the range of subscriptions
end - the upper bound of the range of subscriptions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of subscriptions

removeAll

public void removeAll()
Removes all the subscriptions from the database.

Specified by:
removeAll in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence

countAll

public int countAll()
Returns the number of subscriptions.

Specified by:
countAll in interface com.liferay.portal.kernel.service.persistence.SubscriptionPersistence
Returns:
the number of subscriptions

getTableColumnsMap

protected Map<String,Integer> getTableColumnsMap()
Overrides:
getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Subscription>

afterPropertiesSet

public void afterPropertiesSet()
Initializes the subscription persistence.


destroy

public void destroy()

Liferay 7.0-ce-b8 portal-impl