com.liferay.portal.service.persistence
Interface ClassNamePersistence

All Superinterfaces:
BasePersistence

public interface ClassNamePersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 void cacheResult(ClassName className)
           
 void cacheResult(java.util.List<ClassName> classNames)
           
 void clearCache()
           
 int countAll()
           
 int countByValue(java.lang.String value)
           
 ClassName create(long classNameId)
           
 ClassName fetchByPrimaryKey(long classNameId)
           
 ClassName fetchByValue(java.lang.String value)
           
 ClassName fetchByValue(java.lang.String value, boolean retrieveFromCache)
           
 java.util.List<ClassName> findAll()
           
 java.util.List<ClassName> findAll(int start, int end)
           
 java.util.List<ClassName> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ClassName findByPrimaryKey(long classNameId)
           
 ClassName findByValue(java.lang.String value)
           
 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)
           
 ClassName remove(ClassName className)
           
 ClassName remove(long classNameId)
           
 void removeAll()
           
 void removeByValue(java.lang.String value)
           
 ClassName update(ClassName className)
          Deprecated. Use update(ClassName className, boolean merge).
 ClassName update(ClassName className, boolean merge)
          Add, update, or merge, the entity.
 ClassName updateImpl(ClassName className, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

cacheResult

void cacheResult(ClassName className)

cacheResult

void cacheResult(java.util.List<ClassName> classNames)

clearCache

void clearCache()
Specified by:
clearCache in interface BasePersistence

create

ClassName create(long classNameId)

remove

ClassName remove(long classNameId)
                 throws NoSuchClassNameException,
                        com.liferay.portal.SystemException
Throws:
NoSuchClassNameException
com.liferay.portal.SystemException

remove

ClassName remove(ClassName className)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

ClassName update(ClassName className)
                 throws com.liferay.portal.SystemException
Deprecated. Use update(ClassName className, boolean merge).

Throws:
com.liferay.portal.SystemException

update

ClassName update(ClassName className,
                 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:
className - 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 className 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

ClassName updateImpl(ClassName className,
                     boolean merge)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

ClassName findByPrimaryKey(long classNameId)
                           throws NoSuchClassNameException,
                                  com.liferay.portal.SystemException
Throws:
NoSuchClassNameException
com.liferay.portal.SystemException

fetchByPrimaryKey

ClassName fetchByPrimaryKey(long classNameId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByValue

ClassName findByValue(java.lang.String value)
                      throws NoSuchClassNameException,
                             com.liferay.portal.SystemException
Throws:
NoSuchClassNameException
com.liferay.portal.SystemException

fetchByValue

ClassName fetchByValue(java.lang.String value)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchByValue

ClassName fetchByValue(java.lang.String value,
                       boolean retrieveFromCache)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

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

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

java.util.List<ClassName> findAll()
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

java.util.List<ClassName> findAll(int start,
                                  int end,
                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByValue

void removeByValue(java.lang.String value)
                   throws NoSuchClassNameException,
                          com.liferay.portal.SystemException
Throws:
NoSuchClassNameException
com.liferay.portal.SystemException

removeAll

void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByValue

int countByValue(java.lang.String value)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException