Liferay 6.0.5

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

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

public class SocialEquityAssetEntryPersistenceImpl
extends BasePersistenceImpl<SocialEquityAssetEntry>
implements SocialEquityAssetEntryPersistence

The persistence implementation for the social equity asset entry service.

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

Caching information and settings can be found in portal.properties

See Also:
SocialEquityAssetEntryPersistence, SocialEquityAssetEntryUtil
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_COUNT_BY_ASSETENTRYID
           
static FinderPath FINDER_PATH_FETCH_BY_ASSETENTRYID
           
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
SocialEquityAssetEntryPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the social equity asset entry persistence.
 void cacheResult(List<SocialEquityAssetEntry> socialEquityAssetEntries)
          Caches the social equity asset entries in the entity cache if it is enabled.
 void cacheResult(SocialEquityAssetEntry socialEquityAssetEntry)
          Caches the social equity asset entry in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all social equity asset entries.
 void clearCache(SocialEquityAssetEntry socialEquityAssetEntry)
          Clears the cache for the social equity asset entry.
 int countAll()
          Counts all the social equity asset entries.
 int countByAssetEntryId(long assetEntryId)
          Counts all the social equity asset entries where assetEntryId = ?.
 SocialEquityAssetEntry create(long equityAssetEntryId)
          Creates a new social equity asset entry with the primary key.
 SocialEquityAssetEntry fetchByAssetEntryId(long assetEntryId)
          Finds the social equity asset entry where assetEntryId = ? or returns null if it could not be found.
 SocialEquityAssetEntry fetchByAssetEntryId(long assetEntryId, boolean retrieveFromCache)
          Finds the social equity asset entry where assetEntryId = ? or returns null if it could not be found, optionally using the finder cache.
 SocialEquityAssetEntry fetchByPrimaryKey(long equityAssetEntryId)
          Finds the social equity asset entry with the primary key or returns null if it could not be found.
 SocialEquityAssetEntry fetchByPrimaryKey(Serializable primaryKey)
          Finds the social equity asset entry with the primary key or returns null if it could not be found.
 List<SocialEquityAssetEntry> findAll()
          Finds all the social equity asset entries.
 List<SocialEquityAssetEntry> findAll(int start, int end)
          Finds a range of all the social equity asset entries.
 List<SocialEquityAssetEntry> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social equity asset entries.
 SocialEquityAssetEntry findByAssetEntryId(long assetEntryId)
          Finds the social equity asset entry where assetEntryId = ? or throws a NoSuchEquityAssetEntryException if it could not be found.
 SocialEquityAssetEntry findByPrimaryKey(long equityAssetEntryId)
          Finds the social equity asset entry with the primary key or throws a NoSuchEquityAssetEntryException if it could not be found.
 SocialEquityAssetEntry findByPrimaryKey(Serializable primaryKey)
          Finds the social equity asset entry with the primary key or throws a NoSuchModelException if it could not be found.
 SocialEquityAssetEntry remove(long equityAssetEntryId)
          Removes the social equity asset entry with the primary key from the database.
 SocialEquityAssetEntry remove(Serializable primaryKey)
          Removes the social equity asset entry with the primary key from the database.
 void removeAll()
          Removes all the social equity asset entries from the database.
 void removeByAssetEntryId(long assetEntryId)
          Removes the social equity asset entry where assetEntryId = ? from the database.
protected  SocialEquityAssetEntry removeImpl(SocialEquityAssetEntry socialEquityAssetEntry)
          Removes the model instance from the database.
