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

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

public class TagsSourceUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
TagsSourceUtil()
           
 
Method Summary
static int countAll()
           
static TagsSource create(long sourceId)
           
static TagsSource fetchByPrimaryKey(long sourceId)
           
static java.util.List<TagsSource> findAll()
           
static java.util.List<TagsSource> findAll(int start, int end)
           
static java.util.List<TagsSource> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static TagsSource findByPrimaryKey(long sourceId)
           
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 TagsSourcePersistence getPersistence()
           
static TagsSource remove(long sourceId)
           
static TagsSource remove(TagsSource tagsSource)
           
static void removeAll()
           
 void setPersistence(TagsSourcePersistence persistence)
           
static TagsSource update(TagsSource tagsSource)
          Deprecated. Use update(TagsSource tagsSource, boolean merge).
static TagsSource update(TagsSource tagsSource, boolean merge)
          Add, update, or merge, the entity.
static TagsSource updateImpl(TagsSource tagsSource, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagsSourceUtil

public TagsSourceUtil()
Method Detail

create

public static TagsSource create(long sourceId)

remove

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

remove

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

update

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

Throws:
com.liferay.portal.SystemException

update

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

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

findByPrimaryKey

public static TagsSource findByPrimaryKey(long sourceId)
                                   throws com.liferay.portal.SystemException,
                                          NoSuchSourceException
Throws:
com.liferay.portal.SystemException
NoSuchSourceException

fetchByPrimaryKey

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

findAll

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

findAll

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

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

getPersistence

public static TagsSourcePersistence getPersistence()

setPersistence

public void setPersistence(TagsSourcePersistence persistence)