com.liferay.portlet.tags.service.persistence
Interface TagsVocabularyPersistence

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface TagsVocabularyPersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByC_F(long companyId, boolean folksonomy)
           
 int countByG_F(long groupId, boolean folksonomy)
           
 int countByG_N(long groupId, java.lang.String name)
           
 TagsVocabulary create(long vocabularyId)
           
 TagsVocabulary fetchByG_N(long groupId, java.lang.String name)
           
 TagsVocabulary fetchByPrimaryKey(long vocabularyId)
           
 java.util.List<TagsVocabulary> findAll()
           
 java.util.List<TagsVocabulary> findAll(int start, int end)
           
 java.util.List<TagsVocabulary> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TagsVocabulary findByC_F_First(long companyId, boolean folksonomy, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TagsVocabulary findByC_F_Last(long companyId, boolean folksonomy, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TagsVocabulary[] findByC_F_PrevAndNext(long vocabularyId, long companyId, boolean folksonomy, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<TagsVocabulary> findByC_F(long companyId, boolean folksonomy)
           
 java.util.List<TagsVocabulary> findByC_F(long companyId, boolean folksonomy, int start, int end)
           
 java.util.List<TagsVocabulary> findByC_F(long companyId, boolean folksonomy, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TagsVocabulary findByG_F_First(long groupId, boolean folksonomy, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TagsVocabulary findByG_F_Last(long groupId, boolean folksonomy, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TagsVocabulary[] findByG_F_PrevAndNext(long vocabularyId, long groupId, boolean folksonomy, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<TagsVocabulary> findByG_F(long groupId, boolean folksonomy)
           
 java.util.List<TagsVocabulary> findByG_F(long groupId, boolean folksonomy, int start, int end)
           
 java.util.List<TagsVocabulary> findByG_F(long groupId, boolean folksonomy, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TagsVocabulary findByG_N(long groupId, java.lang.String name)
           
 TagsVocabulary findByPrimaryKey(long vocabularyId)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 TagsVocabulary remove(long vocabularyId)
           
 TagsVocabulary remove(TagsVocabulary tagsVocabulary)
           
 void removeAll()
           
 void removeByC_F(long companyId, boolean folksonomy)
           
 void removeByG_F(long groupId, boolean folksonomy)
           
 void removeByG_N(long groupId, java.lang.String name)
           
 TagsVocabulary update(TagsVocabulary tagsVocabulary)
          Deprecated. Use update(TagsVocabulary tagsVocabulary, boolean merge).
 TagsVocabulary update(TagsVocabulary tagsVocabulary, boolean merge)
          Add, update, or merge, the entity.
 TagsVocabulary updateImpl(TagsVocabulary tagsVocabulary, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

TagsVocabulary create(long vocabularyId)

remove

TagsVocabulary remove(long vocabularyId)
                      throws com.liferay.portal.SystemException,
                             NoSuchVocabularyException
Throws:
com.liferay.portal.SystemException
NoSuchVocabularyException

remove

TagsVocabulary remove(TagsVocabulary tagsVocabulary)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

TagsVocabulary update(TagsVocabulary tagsVocabulary)
                      throws com.liferay.portal.SystemException
Deprecated. Use update(TagsVocabulary tagsVocabulary, boolean merge).

Throws:
com.liferay.portal.SystemException

update

TagsVocabulary update(TagsVocabulary tagsVocabulary,
                      boolean merge)
                      throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
tagsVocabulary - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when tagsVocabulary is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

TagsVocabulary updateImpl(TagsVocabulary tagsVocabulary,
                          boolean merge)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TagsVocabulary findByPrimaryKey(long vocabularyId)
                                throws com.liferay.portal.SystemException,
                                       NoSuchVocabularyException
Throws:
com.liferay.portal.SystemException
NoSuchVocabularyException

fetchByPrimaryKey

TagsVocabulary fetchByPrimaryKey(long vocabularyId)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_N

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TagsVocabulary findByG_N(long groupId,
                                       java.lang.String name)
                         throws com.liferay.portal.SystemException,
                                NoSuchVocabularyException
Throws:
com.liferay.portal.SystemException
NoSuchVocabularyException

fetchByG_N

TagsVocabulary fetchByG_N(long groupId,
                          java.lang.String name)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_F

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<TagsVocabulary> findByG_F(long groupId,
                                                       boolean folksonomy)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_F

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<TagsVocabulary> findByG_F(long groupId,
                                                       boolean folksonomy,
                                                       int start,
                                                       int end)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_F

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<TagsVocabulary> findByG_F(long groupId,
                                                       boolean folksonomy,
                                                       int start,
                                                       int end,
                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_F_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TagsVocabulary findByG_F_First(long groupId,
                                             boolean folksonomy,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException,
                                      NoSuchVocabularyException
Throws:
com.liferay.portal.SystemException
NoSuchVocabularyException

findByG_F_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TagsVocabulary findByG_F_Last(long groupId,
                                            boolean folksonomy,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException,
                                     NoSuchVocabularyException
Throws:
com.liferay.portal.SystemException
NoSuchVocabularyException

findByG_F_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TagsVocabulary[] findByG_F_PrevAndNext(long vocabularyId,
                                                     long groupId,
                                                     boolean folksonomy,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchVocabularyException
Throws:
com.liferay.portal.SystemException
NoSuchVocabularyException

findByC_F

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<TagsVocabulary> findByC_F(long companyId,
                                                       boolean folksonomy)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_F

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<TagsVocabulary> findByC_F(long companyId,
                                                       boolean folksonomy,
                                                       int start,
                                                       int end)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_F

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<TagsVocabulary> findByC_F(long companyId,
                                                       boolean folksonomy,
                                                       int start,
                                                       int end,
                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_F_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TagsVocabulary findByC_F_First(long companyId,
                                             boolean folksonomy,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException,
                                      NoSuchVocabularyException
Throws:
com.liferay.portal.SystemException
NoSuchVocabularyException

findByC_F_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TagsVocabulary findByC_F_Last(long companyId,
                                            boolean folksonomy,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException,
                                     NoSuchVocabularyException
Throws:
com.liferay.portal.SystemException
NoSuchVocabularyException

findByC_F_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TagsVocabulary[] findByC_F_PrevAndNext(long vocabularyId,
                                                     long companyId,
                                                     boolean folksonomy,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchVocabularyException
Throws:
com.liferay.portal.SystemException
NoSuchVocabularyException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<TagsVocabulary> findAll()
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<TagsVocabulary> findAll(int start,
                                                     int end)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<TagsVocabulary> findAll(int start,
                                                     int end,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByG_N

void removeByG_N(long groupId,
                 java.lang.String name)
                 throws com.liferay.portal.SystemException,
                        NoSuchVocabularyException
Throws:
com.liferay.portal.SystemException
NoSuchVocabularyException

removeByG_F

void removeByG_F(long groupId,
                 boolean folksonomy)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByC_F

void removeByC_F(long companyId,
                 boolean folksonomy)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_N

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByG_N(long groupId,
                             java.lang.String name)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_F

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByG_F(long groupId,
                             boolean folksonomy)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_F

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByC_F(long companyId,
                             boolean folksonomy)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException