Liferay 6.0.3

com.liferay.portlet.journal.service.persistence
Class JournalFeedPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<JournalFeed>
      extended by com.liferay.portlet.journal.service.persistence.JournalFeedPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<JournalFeed>, JournalFeedPersistence

public class JournalFeedPersistenceImpl
extends BasePersistenceImpl<JournalFeed>
implements JournalFeedPersistence

See Also:
JournalFeedPersistence, JournalFeedUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Field Summary
protected  ExpandoValuePersistence expandoValuePersistence
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_G_F
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_G
           
static FinderPath FINDER_PATH_FETCH_BY_G_F
           
static FinderPath FINDER_PATH_FETCH_BY_UUID_G
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_FIND_BY_UUID
           
protected  JournalArticleImagePersistence journalArticleImagePersistence
           
protected  JournalArticlePersistence journalArticlePersistence
           
protected  JournalArticleResourcePersistence journalArticleResourcePersistence
           
protected  JournalContentSearchPersistence journalContentSearchPersistence
           
protected  JournalFeedPersistence journalFeedPersistence
           
protected  JournalStructurePersistence journalStructurePersistence
           
protected  JournalTemplatePersistence journalTemplatePersistence
           
protected  ResourcePersistence resourcePersistence
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners, 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
JournalFeedPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 void cacheResult(JournalFeed journalFeed)
           
 void cacheResult(List<JournalFeed> journalFeeds)
           
 void clearCache()
          Clears the cache for all instances of this model.
 void clearCache(JournalFeed journalFeed)
          Clears the cache for one instance of this model.
 int countAll()
           
 int countByG_F(long groupId, String feedId)
           
 int countByGroupId(long groupId)
           
 int countByUUID_G(String uuid, long groupId)
           
 int countByUuid(String uuid)
           
 JournalFeed create(long id)
           
 JournalFeed fetchByG_F(long groupId, String feedId)
           
 JournalFeed fetchByG_F(long groupId, String feedId, boolean retrieveFromCache)
           
 JournalFeed fetchByPrimaryKey(long id)
           
 JournalFeed fetchByPrimaryKey(Serializable primaryKey)
          Finds an instance of this model by its primary key, or return null if it could not be found.
 JournalFeed fetchByUUID_G(String uuid, long groupId)
           
 JournalFeed fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
           
 int filterCountByG_F(long groupId, String feedId)
           
 int filterCountByGroupId(long groupId)
           
 List<JournalFeed> filterFindByGroupId(long groupId)
           
 List<JournalFeed> filterFindByGroupId(long groupId, int start, int end)
           
 List<JournalFeed> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
           
 List<JournalFeed> findAll()
           
 List<JournalFeed> findAll(int start, int end)
           
 List<JournalFeed> findAll(int start, int end, OrderByComparator orderByComparator)
           
 JournalFeed findByG_F(long groupId, String feedId)
           
 JournalFeed findByGroupId_First(long groupId, OrderByComparator orderByComparator)
           
 JournalFeed findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
           
 JournalFeed[] findByGroupId_PrevAndNext(long id, long groupId, OrderByComparator orderByComparator)
           
 List<JournalFeed> findByGroupId(long groupId)
           
 List<JournalFeed> findByGroupId(long groupId, int start, int end)
           
 List<JournalFeed> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
           
 JournalFeed findByPrimaryKey(long id)
           
 JournalFeed findByPrimaryKey(Serializable primaryKey)
          Finds an instance of this model by its primary key, or throw an exception if it could not be found.
 JournalFeed findByUuid_First(String uuid, OrderByComparator orderByComparator)
           
 JournalFeed findByUUID_G(String uuid, long groupId)
           
 JournalFeed findByUuid_Last(String uuid, OrderByComparator orderByComparator)
           
 JournalFeed[] findByUuid_PrevAndNext(long id, String uuid, OrderByComparator orderByComparator)
           
 List<JournalFeed> findByUuid(String uuid)
           
 List<JournalFeed> findByUuid(String uuid, int start, int end)
           
 List<JournalFeed> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
           
protected  JournalFeed getByGroupId_PrevAndNext(Session session, JournalFeed journalFeed, long groupId, OrderByComparator orderByComparator, boolean previous)
           
protected  JournalFeed getByUuid_PrevAndNext(Session session, JournalFeed journalFeed, String uuid, OrderByComparator orderByComparator, boolean previous)
           
 JournalFeed remove(long id)
           
 JournalFeed remove(Serializable primaryKey)
          Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners.
 void removeAll()
           
 void removeByG_F(long groupId, String feedId)
           
 void removeByGroupId(long groupId)
           
 void removeByUUID_G(String uuid, long groupId)
           
 void removeByUuid(String uuid)
           
