Liferay 6.0.5

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

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

public class SocialEquityHistoryPersistenceImpl
extends BasePersistenceImpl<SocialEquityHistory>
implements SocialEquityHistoryPersistence

The persistence implementation for the social equity history service.

Never modify or reference this class directly. Always use SocialEquityHistoryUtil to access the social equity history persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

See Also:
SocialEquityHistoryPersistence, SocialEquityHistoryUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_FIND_ALL
           
protected  ResourcePersistence resourcePersistence
           
protected  SocialActivityPersistence socialActivityPersistence
           
protected  SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence
           
protected  SocialEquityHistoryPersistence socialEquityHistoryPersistence
           
protected  SocialEquityLogPersistence socialEquityLogPersistence
           
protected  SocialEquitySettingPersistence socialEquitySettingPersistence
           
protected  SocialEquityUserPersistence socialEquityUserPersistence
           
protected  SocialRelationPersistence socialRelationPersistence
           
protected  SocialRequestPersistence socialRequestPersistence
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, 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
SocialEquityHistoryPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the social equity history persistence.
 void cacheResult(List<SocialEquityHistory> socialEquityHistories)
          Caches the social equity histories in the entity cache if it is enabled.
 void cacheResult(SocialEquityHistory socialEquityHistory)
          Caches the social equity history in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all social equity histories.
 void clearCache(SocialEquityHistory socialEquityHistory)
          Clears the cache for the social equity history.
 int countAll()
          Counts all the social equity histories.
 SocialEquityHistory create(long equityHistoryId)
          Creates a new social equity history with the primary key.
 SocialEquityHistory fetchByPrimaryKey(long equityHistoryId)
          Finds the social equity history with the primary key or returns null if it could not be found.
 SocialEquityHistory fetchByPrimaryKey(Serializable primaryKey)
          Finds the social equity history with the primary key or returns null if it could not be found.
 List<SocialEquityHistory> findAll()
          Finds all the social equity histories.
 List<SocialEquityHistory> findAll(int start, int end)
          Finds a range of all the social equity histories.
 List<SocialEquityHistory> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social equity histories.
 SocialEquityHistory findByPrimaryKey(long equityHistoryId)
          Finds the social equity history with the primary key or throws a NoSuchEquityHistoryException if it could not be found.
 SocialEquityHistory findByPrimaryKey(Serializable primaryKey)
          Finds the social equity history with the primary key or throws a NoSuchModelException if it could not be found.
 SocialEquityHistory remove(long equityHistoryId)
          Removes the social equity history with the primary key from the database.
 SocialEquityHistory remove(Serializable primaryKey)
          Removes the social equity history with the primary key from the database.
 void removeAll()
          Removes all the social equity histories from the database.
protected  SocialEquityHistory removeImpl(SocialEquityHistory socialEquityHistory)
          Removes the model instance from the database.
protected  SocialEquityHistory toUnwrappedModel(SocialEquityHistory socialEquityHistory)
           
 SocialEquityHistory updateImpl(SocialEquityHistory socialEquityHistory, boolean merge)
          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, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
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
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

socialActivityPersistence

@BeanReference(type=SocialActivityPersistence.class)
protected SocialActivityPersistence socialActivityPersistence

socialEquityAssetEntryPersistence

@BeanReference(type=SocialEquityAssetEntryPersistence.class)
protected SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence

socialEquityHistoryPersistence

@BeanReference(type=SocialEquityHistoryPersistence.class)
protected SocialEquityHistoryPersistence socialEquityHistoryPersistence

socialEquityLogPersistence

@BeanReference(type=SocialEquityLogPersistence.class)
protected SocialEquityLogPersistence socialEquityLogPersistence

socialEquitySettingPersistence

@BeanReference(type=SocialEquitySettingPersistence.class)
protected SocialEquitySettingPersistence socialEquitySettingPersistence

socialEquityUserPersistence

@BeanReference(type=SocialEquityUserPersistence.class)
protected SocialEquityUserPersistence socialEquityUserPersistence

socialRelationPersistence

@BeanReference(type=SocialRelationPersistence.class)
protected SocialRelationPersistence socialRelationPersistence

socialRequestPersistence

@BeanReference(type=SocialRequestPersistence.class)
protected SocialRequestPersistence socialRequestPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence
Constructor Detail

SocialEquityHistoryPersistenceImpl

public SocialEquityHistoryPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(SocialEquityHistory socialEquityHistory)
Caches the social equity history in the entity cache if it is enabled.

Specified by:
cacheResult in interface SocialEquityHistoryPersistence
Parameters:
socialEquityHistory - the social equity history to cache

cacheResult

