Liferay 6.0.3

com.liferay.portlet.documentlibrary.service.persistence
Class DLFileRankPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<DLFileRank>
      extended by com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<DLFileRank>, DLFileRankPersistence

public class DLFileRankPersistenceImpl
extends BasePersistenceImpl<DLFileRank>
implements DLFileRankPersistence

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

Field Summary
protected  DLFileEntryPersistence dlFileEntryPersistence
           
protected  DLFileRankPersistence dlFileRankPersistence
           
protected  DLFileShortcutPersistence dlFileShortcutPersistence
           
protected  DLFileVersionPersistence dlFileVersionPersistence
           
protected  DLFolderPersistence dlFolderPersistence
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_C_U_F_N
           
static FinderPath FINDER_PATH_COUNT_BY_F_N
           
static FinderPath FINDER_PATH_COUNT_BY_G_U
           
static FinderPath FINDER_PATH_COUNT_BY_USERID
           
static FinderPath FINDER_PATH_FETCH_BY_C_U_F_N
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_F_N
           
static FinderPath FINDER_PATH_FIND_BY_G_U
           
static FinderPath FINDER_PATH_FIND_BY_USERID
           
protected  LayoutPersistence layoutPersistence
           
protected  ResourcePersistence resourcePersistence
           
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
DLFileRankPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 void cacheResult(DLFileRank dlFileRank)
           
 void cacheResult(List<DLFileRank> dlFileRanks)
           
 void clearCache()
          Clears the cache for all instances of this model.
 void clearCache(DLFileRank dlFileRank)
          Clears the cache for one instance of this model.
 int countAll()
           
 int countByC_U_F_N(long companyId, long userId, long folderId, String name)
           
 int countByF_N(long folderId, String name)
           
 int countByG_U(long groupId, long userId)
           
 int countByUserId(long userId)
           
 DLFileRank create(long fileRankId)
           
 DLFileRank fetchByC_U_F_N(long companyId, long userId, long folderId, String name)
           
 DLFileRank fetchByC_U_F_N(long companyId, long userId, long folderId, String name, boolean retrieveFromCache)
           
 DLFileRank fetchByPrimaryKey(long fileRankId)
           
 DLFileRank fetchByPrimaryKey(Serializable primaryKey)
          Finds an instance of this model by its primary key, or return null if it could not be found.
 List<DLFileRank> findAll()
           
 List<DLFileRank> findAll(int start, int end)
           
 List<DLFileRank> findAll(int start, int end, OrderByComparator orderByComparator)
           
 DLFileRank findByC_U_F_N(long companyId, long userId, long folderId, String name)
           
 DLFileRank findByF_N_First(long folderId, String name, OrderByComparator orderByComparator)
           
 DLFileRank findByF_N_Last(long folderId, String name, OrderByComparator orderByComparator)
           
 DLFileRank[] findByF_N_PrevAndNext(long fileRankId, long folderId, String name, OrderByComparator orderByComparator)
           
 List<DLFileRank> findByF_N(long folderId, String name)
           
 List<DLFileRank> findByF_N(long folderId, String name, int start, int end)
           
 List<DLFileRank> findByF_N(long folderId, String name, int start, int end, OrderByComparator orderByComparator)
           
 DLFileRank findByG_U_First(long groupId, long userId, OrderByComparator orderByComparator)
           
 DLFileRank findByG_U_Last(long groupId, long userId, OrderByComparator orderByComparator)
           
 DLFileRank[] findByG_U_PrevAndNext(long fileRankId, long groupId, long userId, OrderByComparator orderByComparator)
           
 List<DLFileRank> findByG_U(long groupId, long userId)
           
 List<DLFileRank> findByG_U(long groupId, long userId, int start, int end)
           
 List<DLFileRank> findByG_U(long groupId, long userId, int start, int end, OrderByComparator orderByComparator)
           
 DLFileRank findByPrimaryKey(long fileRankId)
           
 DLFileRank findByPrimaryKey(Serializable primaryKey)
          Finds an instance of this model by its primary key, or throw an exception if it could not be found.
 DLFileRank findByUserId_First(long userId, OrderByComparator orderByComparator)
           
 DLFileRank findByUserId_Last(long userId, OrderByComparator orderByComparator)
           
 DLFileRank[] findByUserId_PrevAndNext(long fileRankId, long userId, OrderByComparator orderByComparator)
           
 List<DLFileRank> findByUserId(long userId)
           
 List<DLFileRank> findByUserId(long userId, int start, int end)
           
 List<DLFileRank> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
           
protected  DLFileRank getByF_N_PrevAndNext(Session session, DLFileRank dlFileRank, long folderId, String name, OrderByComparator orderByComparator, boolean previous)
           
protected  DLFileRank getByG_U_PrevAndNext(Session session, DLFileRank dlFileRank, long groupId, long userId, OrderByComparator orderByComparator, boolean previous)
           
protected  DLFileRank getByUserId_PrevAndNext(Session session, DLFileRank dlFileRank, long userId, OrderByComparator orderByComparator, boolean previous)
           
 DLFileRank remove(long fileRankId)
           
 DLFileRank remove(Serializable primaryKey)
          Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners.
 void removeAll()
           
 void removeByC_U_F_N(long companyId, long userId, long folderId, String name)
           
 void removeByF_N(long folderId, String name)
           
 void removeByG_U(long groupId, long userId)
           
 void removeByUserId(long userId)
           
protected  DLFileRank removeImpl(DLFileRank dlFileRank)
          Removes the model instance from the database.
protected  DLFileRank toUnwrappedModel(DLFileRank dlFileRank)
           
 DLFileRank updateImpl(DLFileRank dlFileRank, 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_BY_USERID

public static final FinderPath FINDER_PATH_FIND_BY_USERID

FINDER_PATH_COUNT_BY_USERID

public static final FinderPath FINDER_PATH_COUNT_BY_USERID

FINDER_PATH_FIND_BY_G_U

public static final FinderPath FINDER_PATH_FIND_BY_G_U

FINDER_PATH_COUNT_BY_G_U

public static final FinderPath FINDER_PATH_COUNT_BY_G_U

FINDER_PATH_FIND_BY_F_N

public static final FinderPath FINDER_PATH_FIND_BY_F_N

FINDER_PATH_COUNT_BY_F_N

public static final FinderPath FINDER_PATH_COUNT_BY_F_N

FINDER_PATH_FETCH_BY_C_U_F_N

public static final FinderPath FINDER_PATH_FETCH_BY_C_U_F_N

FINDER_PATH_COUNT_BY_C_U_F_N

public static final FinderPath FINDER_PATH_COUNT_BY_C_U_F_N

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

dlFileEntryPersistence

@BeanReference(type=DLFileEntryPersistence.class)
protected DLFileEntryPersistence dlFileEntryPersistence

dlFileRankPersistence

@BeanReference(type=DLFileRankPersistence.class)
protected DLFileRankPersistence dlFileRankPersistence

dlFileShortcutPersistence

@BeanReference(type=DLFileShortcutPersistence.class)
protected DLFileShortcutPersistence dlFileShortcutPersistence

dlFileVersionPersistence

@BeanReference(type=DLFileVersionPersistence.class)
protected DLFileVersionPersistence dlFileVersionPersistence

dlFolderPersistence

@BeanReference(type=DLFolderPersistence.class)
protected DLFolderPersistence dlFolderPersistence

layoutPersistence

@BeanReference(type=LayoutPersistence.class)
protected LayoutPersistence layoutPersistence

resourcePersistence

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

userPersistence

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

DLFileRankPersistenceImpl

public DLFileRankPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(DLFileRank dlFileRank)
Specified by:
cacheResult in interface DLFileRankPersistence

cacheResult

public void cacheResult(List<DLFileRank> dlFileRanks)
Specified by:
cacheResult in interface DLFileRankPersistence

clearCache

public void clearCache()
Description copied from interface: BasePersistence
Clears the cache for all instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Caching information and settings can be found in portal.properties

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

clearCache

public void clearCache(DLFileRank dlFileRank)
Description copied from interface: BasePersistence
Clears the cache for one instance of this model.

The EntityCache and FinderCache are both cleared by this method.

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

create

public DLFileRank create(long fileRankId)
Specified by:
create in interface DLFileRankPersistence

remove

public DLFileRank remove(Serializable primaryKey)
                  throws NoSuchModelException,
                         SystemException
Description copied from interface: BasePersistence
Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<DLFileRank>
Overrides:
remove in class BasePersistenceImpl<DLFileRank>
Parameters:
primaryKey - the primary key of the model instance to remove
Returns:
the model instance that was removed
Throws:
NoSuchModelException - if an instance of this model with the primary key does not exist
SystemException - if a system exception occurred

remove

public DLFileRank remove(long fileRankId)
                  throws NoSuchFileRankException,
                         SystemException
Specified by:
remove in interface DLFileRankPersistence
Throws:
NoSuchFileRankException
SystemException

removeImpl

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

updateImpl

public DLFileRank updateImpl(DLFileRank dlFileRank,
                             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 DLFileRankPersistence
Overrides:
updateImpl in class BasePersistenceImpl<DLFileRank>
Parameters:
dlFileRank - 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 DLFileRank toUnwrappedModel(DLFileRank dlFileRank)

findByPrimaryKey

public DLFileRank findByPrimaryKey(Serializable primaryKey)
                            throws NoSuchModelException,
                                   SystemException
Description copied from interface: BasePersistence
Finds an instance of this model by its primary key, or throw an exception if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<DLFileRank>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<DLFileRank>
Parameters:
primaryKey - the primary key of the model instance to find
Returns:
the model instance
Throws:
NoSuchModelException - if an instance of this model with the primary key does not exist
SystemException - if the primary key is null, or if a system exception occurred

findByPrimaryKey

public DLFileRank findByPrimaryKey(long fileRankId)
                            throws NoSuchFileRankException,
                                   SystemException
Specified by:
findByPrimaryKey in interface DLFileRankPersistence
Throws:
NoSuchFileRankException
SystemException

fetchByPrimaryKey

public DLFileRank fetchByPrimaryKey(Serializable primaryKey)
                             throws SystemException
Description copied from interface: BasePersistence
Finds an instance of this model by its primary key, or return null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<DLFileRank>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<DLFileRank>
Parameters:
primaryKey - the primary key of the model instance to find
Returns:
the model instance, or null if an instance of this model with the primary key does not exist
Throws:
SystemException - if the primary key is null, or if a system exception occurred

fetchByPrimaryKey

public DLFileRank fetchByPrimaryKey(long fileRankId)
                             throws SystemException
Specified by:
fetchByPrimaryKey in interface DLFileRankPersistence
Throws:
SystemException

findByUserId

public List<DLFileRank> findByUserId(long userId)
                              throws SystemException
Specified by:
findByUserId in interface DLFileRankPersistence
Throws:
SystemException

findByUserId

public List<DLFileRank> findByUserId(long userId,
                                     int start,
                                     int end)
                              throws SystemException
Specified by:
findByUserId in interface DLFileRankPersistence
Throws:
SystemException

findByUserId

public List<DLFileRank> findByUserId(long userId,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Specified by:
findByUserId in interface DLFileRankPersistence
Throws:
SystemException

findByUserId_First

public DLFileRank findByUserId_First(long userId,
                                     OrderByComparator orderByComparator)
                              throws NoSuchFileRankException,
                                     SystemException
Specified by:
findByUserId_First in interface DLFileRankPersistence
Throws:
NoSuchFileRankException
SystemException

findByUserId_Last

public DLFileRank findByUserId_Last(long userId,
                                    OrderByComparator orderByComparator)
                             throws NoSuchFileRankException,
                                    SystemException
Specified by:
findByUserId_Last in interface DLFileRankPersistence
Throws:
NoSuchFileRankException
SystemException

findByUserId_PrevAndNext

public DLFileRank[] findByUserId_PrevAndNext(long fileRankId,
                                             long userId,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchFileRankException,
                                             SystemException
Specified by:
findByUserId_PrevAndNext in interface DLFileRankPersistence
Throws:
NoSuchFileRankException
SystemException

getByUserId_PrevAndNext

protected DLFileRank getByUserId_PrevAndNext(Session session,
                                             DLFileRank dlFileRank,
                                             long userId,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

findByG_U

public List<DLFileRank> findByG_U(long groupId,
                                  long userId)
                           throws SystemException
Specified by:
findByG_U in interface DLFileRankPersistence
Throws:
SystemException

findByG_U

public List<DLFileRank> findByG_U(long groupId,
                                  long userId,
                                  int start,
                                  int end)
                           throws SystemException
Specified by:
findByG_U in interface DLFileRankPersistence
Throws:
SystemException

findByG_U

public List<DLFileRank> findByG_U(long groupId,
                                  long userId,
                                  int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Specified by:
findByG_U in interface DLFileRankPersistence
Throws:
SystemException

findByG_U_First

public DLFileRank findByG_U_First(long groupId,
                                  long userId,
                                  OrderByComparator orderByComparator)
                           throws NoSuchFileRankException,
                                  SystemException
Specified by:
findByG_U_First in interface DLFileRankPersistence
Throws:
NoSuchFileRankException
SystemException

findByG_U_Last

public DLFileRank findByG_U_Last(long groupId,
                                 long userId,
                                 OrderByComparator orderByComparator)
                          throws NoSuchFileRankException,
                                 SystemException
Specified by:
findByG_U_Last in interface DLFileRankPersistence
Throws:
NoSuchFileRankException
SystemException

findByG_U_PrevAndNext

public DLFileRank[] findByG_U_PrevAndNext(long fileRankId,
                                          long groupId,
                                          long userId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchFileRankException,
                                          SystemException
Specified by:
findByG_U_PrevAndNext in interface DLFileRankPersistence
Throws:
NoSuchFileRankException
SystemException

getByG_U_PrevAndNext

protected DLFileRank getByG_U_PrevAndNext(Session session,
                                          DLFileRank dlFileRank,
                                          long groupId,
                                          long userId,
                                          OrderByComparator orderByComparator,
                                          boolean previous)

findByF_N

public List<DLFileRank> findByF_N(long folderId,
                                  String name)
                           throws SystemException
Specified by:
findByF_N in interface DLFileRankPersistence
Throws:
SystemException

findByF_N

public List<DLFileRank> findByF_N(long folderId,
                                  String name,
                                  int start,
                                  int end)
                           throws SystemException
Specified by:
findByF_N in interface DLFileRankPersistence
Throws:
SystemException

findByF_N

public List<DLFileRank> findByF_N(long folderId,
                                  String name,
                                  int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Specified by:
findByF_N in interface DLFileRankPersistence
Throws:
SystemException

findByF_N_First

public DLFileRank findByF_N_First(long folderId,
                                  String name,
                                  OrderByComparator orderByComparator)
                           throws NoSuchFileRankException,
                                  SystemException
Specified by:
findByF_N_First in interface DLFileRankPersistence
Throws:
NoSuchFileRankException
SystemException

findByF_N_Last

public DLFileRank findByF_N_Last(long folderId,
                                 String name,
                                 OrderByComparator orderByComparator)
                          throws NoSuchFileRankException,
                                 SystemException
Specified by:
findByF_N_Last in interface DLFileRankPersistence
Throws:
NoSuchFileRankException
SystemException

findByF_N_PrevAndNext

public DLFileRank[] findByF_N_PrevAndNext(long fileRankId,
                                          long folderId,
                                          String name,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchFileRankException,
                                          SystemException
Specified by:
findByF_N_PrevAndNext in interface DLFileRankPersistence
Throws:
NoSuchFileRankException
SystemException

getByF_N_PrevAndNext

protected DLFileRank getByF_N_PrevAndNext(Session session,
                                          DLFileRank dlFileRank,
                                          long folderId,
                                          String name,
                                          OrderByComparator orderByComparator,
                                          boolean previous)

findByC_U_F_N

public DLFileRank findByC_U_F_N(long companyId,
                                long userId,
                                long folderId,
                                String name)
                         throws NoSuchFileRankException,
                                SystemException
Specified by:
findByC_U_F_N in interface DLFileRankPersistence
Throws:
NoSuchFileRankException
SystemException

fetchByC_U_F_N

public DLFileRank fetchByC_U_F_N(long companyId,
                                 long userId,
                                 long folderId,
                                 String name)
                          throws SystemException
Specified by:
fetchByC_U_F_N in interface DLFileRankPersistence
Throws:
SystemException

fetchByC_U_F_N

public DLFileRank fetchByC_U_F_N(long companyId,
                                 long userId,
                                 long folderId,
                                 String name,
                                 boolean retrieveFromCache)
                          throws SystemException
Specified by:
fetchByC_U_F_N in interface DLFileRankPersistence
Throws:
SystemException

findAll

public List<DLFileRank> findAll()
                         throws SystemException
Specified by:
findAll in interface DLFileRankPersistence
Throws:
SystemException

findAll

public List<DLFileRank> findAll(int start,
                                int end)
                         throws SystemException
Specified by:
findAll in interface DLFileRankPersistence
Throws:
SystemException

findAll

public List<DLFileRank> findAll(int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws SystemException
Specified by:
findAll in interface DLFileRankPersistence
Throws:
SystemException

removeByUserId

public void removeByUserId(long userId)
                    throws SystemException
Specified by:
removeByUserId in interface DLFileRankPersistence
Throws:
SystemException

removeByG_U

public void removeByG_U(long groupId,
                        long userId)
                 throws SystemException
Specified by:
removeByG_U in interface DLFileRankPersistence
Throws:
SystemException

removeByF_N

public void removeByF_N(long folderId,
                        String name)
                 throws SystemException
Specified by:
removeByF_N in interface DLFileRankPersistence
Throws:
SystemException

removeByC_U_F_N

public void removeByC_U_F_N(long companyId,
                            long userId,
                            long folderId,
                            String name)
                     throws NoSuchFileRankException,
                            SystemException
Specified by:
removeByC_U_F_N in interface DLFileRankPersistence
Throws:
NoSuchFileRankException
SystemException

removeAll

public void removeAll()
               throws SystemException
Specified by:
removeAll in interface DLFileRankPersistence
Throws:
SystemException

countByUserId

public int countByUserId(long userId)
                  throws SystemException
Specified by:
countByUserId in interface DLFileRankPersistence
Throws:
SystemException

countByG_U

public int countByG_U(long groupId,
                      long userId)
               throws SystemException
Specified by:
countByG_U in interface DLFileRankPersistence
Throws:
SystemException

countByF_N

public int countByF_N(long folderId,
                      String name)
               throws SystemException
Specified by:
countByF_N in interface DLFileRankPersistence
Throws:
SystemException

countByC_U_F_N

public int countByC_U_F_N(long companyId,
                          long userId,
                          long folderId,
                          String name)
                   throws SystemException
Specified by:
countByC_U_F_N in interface DLFileRankPersistence
Throws:
SystemException

countAll

public int countAll()
             throws SystemException
Specified by:
countAll in interface DLFileRankPersistence
Throws:
SystemException

afterPropertiesSet

public void afterPropertiesSet()

Liferay 6.0.3