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

All Superinterfaces:
BasePersistence

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

View Source

Author:
Brian Wing Shun Chan

Method Summary
 void addTagsAsset(long pk, long tagsAssetPK)
           
 void addTagsAsset(long pk, TagsAsset tagsAsset)
           
 void addTagsAssets(long pk, java.util.List<TagsAsset> tagsAssets)
           
 void addTagsAssets(long pk, long[] tagsAssetPKs)
           
 void clearTagsAssets(long pk)
           
 boolean containsTagsAsset(long pk, long tagsAssetPK)
           
 boolean containsTagsAssets(long pk)
           
 int countAll()
           
 int countByP_V(long parentEntryId, long vocabularyId)
           
 int countByVocabularyId(long vocabularyId)
           
 TagsEntry create(long entryId)
           
 TagsEntry fetchByPrimaryKey(long entryId)
           
 java.util.List<TagsEntry> findAll()
           
 java.util.List<TagsEntry> findAll(int start, int end)
           
 java.util.List<TagsEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TagsEntry findByP_V_First(long parentEntryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TagsEntry findByP_V_Last(long parentEntryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TagsEntry[] findByP_V_PrevAndNext(long entryId, long parentEntryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<TagsEntry> findByP_V(long parentEntryId, long vocabularyId)
           
 java.util.List<TagsEntry> findByP_V(long parentEntryId, long vocabularyId, int start, int end)
           
 java.util.List<TagsEntry> findByP_V(long parentEntryId, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TagsEntry findByPrimaryKey(long entryId)
           
 TagsEntry findByVocabularyId_First(long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TagsEntry findByVocabularyId_Last(long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TagsEntry[] findByVocabularyId_PrevAndNext(long entryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<TagsEntry> findByVocabularyId(long vocabularyId)
           
 java.util.List<TagsEntry> findByVocabularyId(long vocabularyId, int start, int end)
           
 java.util.List<TagsEntry> findByVocabularyId(long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 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)
           
 java.util.List<TagsAsset> getTagsAssets(long pk)
           
 java.util.List<TagsAsset> getTagsAssets(long pk, int start, int end)
           
 java.util.List<TagsAsset> getTagsAssets(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getTagsAssetsSize(long pk)
           
 TagsEntry remove(long entryId)
           
 TagsEntry remove(TagsEntry tagsEntry)
           
 void removeAll()
           
 void removeByP_V(long parentEntryId, long vocabularyId)
           
 void removeByVocabularyId(long vocabularyId)
           
 void removeTagsAsset(long pk, long tagsAssetPK)
           
 void removeTagsAsset(long pk, TagsAsset tagsAsset)
           
 void removeTagsAssets(long pk, java.util.List<TagsAsset> tagsAssets)
           
 void removeTagsAssets(long pk, long[] tagsAssetPKs)
           
 void setTagsAssets(long pk, java.util.List<TagsAsset> tagsAssets)
           
 void setTagsAssets(long pk, long[] tagsAssetPKs)
           
 TagsEntry update(TagsEntry tagsEntry)
          Deprecated. Use update(TagsEntry tagsEntry, boolean merge).
 TagsEntry update(TagsEntry tagsEntry, boolean merge)
          Add, update, or merge, the entity.
 TagsEntry updateImpl(TagsEntry tagsEntry, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

TagsEntry create(long entryId)

remove

TagsEntry remove(long entryId)
                 throws com.liferay.portal.SystemException,
                        NoSuchEntryException
Throws:
com.liferay.portal.SystemException
NoSuchEntryException

remove

TagsEntry remove(TagsEntry tagsEntry)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

TagsEntry update(TagsEntry tagsEntry)
                 throws com.liferay.portal.SystemException
Deprecated. Use update(TagsEntry tagsEntry, boolean merge).

Throws:
com.liferay.portal.SystemException

update

TagsEntry update(TagsEntry tagsEntry,
                 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:
tagsEntry - 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 tagsEntry 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

TagsEntry updateImpl(TagsEntry tagsEntry,
                     boolean merge)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TagsEntry findByPrimaryKey(long entryId)
                           throws com.liferay.portal.SystemException,
                                  NoSuchEntryException
Throws:
com.liferay.portal.SystemException
NoSuchEntryException

fetchByPrimaryKey

TagsEntry fetchByPrimaryKey(long entryId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByVocabularyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<TagsEntry> findByVocabularyId(long vocabularyId)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByVocabularyId

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

findByVocabularyId

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

findByVocabularyId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TagsEntry findByVocabularyId_First(long vocabularyId,
                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException,
                                          NoSuchEntryException
Throws:
com.liferay.portal.SystemException
NoSuchEntryException

findByVocabularyId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TagsEntry findByVocabularyId_Last(long vocabularyId,
                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchEntryException
Throws:
com.liferay.portal.SystemException
NoSuchEntryException

findByVocabularyId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TagsEntry[] findByVocabularyId_PrevAndNext(long entryId,
                                                         long vocabularyId,
                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.SystemException,
                                                  NoSuchEntryException
Throws:
com.liferay.portal.SystemException
NoSuchEntryException

findByP_V

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<TagsEntry> findByP_V(long parentEntryId,
                                                  long vocabularyId)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_V

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<TagsEntry> findByP_V(long parentEntryId,
                                                  long vocabularyId,
                                                  int start,
                                                  int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_V

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

findByP_V_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TagsEntry findByP_V_First(long parentEntryId,
                                        long vocabularyId,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                          throws com.liferay.portal.SystemException,
                                 NoSuchEntryException
Throws:
com.liferay.portal.SystemException
NoSuchEntryException

findByP_V_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TagsEntry findByP_V_Last(long parentEntryId,
                                       long vocabularyId,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                         throws com.liferay.portal.SystemException,
                                NoSuchEntryException
Throws:
com.liferay.portal.SystemException
NoSuchEntryException

findByP_V_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TagsEntry[] findByP_V_PrevAndNext(long entryId,
                                                long parentEntryId,
                                                long vocabularyId,
                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchEntryException
Throws:
com.liferay.portal.SystemException
NoSuchEntryException

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<TagsEntry> findAll()
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

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

removeByVocabularyId

void removeByVocabularyId(long vocabularyId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByP_V

void removeByP_V(long parentEntryId,
                 long vocabularyId)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

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

countByVocabularyId

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

countByP_V

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByP_V(long parentEntryId,
                             long vocabularyId)
               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

getTagsAssets

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<TagsAsset> getTagsAssets(long pk)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getTagsAssets

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

getTagsAssets

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

getTagsAssetsSize

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

containsTagsAsset

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean containsTagsAsset(long pk,
                                        long tagsAssetPK)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsTagsAssets

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean containsTagsAssets(long pk)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addTagsAsset

void addTagsAsset(long pk,
                  long tagsAssetPK)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addTagsAsset

void addTagsAsset(long pk,
                  TagsAsset tagsAsset)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addTagsAssets

void addTagsAssets(long pk,
                   long[] tagsAssetPKs)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addTagsAssets

void addTagsAssets(long pk,
                   java.util.List<TagsAsset> tagsAssets)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

clearTagsAssets

void clearTagsAssets(long pk)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeTagsAsset

void removeTagsAsset(long pk,
                     long tagsAssetPK)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeTagsAsset

void removeTagsAsset(long pk,
                     TagsAsset tagsAsset)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeTagsAssets

void removeTagsAssets(long pk,
                      long[] tagsAssetPKs)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeTagsAssets

void removeTagsAssets(long pk,
                      java.util.List<TagsAsset> tagsAssets)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

setTagsAssets

void setTagsAssets(long pk,
                   long[] tagsAssetPKs)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

setTagsAssets

void setTagsAssets(long pk,
                   java.util.List<TagsAsset> tagsAssets)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException