Liferay 7.0-ce-b4

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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<RecentLayoutRevision>
      extended by com.liferay.portal.service.persistence.impl.RecentLayoutRevisionPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<RecentLayoutRevision>, RecentLayoutRevisionPersistence

@ProviderType
public class RecentLayoutRevisionPersistenceImpl
extends BasePersistenceImpl<RecentLayoutRevision>
implements RecentLayoutRevisionPersistence

The persistence implementation for the recent layout revision service.

Caching information and settings can be found in portal.properties

See Also:
RecentLayoutRevisionPersistence, RecentLayoutRevisionUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
protected  CompanyProvider companyProvider
           
protected  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 FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_LAYOUTREVISIONID
           
static FinderPath FINDER_PATH_COUNT_BY_U_L_P
           
static FinderPath FINDER_PATH_COUNT_BY_USERID
           
static FinderPath FINDER_PATH_FETCH_BY_U_L_P
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_LAYOUTREVISIONID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LAYOUTREVISIONID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID
           
protected  FinderCache finderCache
           
 
Fields inherited from class com.liferay.portal.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
RecentLayoutRevisionPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the recent layout revision persistence.
 void cacheResult(List<RecentLayoutRevision> recentLayoutRevisions)
          Caches the recent layout revisions in the entity cache if it is enabled.
 void cacheResult(RecentLayoutRevision recentLayoutRevision)
          Caches the recent layout revision in the entity cache if it is enabled.
protected  void cacheUniqueFindersCache(RecentLayoutRevisionModelImpl recentLayoutRevisionModelImpl, boolean isNew)
           
 void clearCache()
          Clears the cache for all recent layout revisions.
 void clearCache(List<RecentLayoutRevision> recentLayoutRevisions)
          Clears the cache for a List instances of this model.
 void clearCache(RecentLayoutRevision recentLayoutRevision)
          Clears the cache for the recent layout revision.