public void cacheResult(List<SocialEquityHistory> socialEquityHistories)
Caches the social equity histories in the entity cache if it is enabled.

Specified by:
cacheResult in interface SocialEquityHistoryPersistence
Parameters:
socialEquityHistories - the social equity histories to cache

clearCache

public void clearCache()
Clears the cache for all social equity histories.

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(SocialEquityHistory socialEquityHistory)
Clears the cache for the social equity history.

The EntityCache and FinderCache are both cleared by this method.

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

create

public SocialEquityHistory create(long equityHistoryId)
Creates a new social equity history with the primary key. Does not add the social equity history to the database.

Specified by:
create in interface SocialEquityHistoryPersistence
Parameters:
equityHistoryId - the primary key for the new social equity history
Returns:
the new social equity history

remove

public SocialEquityHistory remove(Serializable primaryKey)
                           throws NoSuchModelException,
                                  SystemException
Removes the social equity history with the primary key from the database. Also notifies the appropriate model listeners.

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

remove

public SocialEquityHistory remove(long equityHistoryId)
                           throws NoSuchEquityHistoryException,
                                  SystemException
Removes the social equity history with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface SocialEquityHistoryPersistence
Parameters:
equityHistoryId - the primary key of the social equity history to remove
Returns:
the social equity history that was removed
Throws:
NoSuchEquityHistoryException - if a social equity history with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

protected SocialEquityHistory removeImpl(SocialEquityHistory socialEquityHistory)
                                  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<SocialEquityHistory>
Parameters:
socialEquityHistory - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public SocialEquityHistory updateImpl(SocialEquityHistory socialEquityHistory,
                                      boolean merge)
                               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 SocialEquityHistoryPersistence
Overrides:
updateImpl in class BasePersistenceImpl<SocialEquityHistory>
Parameters:
socialEquityHistory - the model instance to update
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected SocialEquityHistory toUnwrappedModel(SocialEquityHistory socialEquityHistory)

findByPrimaryKey

public SocialEquityHistory findByPrimaryKey(Serializable primaryKey)
                                     throws NoSuchModelException,
                                            SystemException
Finds the social equity history with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<SocialEquityHistory>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<SocialEquityHistory>
Parameters:
primaryKey - the primary key of the social equity history to find
Returns:
the social equity history
Throws:
NoSuchModelException - if a social equity history with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

public SocialEquityHistory findByPrimaryKey(long equityHistoryId)
                                     throws NoSuchEquityHistoryException,
                                            SystemException
Finds the social equity history with the primary key or throws a NoSuchEquityHistoryException if it could not be found.

Specified by:
findByPrimaryKey in interface SocialEquityHistoryPersistence
Parameters:
equityHistoryId - the primary key of the social equity history to find
Returns:
the social equity history
Throws:
NoSuchEquityHistoryException - if a social equity history with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public SocialEquityHistory fetchByPrimaryKey(Serializable primaryKey)
                                      throws SystemException
Finds the social equity history with the primary key or returns null if it could not be found.

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

fetchByPrimaryKey

public SocialEquityHistory fetchByPrimaryKey(long equityHistoryId)
                                      throws SystemException
Finds the social equity history with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface SocialEquityHistoryPersistence
Parameters:
equityHistoryId - the primary key of the social equity history to find
Returns:
the social equity history, or null if a social equity history with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findAll

public List<SocialEquityHistory> findAll()
                                  throws SystemException
Finds all the social equity histories.

Specified by:
findAll in interface SocialEquityHistoryPersistence
Returns:
the social equity histories
Throws:
SystemException - if a system exception occurred

findAll

public List<SocialEquityHistory> findAll(int start,
                                         int end)
                                  throws SystemException
Finds a range of all the social equity histories.

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.

Specified by:
findAll in interface SocialEquityHistoryPersistence
Parameters:
start - the lower bound of the range of social equity histories to return
end - the upper bound of the range of social equity histories to return (not inclusive)
Returns:
the range of social equity histories
Throws:
SystemException - if a system exception occurred

findAll

public List<SocialEquityHistory> findAll(int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Finds an ordered range of all the social equity histories.

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.

Specified by:
findAll in interface SocialEquityHistoryPersistence
Parameters:
start - the lower bound of the range of social equity histories to return
end - the upper bound of the range of social equity histories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of social equity histories
Throws:
SystemException - if a system exception occurred

removeAll

public void removeAll()
               throws SystemException
Removes all the social equity histories from the database.

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

countAll

public int countAll()
             throws SystemException
Counts all the social equity histories.

Specified by:
countAll in interface SocialEquityHistoryPersistence
Returns:
the number of social equity histories
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the social equity history persistence.


Liferay 6.0.5