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

All Superinterfaces:
BasePersistence

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

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 TagsSource create(long sourceId)
           
 TagsSource fetchByPrimaryKey(long sourceId)
           
 java.util.List<TagsSource> findAll()
           
 java.util.List<TagsSource> findAll(int start, int end)
           
 java.util.List<TagsSource> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 TagsSource findByPrimaryKey(long sourceId)
           
 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)
           
 TagsSource remove(long sourceId)
           
 TagsSource remove(TagsSource tagsSource)
           
 void removeAll()
           
 TagsSource update(TagsSource tagsSource)
          Deprecated. Use update(TagsSource tagsSource, boolean merge).
 TagsSource update(TagsSource tagsSource, boolean merge)
          Add, update, or merge, the entity.
 TagsSource updateImpl(TagsSource tagsSource, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

TagsSource create(long sourceId)

remove

TagsSource remove(long sourceId)
                  throws com.liferay.portal.SystemException,
                         NoSuchSourceException
Throws:
com.liferay.portal.SystemException
NoSuchSourceException

remove

TagsSource remove(TagsSource tagsSource)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

TagsSource update(TagsSource tagsSource)
                  throws com.liferay.portal.SystemException
Deprecated. Use update(TagsSource tagsSource, boolean merge).

Throws:
com.liferay.portal.SystemException

update

TagsSource update(TagsSource tagsSource,
                  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:
tagsSource - 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 tagsSource 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

TagsSource updateImpl(TagsSource tagsSource,
                      boolean merge)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
TagsSource findByPrimaryKey(long sourceId)
                            throws com.liferay.portal.SystemException,
                                   NoSuchSourceException
Throws:
com.liferay.portal.SystemException
NoSuchSourceException

fetchByPrimaryKey

TagsSource fetchByPrimaryKey(long sourceId)
                             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<TagsSource> findAll()
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

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

removeAll

void removeAll()
               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