protected  void clearUniqueFindersCache(RecentLayoutRevisionModelImpl recentLayoutRevisionModelImpl)
           
 int countAll()
          Returns the number of recent layout revisions.
 int countByGroupId(long groupId)
          Returns the number of recent layout revisions where groupId = ?.
 int countByLayoutRevisionId(long layoutRevisionId)
          Returns the number of recent layout revisions where layoutRevisionId = ?.
 int countByU_L_P(long userId, long layoutSetBranchId, long plid)
          Returns the number of recent layout revisions where userId = ? and layoutSetBranchId = ? and plid = ?.
 int countByUserId(long userId)
          Returns the number of recent layout revisions where userId = ?.
 RecentLayoutRevision create(long recentLayoutRevisionId)
          Creates a new recent layout revision with the primary key.
 void destroy()
           
 RecentLayoutRevision fetchByGroupId_First(long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the first recent layout revision in the ordered set where groupId = ?.
 RecentLayoutRevision fetchByGroupId_Last(long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the last recent layout revision in the ordered set where groupId = ?.
 RecentLayoutRevision fetchByLayoutRevisionId_First(long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the first recent layout revision in the ordered set where layoutRevisionId = ?.
 RecentLayoutRevision fetchByLayoutRevisionId_Last(long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the last recent layout revision in the ordered set where layoutRevisionId = ?.
 RecentLayoutRevision fetchByPrimaryKey(long recentLayoutRevisionId)
          Returns the recent layout revision with the primary key or returns null if it could not be found.
 RecentLayoutRevision fetchByPrimaryKey(Serializable primaryKey)
          Returns the recent layout revision with the primary key or returns null if it could not be found.
 Map<Serializable,RecentLayoutRevision> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 RecentLayoutRevision fetchByU_L_P(long userId, long layoutSetBranchId, long plid)
          Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or returns null if it could not be found.
 RecentLayoutRevision fetchByU_L_P(long userId, long layoutSetBranchId, long plid, boolean retrieveFromCache)
          Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or returns null if it could not be found, optionally using the finder cache.
 RecentLayoutRevision fetchByUserId_First(long userId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the first recent layout revision in the ordered set where userId = ?.
 RecentLayoutRevision fetchByUserId_Last(long userId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the last recent layout revision in the ordered set where userId = ?.
 List<RecentLayoutRevision> findAll()
          Returns all the recent layout revisions.
 List<RecentLayoutRevision> findAll(int start, int end)
          Returns a range of all the recent layout revisions.
 List<RecentLayoutRevision> findAll(int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns an ordered range of all the recent layout revisions.
 List<RecentLayoutRevision> findAll(int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the recent layout revisions.
 RecentLayoutRevision findByGroupId_First(long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the first recent layout revision in the ordered set where groupId = ?.
 RecentLayoutRevision findByGroupId_Last(long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the last recent layout revision in the ordered set where groupId = ?.
 RecentLayoutRevision[] findByGroupId_PrevAndNext(long recentLayoutRevisionId, long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the recent layout revisions before and after the current recent layout revision in the ordered set where groupId = ?.
 List<RecentLayoutRevision> findByGroupId(long groupId)
          Returns all the recent layout revisions where groupId = ?.
 List<RecentLayoutRevision> findByGroupId(long groupId, int start, int end)
          Returns a range of all the recent layout revisions where groupId = ?.
 List<RecentLayoutRevision> findByGroupId(long groupId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns an ordered range of all the recent layout revisions where groupId = ?.
 List<RecentLayoutRevision> findByGroupId(long groupId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the recent layout revisions where groupId = ?.
 RecentLayoutRevision findByLayoutRevisionId_First(long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the first recent layout revision in the ordered set where layoutRevisionId = ?.
 RecentLayoutRevision findByLayoutRevisionId_Last(long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the last recent layout revision in the ordered set where layoutRevisionId = ?.
 RecentLayoutRevision[] findByLayoutRevisionId_PrevAndNext(long recentLayoutRevisionId, long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the recent layout revisions before and after the current recent layout revision in the ordered set where layoutRevisionId = ?.
 List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId)
          Returns all the recent layout revisions where layoutRevisionId = ?.
 List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId, int start, int end)
          Returns a range of all the recent layout revisions where layoutRevisionId = ?.
 List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns an ordered range of all the recent layout revisions where layoutRevisionId = ?.
 List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the recent layout revisions where layoutRevisionId = ?.
 RecentLayoutRevision findByPrimaryKey(long recentLayoutRevisionId)
          Returns the recent layout revision with the primary key or throws a NoSuchRecentLayoutRevisionException if it could not be found.
 RecentLayoutRevision findByPrimaryKey(Serializable primaryKey)
          Returns the recent layout revision with the primary key or throws a NoSuchModelException if it could not be found.
 RecentLayoutRevision findByU_L_P(long userId, long layoutSetBranchId, long plid)
          Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or throws a NoSuchRecentLayoutRevisionException if it could not be found.
 RecentLayoutRevision findByUserId_First(long userId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the first recent layout revision in the ordered set where userId = ?.
 RecentLayoutRevision findByUserId_Last(long userId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the last recent layout revision in the ordered set where userId = ?.
 RecentLayoutRevision[] findByUserId_PrevAndNext(long recentLayoutRevisionId, long userId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the recent layout revisions before and after the current recent layout revision in the ordered set where userId = ?.
 List<RecentLayoutRevision> findByUserId(long userId)
          Returns all the recent layout revisions where userId = ?.
 List<RecentLayoutRevision> findByUserId(long userId, int start, int end)
          Returns a range of all the recent layout revisions where userId = ?.
 List<RecentLayoutRevision> findByUserId(long userId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns an ordered range of all the recent layout revisions where userId = ?.
 List<RecentLayoutRevision> findByUserId(long userId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the recent layout revisions where userId = ?.
protected  RecentLayoutRevision getByGroupId_PrevAndNext(Session session, RecentLayoutRevision recentLayoutRevision, long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean previous)
           
protected  RecentLayoutRevision getByLayoutRevisionId_PrevAndNext(Session session, RecentLayoutRevision recentLayoutRevision, long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean previous)
           
protected  RecentLayoutRevision getByUserId_PrevAndNext(Session session, RecentLayoutRevision recentLayoutRevision, long userId, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean previous)
           
protected  Map<String,Integer> getTableColumnsMap()
           
 RecentLayoutRevision remove(long recentLayoutRevisionId)
          Removes the recent layout revision with the primary key from the database.
 RecentLayoutRevision remove(Serializable primaryKey)
          Removes the recent layout revision with the primary key from the database.
 void removeAll()
          Removes all the recent layout revisions from the database.
 void removeByGroupId(long groupId)
          Removes all the recent layout revisions where groupId = ? from the database.
 void removeByLayoutRevisionId(long layoutRevisionId)
          Removes all the recent layout revisions where layoutRevisionId = ? from the database.
 RecentLayoutRevision removeByU_L_P(long userId, long layoutSetBranchId, long plid)
          Removes the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? from the database.
 void removeByUserId(long userId)
          Removes all the recent layout revisions where userId = ? from the database.
protected  RecentLayoutRevision removeImpl(RecentLayoutRevision recentLayoutRevision)
          Removes the model instance from the database.
protected  RecentLayoutRevision toUnwrappedModel(RecentLayoutRevision recentLayoutRevision)
           
 RecentLayoutRevision updateImpl(RecentLayoutRevision recentLayoutRevision)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.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.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 FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID

FINDER_PATH_COUNT_BY_USERID

public static final FinderPath FINDER_PATH_COUNT_BY_USERID

FINDER_PATH_WITH_PAGINATION_FIND_BY_LAYOUTREVISIONID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_LAYOUTREVISIONID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LAYOUTREVISIONID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LAYOUTREVISIONID

FINDER_PATH_COUNT_BY_LAYOUTREVISIONID

public static final FinderPath FINDER_PATH_COUNT_BY_LAYOUTREVISIONID

FINDER_PATH_FETCH_BY_U_L_P

public static final FinderPath FINDER_PATH_FETCH_BY_U_L_P

FINDER_PATH_COUNT_BY_U_L_P

public static final FinderPath FINDER_PATH_COUNT_BY_U_L_P

companyProvider

@BeanReference(type=CompanyProviderWrapper.class)
protected CompanyProvider companyProvider

entityCache

protected EntityCache entityCache

finderCache

protected FinderCache finderCache
Constructor Detail

RecentLayoutRevisionPersistenceImpl

public RecentLayoutRevisionPersistenceImpl()
Method Detail

findByGroupId

public List<RecentLayoutRevision> findByGroupId(long groupId)
Returns all the recent layout revisions where groupId = ?.

Specified by:
findByGroupId in interface RecentLayoutRevisionPersistence
Parameters:
groupId - the group ID
Returns:
the matching recent layout revisions

findByGroupId

public List<RecentLayoutRevision> findByGroupId(long groupId,
                                                int start,
                                                int end)
Returns a range of all the recent layout revisions where groupId = ?.

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 RecentLayoutRevisionModelImpl. 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:
findByGroupId in interface RecentLayoutRevisionPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
Returns:
the range of matching recent layout revisions

findByGroupId

public List<RecentLayoutRevision> findByGroupId(long groupId,
                                                int start,
                                                int end,
                                                OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns an ordered range of all the recent layout revisions where groupId = ?.

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 RecentLayoutRevisionModelImpl. 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:
findByGroupId in interface RecentLayoutRevisionPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching recent layout revisions

findByGroupId

public List<RecentLayoutRevision> findByGroupId(long groupId,
                                                int start,
                                                int end,
                                                OrderByComparator<RecentLayoutRevision> orderByComparator,
                                                boolean retrieveFromCache)
Returns an ordered range of all the recent layout revisions where groupId = ?.

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 RecentLayoutRevisionModelImpl. 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:
findByGroupId in interface RecentLayoutRevisionPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of recent layout revisions
end - the upper bound of the range of recent layout revisions (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 recent layout revisions

findByGroupId_First

public RecentLayoutRevision findByGroupId_First(long groupId,
                                                OrderByComparator<RecentLayoutRevision> orderByComparator)
                                         throws NoSuchRecentLayoutRevisionException
Returns the first recent layout revision in the ordered set where groupId = ?.

Specified by:
findByGroupId_First in interface RecentLayoutRevisionPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found

fetchByGroupId_First

public RecentLayoutRevision fetchByGroupId_First(long groupId,
                                                 OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the first recent layout revision in the ordered set where groupId = ?.

Specified by:
fetchByGroupId_First in interface RecentLayoutRevisionPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching recent layout revision, or null if a matching recent layout revision could not be found

findByGroupId_Last

public RecentLayoutRevision findByGroupId_Last(long groupId,
                                               OrderByComparator<RecentLayoutRevision> orderByComparator)
                                        throws NoSuchRecentLayoutRevisionException
Returns the last recent layout revision in the ordered set where groupId = ?.

Specified by:
findByGroupId_Last in interface RecentLayoutRevisionPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found

fetchByGroupId_Last

public RecentLayoutRevision fetchByGroupId_Last(long groupId,
                                                OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the last recent layout revision in the ordered set where groupId = ?.

Specified by:
fetchByGroupId_Last in interface RecentLayoutRevisionPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching recent layout revision, or null if a matching recent layout revision could not be found

findByGroupId_PrevAndNext

public RecentLayoutRevision[] findByGroupId_PrevAndNext(long recentLayoutRevisionId,
                                                        long groupId,
                                                        OrderByComparator<RecentLayoutRevision> orderByComparator)
                                                 throws NoSuchRecentLayoutRevisionException
Returns the recent layout revisions before and after the current recent layout revision in the ordered set where groupId = ?.

Specified by:
findByGroupId_PrevAndNext in interface RecentLayoutRevisionPersistence
Parameters:
recentLayoutRevisionId - the primary key of the current recent layout revision
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be found

getByGroupId_PrevAndNext

protected RecentLayoutRevision getByGroupId_PrevAndNext(Session session,
                                                        RecentLayoutRevision recentLayoutRevision,
                                                        long groupId,
                                                        OrderByComparator<RecentLayoutRevision> orderByComparator,
                                                        boolean previous)

removeByGroupId

public void removeByGroupId(long groupId)
Removes all the recent layout revisions where groupId = ? from the database.

Specified by:
removeByGroupId in interface RecentLayoutRevisionPersistence
Parameters:
groupId - the group ID

countByGroupId

public int countByGroupId(long groupId)
Returns the number of recent layout revisions where groupId = ?.

Specified by:
countByGroupId in interface RecentLayoutRevisionPersistence
Parameters:
groupId - the group ID
Returns:
the number of matching recent layout revisions

findByUserId

public List<RecentLayoutRevision> findByUserId(long userId)
Returns all the recent layout revisions where userId = ?.

Specified by:
findByUserId in interface RecentLayoutRevisionPersistence
Parameters:
userId - the user ID
Returns:
the matching recent layout revisions

findByUserId

public List<RecentLayoutRevision> findByUserId(long userId,
                                               int start,
                                               int end)
Returns a range of all the recent layout revisions 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 RecentLayoutRevisionModelImpl. 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 RecentLayoutRevisionPersistence
Parameters:
userId - the user ID
start - the lower bound of the range of recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
Returns:
the range of matching recent layout revisions

findByUserId

public List<RecentLayoutRevision> findByUserId(long userId,
                                               int start,
                                               int end,
                                               OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns an ordered range of all the recent layout revisions 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 RecentLayoutRevisionModelImpl. 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 RecentLayoutRevisionPersistence
Parameters:
userId - the user ID
start - the lower bound of the range of recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching recent layout revisions

findByUserId

public List<RecentLayoutRevision> findByUserId(long userId,
                                               int start,
                                               int end,
                                               OrderByComparator<RecentLayoutRevision> orderByComparator,
                                               boolean retrieveFromCache)
Returns an ordered range of all the recent layout revisions 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 RecentLayoutRevisionModelImpl. 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 RecentLayoutRevisionPersistence
Parameters:
userId - the user ID
start - the lower bound of the range of recent layout revisions
end - the upper bound of the range of recent layout revisions (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 recent layout revisions

findByUserId_First

public RecentLayoutRevision findByUserId_First(long userId,
                                               OrderByComparator<RecentLayoutRevision> orderByComparator)
                                        throws NoSuchRecentLayoutRevisionException
Returns the first recent layout revision in the ordered set where userId = ?.

Specified by:
findByUserId_First in interface RecentLayoutRevisionPersistence
Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found

fetchByUserId_First

public RecentLayoutRevision fetchByUserId_First(long userId,
                                                OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the first recent layout revision in the ordered set where userId = ?.

Specified by:
fetchByUserId_First in interface RecentLayoutRevisionPersistence
Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching recent layout revision, or null if a matching recent layout revision could not be found

findByUserId_Last

public RecentLayoutRevision findByUserId_Last(long userId,
                                              OrderByComparator<RecentLayoutRevision> orderByComparator)
                                       throws NoSuchRecentLayoutRevisionException
Returns the last recent layout revision in the ordered set where userId = ?.

Specified by:
findByUserId_Last in interface RecentLayoutRevisionPersistence
Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found

fetchByUserId_Last

public RecentLayoutRevision fetchByUserId_Last(long userId,
                                               OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the last recent layout revision in the ordered set where userId = ?.

Specified by:
fetchByUserId_Last in interface RecentLayoutRevisionPersistence
Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching recent layout revision, or null if a matching recent layout revision could not be found

findByUserId_PrevAndNext

public RecentLayoutRevision[] findByUserId_PrevAndNext(long recentLayoutRevisionId,
                                                       long userId,
                                                       OrderByComparator<RecentLayoutRevision> orderByComparator)
                                                throws NoSuchRecentLayoutRevisionException
Returns the recent layout revisions before and after the current recent layout revision in the ordered set where userId = ?.

Specified by:
findByUserId_PrevAndNext in interface RecentLayoutRevisionPersistence
Parameters:
recentLayoutRevisionId - the primary key of the current recent layout revision
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be found

getByUserId_PrevAndNext

protected RecentLayoutRevision getByUserId_PrevAndNext(Session session,
                                                       RecentLayoutRevision recentLayoutRevision,
                                                       long userId,
                                                       OrderByComparator<RecentLayoutRevision> orderByComparator,
                                                       boolean previous)

removeByUserId

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

Specified by:
removeByUserId in interface RecentLayoutRevisionPersistence
Parameters:
userId - the user ID

countByUserId

public int countByUserId(long userId)
Returns the number of recent layout revisions where userId = ?.

Specified by:
countByUserId in interface RecentLayoutRevisionPersistence
Parameters:
userId - the user ID
Returns:
the number of matching recent layout revisions

findByLayoutRevisionId

public List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId)
Returns all the recent layout revisions where layoutRevisionId = ?.

Specified by:
findByLayoutRevisionId in interface RecentLayoutRevisionPersistence
Parameters:
layoutRevisionId - the layout revision ID
Returns:
the matching recent layout revisions

findByLayoutRevisionId

public List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId,
                                                         int start,
                                                         int end)
Returns a range of all the recent layout revisions where layoutRevisionId = ?.

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 RecentLayoutRevisionModelImpl. 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:
findByLayoutRevisionId in interface RecentLayoutRevisionPersistence
Parameters:
layoutRevisionId - the layout revision ID
start - the lower bound of the range of recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
Returns:
the range of matching recent layout revisions

findByLayoutRevisionId

public List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId,
                                                         int start,
                                                         int end,
                                                         OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns an ordered range of all the recent layout revisions where layoutRevisionId = ?.

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 RecentLayoutRevisionModelImpl. 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:
findByLayoutRevisionId in interface RecentLayoutRevisionPersistence
Parameters:
layoutRevisionId - the layout revision ID
start - the lower bound of the range of recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching recent layout revisions

findByLayoutRevisionId

public List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId,
                                                         int start,
                                                         int end,
                                                         OrderByComparator<RecentLayoutRevision> orderByComparator,
                                                         boolean retrieveFromCache)
Returns an ordered range of all the recent layout revisions where layoutRevisionId = ?.

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 RecentLayoutRevisionModelImpl. 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:
findByLayoutRevisionId in interface RecentLayoutRevisionPersistence
Parameters:
layoutRevisionId - the layout revision ID
start - the lower bound of the range of recent layout revisions
end - the upper bound of the range of recent layout revisions (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 recent layout revisions

findByLayoutRevisionId_First

public RecentLayoutRevision findByLayoutRevisionId_First(long layoutRevisionId,
                                                         OrderByComparator<RecentLayoutRevision> orderByComparator)
                                                  throws NoSuchRecentLayoutRevisionException
Returns the first recent layout revision in the ordered set where layoutRevisionId = ?.

Specified by:
findByLayoutRevisionId_First in interface RecentLayoutRevisionPersistence
Parameters:
layoutRevisionId - the layout revision ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found

fetchByLayoutRevisionId_First

public RecentLayoutRevision fetchByLayoutRevisionId_First(long layoutRevisionId,
                                                          OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the first recent layout revision in the ordered set where layoutRevisionId = ?.

Specified by:
fetchByLayoutRevisionId_First in interface RecentLayoutRevisionPersistence
Parameters:
layoutRevisionId - the layout revision ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching recent layout revision, or null if a matching recent layout revision could not be found

findByLayoutRevisionId_Last

public RecentLayoutRevision findByLayoutRevisionId_Last(long layoutRevisionId,
                                                        OrderByComparator<RecentLayoutRevision> orderByComparator)
                                                 throws NoSuchRecentLayoutRevisionException
Returns the last recent layout revision in the ordered set where layoutRevisionId = ?.

Specified by:
findByLayoutRevisionId_Last in interface RecentLayoutRevisionPersistence
Parameters:
layoutRevisionId - the layout revision ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found

fetchByLayoutRevisionId_Last

public RecentLayoutRevision fetchByLayoutRevisionId_Last(long layoutRevisionId,
                                                         OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the last recent layout revision in the ordered set where layoutRevisionId = ?.

Specified by:
fetchByLayoutRevisionId_Last in interface RecentLayoutRevisionPersistence
Parameters:
layoutRevisionId - the layout revision ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching recent layout revision, or null if a matching recent layout revision could not be found

findByLayoutRevisionId_PrevAndNext

public RecentLayoutRevision[] findByLayoutRevisionId_PrevAndNext(long recentLayoutRevisionId,
                                                                 long layoutRevisionId,
                                                                 OrderByComparator<RecentLayoutRevision> orderByComparator)
                                                          throws NoSuchRecentLayoutRevisionException
Returns the recent layout revisions before and after the current recent layout revision in the ordered set where layoutRevisionId = ?.

Specified by:
findByLayoutRevisionId_PrevAndNext in interface RecentLayoutRevisionPersistence
Parameters:
recentLayoutRevisionId - the primary key of the current recent layout revision
layoutRevisionId - the layout revision ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be found

getByLayoutRevisionId_PrevAndNext

protected RecentLayoutRevision getByLayoutRevisionId_PrevAndNext(Session session,
                                                                 RecentLayoutRevision recentLayoutRevision,
                                                                 long layoutRevisionId,
                                                                 OrderByComparator<RecentLayoutRevision> orderByComparator,
                                                                 boolean previous)

removeByLayoutRevisionId

public void removeByLayoutRevisionId(long layoutRevisionId)
Removes all the recent layout revisions where layoutRevisionId = ? from the database.

Specified by:
removeByLayoutRevisionId in interface RecentLayoutRevisionPersistence
Parameters:
layoutRevisionId - the layout revision ID

countByLayoutRevisionId

public int countByLayoutRevisionId(long layoutRevisionId)
Returns the number of recent layout revisions where layoutRevisionId = ?.

Specified by:
countByLayoutRevisionId in interface RecentLayoutRevisionPersistence
Parameters:
layoutRevisionId - the layout revision ID
Returns:
the number of matching recent layout revisions

findByU_L_P

public RecentLayoutRevision findByU_L_P(long userId,
                                        long layoutSetBranchId,
                                        long plid)
                                 throws NoSuchRecentLayoutRevisionException
Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or throws a NoSuchRecentLayoutRevisionException if it could not be found.

Specified by:
findByU_L_P in interface RecentLayoutRevisionPersistence
Parameters:
userId - the user ID
layoutSetBranchId - the layout set branch ID
plid - the plid
Returns:
the matching recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found

fetchByU_L_P

public RecentLayoutRevision fetchByU_L_P(long userId,
                                         long layoutSetBranchId,
                                         long plid)
Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByU_L_P in interface RecentLayoutRevisionPersistence
Parameters:
userId - the user ID
layoutSetBranchId - the layout set branch ID
plid - the plid
Returns:
the matching recent layout revision, or null if a matching recent layout revision could not be found

fetchByU_L_P

public RecentLayoutRevision fetchByU_L_P(long userId,
                                         long layoutSetBranchId,
                                         long plid,
                                         boolean retrieveFromCache)
Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByU_L_P in interface RecentLayoutRevisionPersistence
Parameters:
userId - the user ID
layoutSetBranchId - the layout set branch ID
plid - the plid
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching recent layout revision, or null if a matching recent layout revision could not be found

removeByU_L_P

public RecentLayoutRevision removeByU_L_P(long userId,
                                          long layoutSetBranchId,
                                          long plid)
                                   throws NoSuchRecentLayoutRevisionException
Removes the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? from the database.

Specified by:
removeByU_L_P in interface RecentLayoutRevisionPersistence
Parameters:
userId - the user ID
layoutSetBranchId - the layout set branch ID
plid - the plid
Returns:
the recent layout revision that was removed
Throws:
NoSuchRecentLayoutRevisionException

countByU_L_P

public int countByU_L_P(long userId,
                        long layoutSetBranchId,
                        long plid)
Returns the number of recent layout revisions where userId = ? and layoutSetBranchId = ? and plid = ?.

Specified by:
countByU_L_P in interface RecentLayoutRevisionPersistence
Parameters:
userId - the user ID
layoutSetBranchId - the layout set branch ID
plid - the plid
Returns:
the number of matching recent layout revisions

cacheResult

public void cacheResult(RecentLayoutRevision recentLayoutRevision)
Caches the recent layout revision in the entity cache if it is enabled.

Specified by:
cacheResult in interface RecentLayoutRevisionPersistence
Parameters:
recentLayoutRevision - the recent layout revision

cacheResult

public void cacheResult(List<RecentLayoutRevision> recentLayoutRevisions)
Caches the recent layout revisions in the entity cache if it is enabled.

Specified by:
cacheResult in interface RecentLayoutRevisionPersistence
Parameters:
recentLayoutRevisions - the recent layout revisions

clearCache

public void clearCache()
Clears the cache for all recent layout revisions.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<RecentLayoutRevision>
Overrides:
clearCache in class BasePersistenceImpl<RecentLayoutRevision>

clearCache

public void clearCache(RecentLayoutRevision recentLayoutRevision)
Clears the cache for the recent layout revision.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<RecentLayoutRevision>
Overrides:
clearCache in class BasePersistenceImpl<RecentLayoutRevision>
Parameters:
recentLayoutRevision - the instance of this model to clear the cache for

clearCache

public void clearCache(List<RecentLayoutRevision> recentLayoutRevisions)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<RecentLayoutRevision>
Overrides:
clearCache in class BasePersistenceImpl<RecentLayoutRevision>
Parameters:
recentLayoutRevisions - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(RecentLayoutRevisionModelImpl recentLayoutRevisionModelImpl,
                                       boolean isNew)

clearUniqueFindersCache

protected void clearUniqueFindersCache(RecentLayoutRevisionModelImpl recentLayoutRevisionModelImpl)

create

public RecentLayoutRevision create(long recentLayoutRevisionId)
Creates a new recent layout revision with the primary key. Does not add the recent layout revision to the database.

Specified by:
create in interface RecentLayoutRevisionPersistence
Parameters:
recentLayoutRevisionId - the primary key for the new recent layout revision
Returns:
the new recent layout revision

remove

public RecentLayoutRevision remove(long recentLayoutRevisionId)
                            throws NoSuchRecentLayoutRevisionException
Removes the recent layout revision with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface RecentLayoutRevisionPersistence
Parameters:
recentLayoutRevisionId - the primary key of the recent layout revision
Returns:
the recent layout revision that was removed
Throws:
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be found

remove

public RecentLayoutRevision remove(Serializable primaryKey)
                            throws NoSuchRecentLayoutRevisionException
Removes the recent layout revision with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<RecentLayoutRevision>
Overrides:
remove in class BasePersistenceImpl<RecentLayoutRevision>
Parameters:
primaryKey - the primary key of the recent layout revision
Returns:
the recent layout revision that was removed
Throws:
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be found

removeImpl

protected RecentLayoutRevision removeImpl(RecentLayoutRevision recentLayoutRevision)
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<RecentLayoutRevision>
Parameters:
recentLayoutRevision - the model instance to remove
Returns:
the model instance that was removed

updateImpl

public RecentLayoutRevision updateImpl(RecentLayoutRevision recentLayoutRevision)
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface RecentLayoutRevisionPersistence
Overrides:
updateImpl in class BasePersistenceImpl<RecentLayoutRevision>
Parameters:
recentLayoutRevision - the model instance to update
Returns:
the model instance that was updated

toUnwrappedModel

protected RecentLayoutRevision toUnwrappedModel(RecentLayoutRevision recentLayoutRevision)

findByPrimaryKey

public RecentLayoutRevision findByPrimaryKey(Serializable primaryKey)
                                      throws NoSuchRecentLayoutRevisionException
Returns the recent layout revision with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<RecentLayoutRevision>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<RecentLayoutRevision>
Parameters:
primaryKey - the primary key of the recent layout revision
Returns:
the recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be found

findByPrimaryKey

public RecentLayoutRevision findByPrimaryKey(long recentLayoutRevisionId)
                                      throws NoSuchRecentLayoutRevisionException
Returns the recent layout revision with the primary key or throws a NoSuchRecentLayoutRevisionException if it could not be found.

Specified by:
findByPrimaryKey in interface RecentLayoutRevisionPersistence
Parameters:
recentLayoutRevisionId - the primary key of the recent layout revision
Returns:
the recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be found

fetchByPrimaryKey

public RecentLayoutRevision fetchByPrimaryKey(Serializable primaryKey)
Returns the recent layout revision with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<RecentLayoutRevision>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<RecentLayoutRevision>
Parameters:
primaryKey - the primary key of the recent layout revision
Returns:
the recent layout revision, or null if a recent layout revision with the primary key could not be found

fetchByPrimaryKey

public RecentLayoutRevision fetchByPrimaryKey(long recentLayoutRevisionId)
Returns the recent layout revision with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface RecentLayoutRevisionPersistence
Parameters:
recentLayoutRevisionId - the primary key of the recent layout revision
Returns:
the recent layout revision, or null if a recent layout revision with the primary key could not be found

fetchByPrimaryKeys

public Map<Serializable,RecentLayoutRevision> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<RecentLayoutRevision>
Specified by:
fetchByPrimaryKeys in interface RecentLayoutRevisionPersistence
Overrides:
fetchByPrimaryKeys in class BasePersistenceImpl<RecentLayoutRevision>

findAll

public List<RecentLayoutRevision> findAll()
Returns all the recent layout revisions.

Specified by:
findAll in interface RecentLayoutRevisionPersistence
Returns:
the recent layout revisions

findAll

public List<RecentLayoutRevision> findAll(int start,
                                          int end)
Returns a range of all the recent layout revisions.

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 RecentLayoutRevisionModelImpl. 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 RecentLayoutRevisionPersistence
Parameters:
start - the lower bound of the range of recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
Returns:
the range of recent layout revisions

findAll

public List<RecentLayoutRevision> findAll(int start,
                                          int end,
                                          OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns an ordered range of all the recent layout revisions.

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 RecentLayoutRevisionModelImpl. 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 RecentLayoutRevisionPersistence
Parameters:
start - the lower bound of the range of recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of recent layout revisions

findAll

public List<RecentLayoutRevision> findAll(int start,
                                          int end,
                                          OrderByComparator<RecentLayoutRevision> orderByComparator,
                                          boolean retrieveFromCache)
Returns an ordered range of all the recent layout revisions.

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 RecentLayoutRevisionModelImpl. 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 RecentLayoutRevisionPersistence
Parameters:
start - the lower bound of the range of recent layout revisions
end - the upper bound of the range of recent layout revisions (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 recent layout revisions

removeAll

public void removeAll()
Removes all the recent layout revisions from the database.

Specified by:
removeAll in interface RecentLayoutRevisionPersistence

countAll

public int countAll()
Returns the number of recent layout revisions.

Specified by:
countAll in interface RecentLayoutRevisionPersistence
Returns:
the number of recent layout revisions

getTableColumnsMap

protected Map<String,Integer> getTableColumnsMap()
Overrides:
getTableColumnsMap in class BasePersistenceImpl<RecentLayoutRevision>

afterPropertiesSet

public void afterPropertiesSet()
Initializes the recent layout revision persistence.


destroy

public void destroy()

Liferay 7.0-ce-b4