protected  JournalFeed removeImpl(JournalFeed journalFeed)
          Removes the model instance from the database.
protected  JournalFeed toUnwrappedModel(JournalFeed journalFeed)
           
 JournalFeed updateImpl(JournalFeed journalFeed, boolean merge)
          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, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
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
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_UUID

public static final FinderPath FINDER_PATH_FIND_BY_UUID

FINDER_PATH_COUNT_BY_UUID

public static final FinderPath FINDER_PATH_COUNT_BY_UUID

FINDER_PATH_FETCH_BY_UUID_G

public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G

FINDER_PATH_COUNT_BY_UUID_G

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G

FINDER_PATH_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_FETCH_BY_G_F

public static final FinderPath FINDER_PATH_FETCH_BY_G_F

FINDER_PATH_COUNT_BY_G_F

public static final FinderPath FINDER_PATH_COUNT_BY_G_F

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

journalArticlePersistence

@BeanReference(type=JournalArticlePersistence.class)
protected JournalArticlePersistence journalArticlePersistence

journalArticleImagePersistence

@BeanReference(type=JournalArticleImagePersistence.class)
protected JournalArticleImagePersistence journalArticleImagePersistence

journalArticleResourcePersistence

@BeanReference(type=JournalArticleResourcePersistence.class)
protected JournalArticleResourcePersistence journalArticleResourcePersistence

journalContentSearchPersistence

@BeanReference(type=JournalContentSearchPersistence.class)
protected JournalContentSearchPersistence journalContentSearchPersistence

journalFeedPersistence

@BeanReference(type=JournalFeedPersistence.class)
protected JournalFeedPersistence journalFeedPersistence

journalStructurePersistence

@BeanReference(type=JournalStructurePersistence.class)
protected JournalStructurePersistence journalStructurePersistence

journalTemplatePersistence

@BeanReference(type=JournalTemplatePersistence.class)
protected JournalTemplatePersistence journalTemplatePersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

expandoValuePersistence

@BeanReference(type=ExpandoValuePersistence.class)
protected ExpandoValuePersistence expandoValuePersistence
Constructor Detail

JournalFeedPersistenceImpl

public JournalFeedPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(JournalFeed journalFeed)
Specified by:
cacheResult in interface JournalFeedPersistence

cacheResult

public void cacheResult(List<JournalFeed> journalFeeds)
Specified by:
cacheResult in interface JournalFeedPersistence

clearCache

public void clearCache()
Description copied from interface: BasePersistence
Clears the cache for all instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Caching information and settings can be found in portal.properties

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

clearCache

public void clearCache(JournalFeed journalFeed)
Description copied from interface: BasePersistence
Clears the cache for one instance of this model.

The EntityCache and FinderCache are both cleared by this method.

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

create

public JournalFeed create(long id)
Specified by:
create in interface JournalFeedPersistence

remove

public JournalFeed remove(Serializable primaryKey)
                   throws NoSuchModelException,
                          SystemException
Description copied from interface: BasePersistence
Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<JournalFeed>
Overrides:
remove in class BasePersistenceImpl<JournalFeed>
Parameters:
primaryKey - the primary key of the model instance to remove
Returns:
the model instance that was removed
Throws:
NoSuchModelException - if an instance of this model with the primary key does not exist
SystemException - if a system exception occurred

remove

public JournalFeed remove(long id)
                   throws NoSuchFeedException,
                          SystemException
Specified by:
remove in interface JournalFeedPersistence
Throws:
NoSuchFeedException
SystemException

removeImpl

protected JournalFeed removeImpl(JournalFeed journalFeed)
                          throws SystemException
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<JournalFeed>
Parameters:
journalFeed - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public JournalFeed updateImpl(JournalFeed journalFeed,
                              boolean merge)
                       throws SystemException
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 JournalFeedPersistence
Overrides:
updateImpl in class BasePersistenceImpl<JournalFeed>
Parameters:
journalFeed - the model instance to update
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected JournalFeed toUnwrappedModel(JournalFeed journalFeed)

findByPrimaryKey

public JournalFeed findByPrimaryKey(Serializable primaryKey)
                             throws NoSuchModelException,
                                    SystemException
Description copied from interface: BasePersistence
Finds an instance of this model by its primary key, or throw an exception if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<JournalFeed>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<JournalFeed>
Parameters:
primaryKey - the primary key of the model instance to find
Returns:
the model instance
Throws:
NoSuchModelException - if an instance of this model with the primary key does not exist
SystemException - if the primary key is null, or if a system exception occurred

findByPrimaryKey

public JournalFeed findByPrimaryKey(long id)
                             throws NoSuchFeedException,
                                    SystemException
Specified by:
findByPrimaryKey in interface JournalFeedPersistence
Throws:
NoSuchFeedException
SystemException

fetchByPrimaryKey

public JournalFeed fetchByPrimaryKey(Serializable primaryKey)
                              throws SystemException
Description copied from interface: BasePersistence
Finds an instance of this model by its primary key, or return null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<JournalFeed>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<JournalFeed>
Parameters:
primaryKey - the primary key of the model instance to find
Returns:
the model instance, or null if an instance of this model with the primary key does not exist
Throws:
SystemException - if the primary key is null, or if a system exception occurred

fetchByPrimaryKey

public JournalFeed fetchByPrimaryKey(long id)
                              throws SystemException
Specified by:
fetchByPrimaryKey in interface JournalFeedPersistence
Throws:
SystemException

findByUuid

public List<JournalFeed> findByUuid(String uuid)
                             throws SystemException
Specified by:
findByUuid in interface JournalFeedPersistence
Throws:
SystemException

findByUuid

public List<JournalFeed> findByUuid(String uuid,
                                    int start,
                                    int end)
                             throws SystemException
Specified by:
findByUuid in interface JournalFeedPersistence
Throws:
SystemException

findByUuid

