com.liferay.portlet.tags.service.persistence
Class TagsEntryUtil

java.lang.Object
  extended by com.liferay.portlet.tags.service.persistence.TagsEntryUtil

public class TagsEntryUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
TagsEntryUtil()
           
 
Method Summary
static void addTagsAsset(long pk, long tagsAssetPK)
           
static void addTagsAsset(long pk, TagsAsset tagsAsset)
           
static void addTagsAssets(long pk, java.util.List<TagsAsset> tagsAssets)
           
static void addTagsAssets(long pk, long[] tagsAssetPKs)
           
static void clearTagsAssets(long pk)
           
static boolean containsTagsAsset(long pk, long tagsAssetPK)
           
static boolean containsTagsAssets(long pk)
           
static int countAll()
           
static int countByP_V(long parentEntryId, long vocabularyId)
           
static int countByVocabularyId(long vocabularyId)
           
static TagsEntry create(long entryId)
           
static TagsEntry fetchByPrimaryKey(long entryId)
           
static java.util.List<TagsEntry> findAll()
           
static java.util.List<TagsEntry> findAll(int start, int end)
           
static java.util.List<TagsEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TagsEntry findByP_V_First(long parentEntryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TagsEntry findByP_V_Last(long parentEntryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TagsEntry[] findByP_V_PrevAndNext(long entryId, long parentEntryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<TagsEntry> findByP_V(long parentEntryId, long vocabularyId)
           
static java.util.List<TagsEntry> findByP_V(long parentEntryId, long vocabularyId, int start, int end)
           
static java.util.List<TagsEntry> findByP_V(long parentEntryId, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TagsEntry findByPrimaryKey(long entryId)
           
static TagsEntry findByVocabularyId_First(long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TagsEntry findByVocabularyId_Last(long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TagsEntry[] findByVocabularyId_PrevAndNext(long entryId, long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<TagsEntry> findByVocabularyId(long vocabularyId)
           
static java.util.List<TagsEntry> findByVocabularyId(long vocabularyId, int start, int end)
           
static java.util.List<TagsEntry> findByVocabularyId(long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static TagsEntryPersistence getPersistence()
           
static java.util.List<TagsAsset> getTagsAssets(long pk)
           
static java.util.List<TagsAsset> getTagsAssets(long pk, int start, int end)
           
static java.util.List<TagsAsset> getTagsAssets(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getTagsAssetsSize(long pk)
           
static TagsEntry remove(long entryId)
           
static TagsEntry remove(TagsEntry tagsEntry)
           
static void removeAll()
           
static void removeByP_V(long parentEntryId, long vocabularyId)
           
static void removeByVocabularyId(long vocabularyId)
           
static void removeTagsAsset(long pk, long tagsAssetPK)
           
static void removeTagsAsset(long pk, TagsAsset tagsAsset)
           
static void removeTagsAssets(long pk, java.util.List<TagsAsset> tagsAssets)
           
static void removeTagsAssets(long pk, long[] tagsAssetPKs)
           
 void setPersistence(TagsEntryPersistence persistence)
           
static void setTagsAssets(long pk, java.util.List<TagsAsset> tagsAssets)
           
static void setTagsAssets(long pk, long[] tagsAssetPKs)
           
static TagsEntry update(TagsEntry tagsEntry)
          Deprecated. Use update(TagsEntry tagsEntry, boolean merge).
static TagsEntry update(TagsEntry tagsEntry, boolean merge)
          Add, update, or merge, the entity.
static TagsEntry updateImpl(TagsEntry tagsEntry, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagsEntryUtil

public TagsEntryUtil()
Method Detail

create

public static TagsEntry create(long entryId)

remove

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

remove

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

update

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

Throws:
com.liferay.portal.SystemException

update

public static 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

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

findByPrimaryKey

public static TagsEntry findByPrimaryKey(long entryId)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchEntryException
Throws:
com.liferay.portal.SystemException
NoSuchEntryException

fetchByPrimaryKey

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

findByVocabularyId

public static java.util.List<TagsEntry> findByVocabularyId(long vocabularyId)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByVocabularyId

public static java.util.List<TagsEntry> findByVocabularyId(long vocabularyId,
                                                           int start,
                                                           int end)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByVocabularyId

public static 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

public static 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

public static 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

public static 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

public static java.util.List<TagsEntry> findByP_V(long parentEntryId,
                                                  long vocabularyId)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_V

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static java.util.List<TagsEntry> findAll()
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<TagsEntry> findAll(int start,
                                                int end)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static 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

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

removeByP_V

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

removeAll

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

countByVocabularyId

public static int countByVocabularyId(long vocabularyId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByP_V

public static int countByP_V(long parentEntryId,
                             long vocabularyId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

public static int countAll()
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getTagsAssets

public static java.util.List<TagsAsset> getTagsAssets(long pk)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getTagsAssets

public static java.util.List<TagsAsset> getTagsAssets(long pk,
                                                      int start,
                                                      int end)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getTagsAssets

public static 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

public static int getTagsAssetsSize(long pk)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsTagsAsset

public static boolean containsTagsAsset(long pk,
                                        long tagsAssetPK)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsTagsAssets

public static boolean containsTagsAssets(long pk)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addTagsAsset

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

addTagsAsset

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

addTagsAssets

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

addTagsAssets

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

clearTagsAssets

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

removeTagsAsset

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

removeTagsAsset

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

removeTagsAssets

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

removeTagsAssets

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

setTagsAssets

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

setTagsAssets

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

getPersistence

public static TagsEntryPersistence getPersistence()

setPersistence

public void setPersistence(TagsEntryPersistence persistence)