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

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

public class TagsAssetUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
TagsAssetUtil()
           
 
Method Summary
static void addTagsEntries(long pk, java.util.List<TagsEntry> tagsEntries)
           
static void addTagsEntries(long pk, long[] tagsEntryPKs)
           
static void addTagsEntry(long pk, long tagsEntryPK)
           
static void addTagsEntry(long pk, TagsEntry tagsEntry)
           
static void clearTagsEntries(long pk)
           
static boolean containsTagsEntries(long pk)
           
static boolean containsTagsEntry(long pk, long tagsEntryPK)
           
static int countAll()
           
static int countByC_C(long classNameId, long classPK)
           
static int countByCompanyId(long companyId)
           
static TagsAsset create(long assetId)
           
static TagsAsset fetchByC_C(long classNameId, long classPK)
           
static TagsAsset fetchByPrimaryKey(long assetId)
           
static java.util.List<TagsAsset> findAll()
           
static java.util.List<TagsAsset> findAll(int start, int end)
           
static java.util.List<TagsAsset> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TagsAsset findByC_C(long classNameId, long classPK)
           
static TagsAsset findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TagsAsset findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TagsAsset[] findByCompanyId_PrevAndNext(long assetId, long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<TagsAsset> findByCompanyId(long companyId)
           
static java.util.List<TagsAsset> findByCompanyId(long companyId, int start, int end)
           
static java.util.List<TagsAsset> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TagsAsset findByPrimaryKey(long assetId)
           
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 TagsAssetPersistence getPersistence()
           
static java.util.List<TagsEntry> getTagsEntries(long pk)
           
static java.util.List<TagsEntry> getTagsEntries(long pk, int start, int end)
           
static java.util.List<TagsEntry> getTagsEntries(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getTagsEntriesSize(long pk)
           
static TagsAsset remove(long assetId)
           
static TagsAsset remove(TagsAsset tagsAsset)
           
static void removeAll()
           
static void removeByC_C(long classNameId, long classPK)
           
static void removeByCompanyId(long companyId)
           
static void removeTagsEntries(long pk, java.util.List<TagsEntry> tagsEntries)
           
static void removeTagsEntries(long pk, long[] tagsEntryPKs)
           
static void removeTagsEntry(long pk, long tagsEntryPK)
           
static void removeTagsEntry(long pk, TagsEntry tagsEntry)
           
 void setPersistence(TagsAssetPersistence persistence)
           
static void setTagsEntries(long pk, java.util.List<TagsEntry> tagsEntries)
           
static void setTagsEntries(long pk, long[] tagsEntryPKs)
           
static TagsAsset update(TagsAsset tagsAsset)
          Deprecated. Use update(TagsAsset tagsAsset, boolean merge).
static TagsAsset update(TagsAsset tagsAsset, boolean merge)
          Add, update, or merge, the entity.
static TagsAsset updateImpl(TagsAsset tagsAsset, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagsAssetUtil

public TagsAssetUtil()
Method Detail

create

public static TagsAsset create(long assetId)

remove

public static TagsAsset remove(long assetId)
                        throws com.liferay.portal.SystemException,
                               NoSuchAssetException
Throws:
com.liferay.portal.SystemException
NoSuchAssetException

remove

public static TagsAsset remove(TagsAsset tagsAsset)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

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

Throws:
com.liferay.portal.SystemException

update

public static TagsAsset update(TagsAsset tagsAsset,
                               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:
tagsAsset - 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 tagsAsset 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 TagsAsset updateImpl(TagsAsset tagsAsset,
                                   boolean merge)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static TagsAsset findByPrimaryKey(long assetId)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchAssetException
Throws:
com.liferay.portal.SystemException
NoSuchAssetException

fetchByPrimaryKey

public static TagsAsset fetchByPrimaryKey(long assetId)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

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

findByCompanyId

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

findByCompanyId

public static java.util.List<TagsAsset> findByCompanyId(long companyId,
                                                        int start,
                                                        int end,
                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId_First

public static TagsAsset findByCompanyId_First(long companyId,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchAssetException
Throws:
com.liferay.portal.SystemException
NoSuchAssetException

findByCompanyId_Last

public static TagsAsset findByCompanyId_Last(long companyId,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchAssetException
Throws:
com.liferay.portal.SystemException
NoSuchAssetException

findByCompanyId_PrevAndNext

public static TagsAsset[] findByCompanyId_PrevAndNext(long assetId,
                                                      long companyId,
                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                               throws com.liferay.portal.SystemException,
                                                      NoSuchAssetException
Throws:
com.liferay.portal.SystemException
NoSuchAssetException

findByC_C

public static TagsAsset findByC_C(long classNameId,
                                  long classPK)
                           throws com.liferay.portal.SystemException,
                                  NoSuchAssetException
Throws:
com.liferay.portal.SystemException
NoSuchAssetException

fetchByC_C

public static TagsAsset fetchByC_C(long classNameId,
                                   long classPK)
                            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)
                                                             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<TagsAsset> findAll()
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

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

removeByCompanyId

public static void removeByCompanyId(long companyId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByC_C

public static void removeByC_C(long classNameId,
                               long classPK)
                        throws com.liferay.portal.SystemException,
                               NoSuchAssetException
Throws:
com.liferay.portal.SystemException
NoSuchAssetException

removeAll

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

countByCompanyId

public static int countByCompanyId(long companyId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_C

public static int countByC_C(long classNameId,
                             long classPK)
                      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

getTagsEntries

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

getTagsEntries

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

getTagsEntries

public static java.util.List<TagsEntry> getTagsEntries(long pk,
                                                       int start,
                                                       int end,
                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getTagsEntriesSize

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

containsTagsEntry

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

containsTagsEntries

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

addTagsEntry

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

addTagsEntry

public static void addTagsEntry(long pk,
                                TagsEntry tagsEntry)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addTagsEntries

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

addTagsEntries

public static void addTagsEntries(long pk,
                                  java.util.List<TagsEntry> tagsEntries)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

clearTagsEntries

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

removeTagsEntry

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

removeTagsEntry

public static void removeTagsEntry(long pk,
                                   TagsEntry tagsEntry)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeTagsEntries

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

removeTagsEntries

public static void removeTagsEntries(long pk,
                                     java.util.List<TagsEntry> tagsEntries)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

setTagsEntries

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

setTagsEntries

public static void setTagsEntries(long pk,
                                  java.util.List<TagsEntry> tagsEntries)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPersistence

public static TagsAssetPersistence getPersistence()

setPersistence

public void setPersistence(TagsAssetPersistence persistence)