public List<JournalFeed> findByUuid(String uuid,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Specified by:
findByUuid in interface JournalFeedPersistence
Throws:
SystemException

findByUuid_First

public JournalFeed findByUuid_First(String uuid,
                                    OrderByComparator orderByComparator)
                             throws NoSuchFeedException,
                                    SystemException
Specified by:
findByUuid_First in interface JournalFeedPersistence
Throws:
NoSuchFeedException
SystemException

findByUuid_Last

public JournalFeed findByUuid_Last(String uuid,
                                   OrderByComparator orderByComparator)
                            throws NoSuchFeedException,
                                   SystemException
Specified by:
findByUuid_Last in interface JournalFeedPersistence
Throws:
NoSuchFeedException
SystemException

findByUuid_PrevAndNext

public JournalFeed[] findByUuid_PrevAndNext(long id,
                                            String uuid,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchFeedException,
                                            SystemException
Specified by:
findByUuid_PrevAndNext in interface JournalFeedPersistence
Throws:
NoSuchFeedException
SystemException

getByUuid_PrevAndNext

protected JournalFeed getByUuid_PrevAndNext(Session session,
                                            JournalFeed journalFeed,
                                            String uuid,
                                            OrderByComparator orderByComparator,
                                            boolean previous)

findByUUID_G

public JournalFeed findByUUID_G(String uuid,
                                long groupId)
                         throws NoSuchFeedException,
                                SystemException
Specified by:
findByUUID_G in interface JournalFeedPersistence
Throws:
NoSuchFeedException
SystemException

fetchByUUID_G

public JournalFeed fetchByUUID_G(String uuid,
                                 long groupId)
                          throws SystemException
Specified by:
fetchByUUID_G in interface JournalFeedPersistence
Throws:
SystemException

fetchByUUID_G

public JournalFeed fetchByUUID_G(String uuid,
                                 long groupId,
                                 boolean retrieveFromCache)
                          throws SystemException
Specified by:
fetchByUUID_G in interface JournalFeedPersistence
Throws:
SystemException

findByGroupId

public List<JournalFeed> findByGroupId(long groupId)
                                throws SystemException
Specified by:
findByGroupId in interface JournalFeedPersistence
Throws:
SystemException

findByGroupId

public List<JournalFeed> findByGroupId(long groupId,
                                       int start,
                                       int end)
                                throws SystemException
Specified by:
findByGroupId in interface JournalFeedPersistence
Throws:
SystemException

findByGroupId

public List<JournalFeed> findByGroupId(long groupId,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Specified by:
findByGroupId in interface JournalFeedPersistence
Throws:
SystemException

findByGroupId_First

public JournalFeed findByGroupId_First(long groupId,
                                       OrderByComparator orderByComparator)
                                throws NoSuchFeedException,
                                       SystemException
Specified by:
findByGroupId_First in interface JournalFeedPersistence
Throws:
NoSuchFeedException
SystemException

findByGroupId_Last

public JournalFeed findByGroupId_Last(long groupId,
                                      OrderByComparator orderByComparator)
                               throws NoSuchFeedException,
                                      SystemException
Specified by:
findByGroupId_Last in interface JournalFeedPersistence
Throws:
NoSuchFeedException
SystemException

findByGroupId_PrevAndNext

public JournalFeed[] findByGroupId_PrevAndNext(long id,
                                               long groupId,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchFeedException,
                                               SystemException
Specified by:
findByGroupId_PrevAndNext in interface JournalFeedPersistence
Throws:
NoSuchFeedException
SystemException

getByGroupId_PrevAndNext

protected JournalFeed getByGroupId_PrevAndNext(Session session,
                                               JournalFeed journalFeed,
                                               long groupId,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

filterFindByGroupId

public List<JournalFeed> filterFindByGroupId(long groupId)
                                      throws SystemException
Specified by:
filterFindByGroupId in interface JournalFeedPersistence
Throws:
SystemException

filterFindByGroupId

public List<JournalFeed> filterFindByGroupId(long groupId,
                                             int start,
                                             int end)
                                      throws SystemException
Specified by:
filterFindByGroupId in interface JournalFeedPersistence
Throws:
SystemException

filterFindByGroupId

public List<JournalFeed> filterFindByGroupId(long groupId,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Specified by:
filterFindByGroupId in interface JournalFeedPersistence
Throws:
SystemException

findByG_F

public JournalFeed findByG_F(long groupId,
                             String feedId)
                      throws NoSuchFeedException,
                             SystemException
Specified by:
findByG_F in interface JournalFeedPersistence
Throws:
NoSuchFeedException
SystemException

fetchByG_F

public JournalFeed fetchByG_F(long groupId,
                              String feedId)
                       throws SystemException
Specified by:
fetchByG_F in interface JournalFeedPersistence
Throws:
SystemException

fetchByG_F

public JournalFeed fetchByG_F(long groupId,
                              String feedId,
                              boolean retrieveFromCache)
                       throws SystemException
Specified by:
fetchByG_F in interface JournalFeedPersistence
Throws:
SystemException

findAll

public List<JournalFeed> findAll()
                          throws SystemException
Specified by:
findAll in interface JournalFeedPersistence
Throws:
SystemException

findAll

public List<JournalFeed> findAll(int start,
                                 int end)
                          throws SystemException
Specified by:
findAll in interface JournalFeedPersistence
Throws:
SystemException

findAll

public List<JournalFeed> findAll(int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Specified by:
findAll in interface JournalFeedPersistence
Throws:
SystemException

removeByUuid

public void removeByUuid(String uuid)
                  throws SystemException
Specified by:
removeByUuid in interface JournalFeedPersistence
Throws:
SystemException

removeByUUID_G

public void removeByUUID_G(String uuid,
                           long groupId)
                    throws NoSuchFeedException,
                           SystemException
Specified by:
removeByUUID_G in interface JournalFeedPersistence
Throws:
NoSuchFeedException
SystemException

removeByGroupId

public void removeByGroupId(long groupId)
                     throws SystemException
Specified by:
removeByGroupId in interface JournalFeedPersistence
Throws:
SystemException

removeByG_F

public void removeByG_F(long groupId,
                        String feedId)
                 throws NoSuchFeedException,
                        SystemException
Specified by:
removeByG_F in interface JournalFeedPersistence
Throws:
NoSuchFeedException
SystemException

removeAll

public void removeAll()
               throws SystemException
Specified by:
removeAll in interface JournalFeedPersistence
Throws:
SystemException

countByUuid

public int countByUuid(String uuid)
                throws SystemException
Specified by:
countByUuid in interface JournalFeedPersistence
Throws:
SystemException

countByUUID_G

public int countByUUID_G(String uuid,
                         long groupId)
                  throws SystemException
Specified by:
countByUUID_G in interface JournalFeedPersistence
Throws:
SystemException

countByGroupId

public int countByGroupId(long groupId)
                   throws SystemException
Specified by:
countByGroupId in interface JournalFeedPersistence
Throws:
SystemException

filterCountByGroupId

public int filterCountByGroupId(long groupId)
                         throws SystemException
Specified by:
filterCountByGroupId in interface JournalFeedPersistence
Throws:
SystemException

countByG_F

public int countByG_F(long groupId,
                      String feedId)
               throws SystemException
Specified by:
countByG_F in interface JournalFeedPersistence
Throws:
SystemException

filterCountByG_F

public int filterCountByG_F(long groupId,
                            String feedId)
                     throws SystemException
Specified by:
filterCountByG_F in interface JournalFeedPersistence
Throws:
SystemException

countAll

public int countAll()
             throws SystemException
Specified by:
countAll in interface JournalFeedPersistence
Throws:
SystemException

afterPropertiesSet

public void afterPropertiesSet()

Liferay 6.0.3