protected  SocialEquityAssetEntry toUnwrappedModel(SocialEquityAssetEntry socialEquityAssetEntry)
           
 SocialEquityAssetEntry updateImpl(SocialEquityAssetEntry socialEquityAssetEntry, 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_FETCH_BY_ASSETENTRYID

public static final FinderPath FINDER_PATH_FETCH_BY_ASSETENTRYID

FINDER_PATH_COUNT_BY_ASSETENTRYID

public static final FinderPath FINDER_PATH_COUNT_BY_ASSETENTRYID

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

SocialEquityAssetEntryPersistenceImpl

public SocialEquityAssetEntryPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(SocialEquityAssetEntry socialEquityAssetEntry)
Caches the social equity asset entry in the entity cache if it is enabled.

Specified by:
cacheResult in interface SocialEquityAssetEntryPersistence
Parameters:
socialEquityAssetEntry - the social equity asset entry to cache

cacheResult

public void cacheResult(List<SocialEquityAssetEntry> socialEquityAssetEntries)
Caches the social equity asset entries in the entity cache if it is enabled.

Specified by:
cacheResult in interface SocialEquityAssetEntryPersistence
Parameters:
socialEquityAssetEntries - the social equity asset entries to cache

clearCache

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

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(SocialEquityAssetEntry socialEquityAssetEntry)
Clears the cache for the social equity asset entry.

The EntityCache and FinderCache are both cleared by this method.

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

create

public SocialEquityAssetEntry create(long equityAssetEntryId)
Creates a new social equity asset entry with the primary key. Does not add the social equity asset entry to the database.

Specified by:
create in interface SocialEquityAssetEntryPersistence
Parameters:
equityAssetEntryId - the primary key for the new social equity asset entry
Returns:
the new social equity asset entry

remove

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

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

remove

public SocialEquityAssetEntry remove(long equityAssetEntryId)
                              throws NoSuchEquityAssetEntryException,
                                     SystemException
Removes the social equity asset entry with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface SocialEquityAssetEntryPersistence
Parameters:
equityAssetEntryId - the primary key of the social equity asset entry to remove
Returns:
the social equity asset entry that was removed
Throws:
NoSuchEquityAssetEntryException - if a social equity asset entry with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

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

updateImpl

public SocialEquityAssetEntry updateImpl(SocialEquityAssetEntry socialEquityAssetEntry,
                                         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 SocialEquityAssetEntryPersistence
Overrides:
updateImpl in class BasePersistenceImpl<SocialEquityAssetEntry>
Parameters:
socialEquityAssetEntry - 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 SocialEquityAssetEntry toUnwrappedModel(SocialEquityAssetEntry socialEquityAssetEntry)

findByPrimaryKey

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

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

findByPrimaryKey

public SocialEquityAssetEntry findByPrimaryKey(long equityAssetEntryId)
                                        throws NoSuchEquityAssetEntryException,
                                               SystemException
Finds the social equity asset entry with the primary key or throws a NoSuchEquityAssetEntryException if it could not be found.

Specified by:
findByPrimaryKey in interface SocialEquityAssetEntryPersistence
Parameters:
equityAssetEntryId - the primary key of the social equity asset entry to find
Returns:
the social equity asset entry
Throws:
NoSuchEquityAssetEntryException - if a social equity asset entry with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

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

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

fetchByPrimaryKey

public SocialEquityAssetEntry fetchByPrimaryKey(long equityAssetEntryId)
                                         throws SystemException
Finds the social equity asset entry with the primary key or returns null if it could not be found.

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

findByAssetEntryId

public SocialEquityAssetEntry findByAssetEntryId(long assetEntryId)
                                          throws NoSuchEquityAssetEntryException,
                                                 SystemException
Finds the social equity asset entry where assetEntryId = ? or throws a NoSuchEquityAssetEntryException if it could not be found.

Specified by:
findByAssetEntryId in interface SocialEquityAssetEntryPersistence
Parameters:
assetEntryId - the asset entry id to search with
Returns:
the matching social equity asset entry
Throws:
NoSuchEquityAssetEntryException - if a matching social equity asset entry could not be found
SystemException - if a system exception occurred

fetchByAssetEntryId

public SocialEquityAssetEntry fetchByAssetEntryId(long assetEntryId)
                                           throws SystemException
Finds the social equity asset entry where assetEntryId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByAssetEntryId in interface SocialEquityAssetEntryPersistence
Parameters:
assetEntryId - the asset entry id to search with
Returns:
the matching social equity asset entry, or null if a matching social equity asset entry could not be found
Throws:
SystemException - if a system exception occurred

fetchByAssetEntryId

public SocialEquityAssetEntry fetchByAssetEntryId(long assetEntryId,
                                                  boolean retrieveFromCache)
                                           throws SystemException
Finds the social equity asset entry where assetEntryId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByAssetEntryId in interface SocialEquityAssetEntryPersistence
Parameters:
assetEntryId - the asset entry id to search with
Returns:
the matching social equity asset entry, or null if a matching social equity asset entry could not be found
Throws:
SystemException - if a system exception occurred

findAll

public List<SocialEquityAssetEntry> findAll()
                                     throws SystemException
Finds all the social equity asset entries.

Specified by:
findAll in interface SocialEquityAssetEntryPersistence
Returns:
the social equity asset entries
Throws:
SystemException - if a system exception occurred

findAll

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

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 SocialEquityAssetEntryPersistence
Parameters:
start - the lower bound of the range of social equity asset entries to return
end - the upper bound of the range of social equity asset entries to return (not inclusive)
Returns:
the range of social equity asset entries
Throws:
SystemException - if a system exception occurred

findAll

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

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 SocialEquityAssetEntryPersistence
Parameters:
start - the lower bound of the range of social equity asset entries to return
end - the upper bound of the range of social equity asset entries to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of social equity asset entries
Throws:
SystemException - if a system exception occurred

removeByAssetEntryId

public void removeByAssetEntryId(long assetEntryId)
                          throws NoSuchEquityAssetEntryException,
                                 SystemException
Removes the social equity asset entry where assetEntryId = ? from the database.

Specified by:
removeByAssetEntryId in interface SocialEquityAssetEntryPersistence
Parameters:
assetEntryId - the asset entry id to search with
Throws:
SystemException - if a system exception occurred
NoSuchEquityAssetEntryException

removeAll

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

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

countByAssetEntryId

public int countByAssetEntryId(long assetEntryId)
                        throws SystemException
Counts all the social equity asset entries where assetEntryId = ?.

Specified by:
countByAssetEntryId in interface SocialEquityAssetEntryPersistence
Parameters:
assetEntryId - the asset entry id to search with
Returns:
the number of matching social equity asset entries
Throws:
SystemException - if a system exception occurred

countAll

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

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

afterPropertiesSet

public void afterPropertiesSet()
Initializes the social equity asset entry persistence.


Liferay 6.0.5