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

All Superinterfaces:
BasePersistence

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

View Source

Author:
Brian Wing Shun Chan

Method Summary
 void addTagsEntries(long pk, java.util.List<TagsEntry> tagsEntries)
           
 void addTagsEntries(long pk, long[] tagsEntryPKs)
           
 void addTagsEntry(long pk, long tagsEntryPK)
           
 void addTagsEntry(long pk, TagsEntry tagsEntry)
           
 void clearTagsEntries(long pk)
           
 boolean containsTagsEntries(long pk)
           
 boolean containsTagsEntry(long pk, long tagsEntryPK)
           
 int countAll()
           
 int countByC_C(long classNameId, long classPK)
           
 int countByCompanyId(long companyId)
           
 TagsAsset create(long assetId)
           
 TagsAsset fetchByC_C(long classNameId, long classPK)
           
 TagsAsset fetchByPrimaryKey(long assetId)
           
 java.util.List<TagsAsset> findAll()
           
 java.util.List<TagsAsset> findAll(int start, int end)
           
 java.util.List<TagsAsset> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TagsAsset findByC_C(long classNameId, long classPK)
           
 TagsAsset findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TagsAsset findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TagsAsset[] findByCompanyId_PrevAndNext(long assetId, long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<TagsAsset> findByCompanyId(long companyId)
           
 java.util.List<TagsAsset> findByCompanyId(long companyId, int start, int end)
           
 java.util.List<TagsAsset> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TagsAsset findByPrimaryKey(long assetId)
           
 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<TagsEntry> getTagsEntries(long pk)
           
 java.util.List<TagsEntry> getTagsEntries(long pk, int start, int end)
           
 java.util.List<TagsEntry> getTagsEntries(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getTagsEntriesSize(long pk)
           
 TagsAsset remove(long assetId)
           
 TagsAsset remove(TagsAsset tagsAsset)
           
 void removeAll()
           
 void removeByC_C(long classNameId, long classPK)
           
 void removeByCompanyId(long companyId)
           
 void removeTagsEntries(long pk, java.util.List<TagsEntry> tagsEntries)
           
 void removeTagsEntries(long pk, long[] tagsEntryPKs)
           
 void removeTagsEntry(long pk, long tagsEntryPK)
           
 void removeTagsEntry(long pk, TagsEntry tagsEntry)
           
 void setTagsEntries(long pk, java.util.List<TagsEntry> tagsEntries)
           
 void setTagsEntries(long pk, long[] tagsEntryPKs)
           
 TagsAsset update(TagsAsset tagsAsset)
          Deprecated. Use update(TagsAsset tagsAsset, boolean merge).
 TagsAsset update(TagsAsset tagsAsset, boolean merge)
          Add, update, or merge, the entity.
 TagsAsset updateImpl(TagsAsset tagsAsset, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

TagsAsset create(long assetId)

remove

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

remove

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

update

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

Throws:
com.liferay.portal.SystemException

update

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

TagsAsset updateImpl(TagsAsset tagsAsset,
                     boolean merge)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TagsAsset findByPrimaryKey(long assetId)
                           throws com.liferay.portal.SystemException,
                                  NoSuchAssetException
Throws:
com.liferay.portal.SystemException
NoSuchAssetException

fetchByPrimaryKey

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

findByCompanyId

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

findByCompanyId

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

findByCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TagsAsset findByC_C(long classNameId,
                                  long classPK)
                    throws com.liferay.portal.SystemException,
                           NoSuchAssetException
Throws:
com.liferay.portal.SystemException
NoSuchAssetException

fetchByC_C

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

findAll

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

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

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

removeByC_C

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

removeAll

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

countByCompanyId

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

countByC_C

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByC_C(long classNameId,
                             long classPK)
               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

getTagsEntries

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

getTagsEntries

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

getTagsEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

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

containsTagsEntry

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

containsTagsEntries

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

addTagsEntry

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

addTagsEntry

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

addTagsEntries

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

addTagsEntries

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

clearTagsEntries

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

removeTagsEntry

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

removeTagsEntry

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

removeTagsEntries

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

removeTagsEntries

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

setTagsEntries

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

setTagsEntries

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