Liferay 6.2.0-ce-m4

com.liferay.portlet.social.service.persistence
Class SocialActivitySetPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<SocialActivitySet>
      extended by com.liferay.portlet.social.service.persistence.SocialActivitySetPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<SocialActivitySet>, SocialActivitySetPersistence

public class SocialActivitySetPersistenceImpl
extends BasePersistenceImpl<SocialActivitySet>
implements SocialActivitySetPersistence

The persistence implementation for the social activity set service.

Caching information and settings can be found in portal.properties

See Also:
SocialActivitySetPersistence, SocialActivitySetUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
SocialActivitySetPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the social activity set persistence.
 void cacheResult(List<SocialActivitySet> socialActivitySets)
          Caches the social activity sets in the entity cache if it is enabled.
 void cacheResult(SocialActivitySet socialActivitySet)
          Caches the social activity set in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all social activity sets.
 void clearCache(List<SocialActivitySet> socialActivitySets)
          Clears the cache for a List instances of this model.
 void clearCache(SocialActivitySet socialActivitySet)
          Clears the cache for the social activity set.
 int countAll()
          Returns the number of social activity sets.
 SocialActivitySet create(long activitySetId)
          Creates a new social activity set with the primary key.
 void destroy()
           
 SocialActivitySet fetchByPrimaryKey(long activitySetId)
          Returns the social activity set with the primary key or returns null if it could not be found.
 SocialActivitySet fetchByPrimaryKey(Serializable primaryKey)
          Returns the social activity set with the primary key or returns null if it could not be found.
 List<SocialActivitySet> findAll()
          Returns all the social activity sets.
 List<SocialActivitySet> findAll(int start, int end)
          Returns a range of all the social activity sets.
 List<SocialActivitySet> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the social activity sets.
 SocialActivitySet findByPrimaryKey(long activitySetId)
          Returns the social activity set with the primary key or throws a NoSuchActivitySetException if it could not be found.
 SocialActivitySet findByPrimaryKey(Serializable primaryKey)
          Returns the social activity set with the primary key or throws a NoSuchModelException if it could not be found.
 SocialActivitySet remove(long activitySetId)
          Removes the social activity set with the primary key from the database.
 SocialActivitySet remove(Serializable primaryKey)
          Removes the social activity set with the primary key from the database.
 void removeAll()
          Removes all the social activity sets from the database.
protected  SocialActivitySet removeImpl(SocialActivitySet socialActivitySet)
          Removes the model instance from the database.
protected  SocialActivitySet toUnwrappedModel(SocialActivitySet socialActivitySet)
           
 SocialActivitySet updateImpl(SocialActivitySet socialActivitySet)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL
Constructor Detail

SocialActivitySetPersistenceImpl

public SocialActivitySetPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(SocialActivitySet socialActivitySet)
Caches the social activity set in the entity cache if it is enabled.

Specified by:
cacheResult in interface SocialActivitySetPersistence
Parameters:
socialActivitySet - the social activity set

cacheResult

public void cacheResult(List<SocialActivitySet> socialActivitySets)
Caches the social activity sets in the entity cache if it is enabled.

Specified by:
cacheResult in interface SocialActivitySetPersistence
Parameters:
socialActivitySets - the social activity sets

clearCache

public void clearCache()
Clears the cache for all social activity sets.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SocialActivitySet>
Overrides:
clearCache in class BasePersistenceImpl<SocialActivitySet>

clearCache

public void clearCache(SocialActivitySet socialActivitySet)
Clears the cache for the social activity set.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SocialActivitySet>
Overrides:
clearCache in class BasePersistenceImpl<SocialActivitySet>
Parameters:
socialActivitySet - the instance of this model to clear the cache for

clearCache

public void clearCache(List<SocialActivitySet> socialActivitySets)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SocialActivitySet>
Overrides:
clearCache in class BasePersistenceImpl<SocialActivitySet>
Parameters:
socialActivitySets - the List instances of this model to clear the cache for

create

public SocialActivitySet create(long activitySetId)
Creates a new social activity set with the primary key. Does not add the social activity set to the database.

Specified by:
create in interface SocialActivitySetPersistence
Parameters:
activitySetId - the primary key for the new social activity set
Returns:
the new social activity set

remove

public SocialActivitySet remove(long activitySetId)
                         throws NoSuchActivitySetException,
                                SystemException
Removes the social activity set with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface SocialActivitySetPersistence
Parameters:
activitySetId - the primary key of the social activity set
Returns:
the social activity set that was removed
Throws:
NoSuchActivitySetException - if a social activity set with the primary key could not be found
SystemException - if a system exception occurred

remove

public SocialActivitySet remove(Serializable primaryKey)
                         throws NoSuchActivitySetException,
                                SystemException
Removes the social activity set with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<SocialActivitySet>
Overrides:
remove in class BasePersistenceImpl<SocialActivitySet>
Parameters:
primaryKey - the primary key of the social activity set
Returns:
the social activity set that was removed
Throws:
NoSuchActivitySetException - if a social activity set with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

protected SocialActivitySet removeImpl(SocialActivitySet socialActivitySet)
                                throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<SocialActivitySet>
Parameters:
socialActivitySet - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public SocialActivitySet updateImpl(SocialActivitySet socialActivitySet)
                             throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface SocialActivitySetPersistence
Overrides:
updateImpl in class BasePersistenceImpl<SocialActivitySet>
Parameters:
socialActivitySet - the model instance to update
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected SocialActivitySet toUnwrappedModel(SocialActivitySet socialActivitySet)

findByPrimaryKey

public SocialActivitySet findByPrimaryKey(Serializable primaryKey)
                                   throws NoSuchActivitySetException,
                                          SystemException
Returns the social activity set with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<SocialActivitySet>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<SocialActivitySet>
Parameters:
primaryKey - the primary key of the social activity set
Returns:
the social activity set
Throws:
NoSuchActivitySetException - if a social activity set with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

public SocialActivitySet findByPrimaryKey(long activitySetId)
                                   throws NoSuchActivitySetException,
                                          SystemException
Returns the social activity set with the primary key or throws a NoSuchActivitySetException if it could not be found.

Specified by:
findByPrimaryKey in interface SocialActivitySetPersistence
Parameters:
activitySetId - the primary key of the social activity set
Returns:
the social activity set
Throws:
NoSuchActivitySetException - if a social activity set with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public SocialActivitySet fetchByPrimaryKey(Serializable primaryKey)
                                    throws SystemException
Returns the social activity set with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<SocialActivitySet>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<SocialActivitySet>
Parameters:
primaryKey - the primary key of the social activity set
Returns:
the social activity set, or null if a social activity set with the primary key could not be found
Throws:
SystemException - if a system exception occurred

fetchByPrimaryKey

public SocialActivitySet fetchByPrimaryKey(long activitySetId)
                                    throws SystemException
Returns the social activity set with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface SocialActivitySetPersistence
Parameters:
activitySetId - the primary key of the social activity set
Returns:
the social activity set, or null if a social activity set with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findAll

public List<SocialActivitySet> findAll()
                                throws SystemException
Returns all the social activity sets.

Specified by:
findAll in interface SocialActivitySetPersistence
Returns:
the social activity sets
Throws:
SystemException - if a system exception occurred

findAll

public List<SocialActivitySet> findAll(int start,
                                       int end)
                                throws SystemException
Returns a range of all the social activity sets.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivitySetModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findAll in interface SocialActivitySetPersistence
Parameters:
start - the lower bound of the range of social activity sets
end - the upper bound of the range of social activity sets (not inclusive)
Returns:
the range of social activity sets
Throws:
SystemException - if a system exception occurred

findAll

public List<SocialActivitySet> findAll(int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the social activity sets.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialActivitySetModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findAll in interface SocialActivitySetPersistence
Parameters:
start - the lower bound of the range of social activity sets
end - the upper bound of the range of social activity sets (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of social activity sets
Throws:
SystemException - if a system exception occurred

removeAll

public void removeAll()
               throws SystemException
Removes all the social activity sets from the database.

Specified by:
removeAll in interface SocialActivitySetPersistence
Throws:
SystemException - if a system exception occurred

countAll

public int countAll()
             throws SystemException
Returns the number of social activity sets.

Specified by:
countAll in interface SocialActivitySetPersistence
Returns:
the number of social activity sets
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the social activity set persistence.


destroy

public void destroy()

Liferay 6.2.0-ce-m4