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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLFolder>
      extended by com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinderImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLFolder>, com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder

public class DLFolderFinderImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLFolder>
implements com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder

Author:
Brian Wing Shun Chan, Shuyang Zhou

Field Summary
static java.lang.String COUNT_F_BY_G_M_F
           
static java.lang.String COUNT_FE_BY_G_F
           
static java.lang.String COUNT_FE_BY_G_F_S
           
static java.lang.String COUNT_FS_BY_G_F_S
           
static java.lang.String FIND_F_BY_G_M_F
           
static java.lang.String FIND_FE_BY_G_F
           
static java.lang.String FIND_FE_BY_G_F_S
           
static java.lang.String FIND_FS_BY_G_F_S
           
static java.lang.String JOIN_FS_BY_DL_FILE_ENTRY
           
static java.lang.String JOIN_FV_BY_DL_FILE_ENTRY
           
 
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
DLFolderFinderImpl()
           
 
Method Summary
 int countF_FE_FS_ByG_F_S_M_M(long groupId, long folderId, int status, java.lang.String[] mimeTypes, boolean includeMountFolders)
           
 int countFE_ByG_F_S(long groupId, long folderId, int status)
           
protected  int doCountF_FE_FS_ByG_F_S_M_M(long groupId, long folderId, int status, java.lang.String[] mimeTypes, boolean includeMountFolders, boolean inlineSQLHelper)
           
protected  int doCountFE_ByG_F_S(long groupId, long folderId, int status, boolean inlineSQLHelper)
           
protected  int doCountFE_FS_ByG_F_S_M(long groupId, long folderId, int status, java.lang.String[] mimeTypes, boolean inlineSQLHelper)
           
protected  java.util.List<java.lang.Object> doFindF_FE_FS_ByG_F_S_M_M(long groupId, long folderId, int status, java.lang.String[] mimeTypes, boolean includeMountFolders, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc, boolean inlineSQLHelper)
           
protected  java.util.List<java.lang.Object> doFindFE_FS_ByG_F_S(long groupId, long folderId, int status, int start, int end, boolean inlineSQLHelper)
           
 int filterCountF_FE_FS_ByG_F_S_M_M(long groupId, long folderId, int status, java.lang.String[] mimeTypes, boolean includeMountFolders)
           
 int filterCountFE_ByG_F_S(long groupId, long folderId, int status)
           
 int filterCountFE_FS_ByG_F_S_M(long groupId, long folderId, int status, java.lang.String[] mimeTypes)
           
 java.util.List<java.lang.Object> filterFindF_FE_FS_ByG_F_S_M_M(long groupId, long folderId, int status, java.lang.String[] mimeTypes, boolean includeMountFolders, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<java.lang.Object> filterFindFE_FS_ByG_F_S(long groupId, long folderId, int status, int start, int end)
           
 java.util.List<java.lang.Object> findF_FE_FS_ByG_F_S_M_M(long groupId, long folderId, int status, java.lang.String[] mimeTypes, boolean includeMountFolders, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<java.lang.Object> findFE_FS_ByG_F_S(long groupId, long folderId, int status, int start, int end)
           
protected  java.lang.String getFileEntriesSQL(long groupId, int status, java.lang.String[] mimeTypes, boolean inlineSQLHelper)
           
protected  java.lang.String getFileShortcutsSQL(long groupId, int status, java.lang.String[] mimeTypes, boolean inlineSQLHelper)
           
protected  java.lang.String getFolderId(long folderId, java.lang.String table)
           
protected  java.lang.String getMimeTypes(java.lang.String[] mimeTypes, java.lang.String table)
           
protected  java.lang.String updateSQL(java.lang.String sql, long folderId, int status, boolean includeMountFolders)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, remove, removeImpl, setDataSource, setSessionFactory, unregisterListener, update, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COUNT_F_BY_G_M_F

public static java.lang.String COUNT_F_BY_G_M_F

COUNT_FE_BY_G_F

public static java.lang.String COUNT_FE_BY_G_F

COUNT_FE_BY_G_F_S

public static java.lang.String COUNT_FE_BY_G_F_S

COUNT_FS_BY_G_F_S

public static java.lang.String COUNT_FS_BY_G_F_S

FIND_F_BY_G_M_F

public static java.lang.String FIND_F_BY_G_M_F

FIND_FE_BY_G_F

public static java.lang.String FIND_FE_BY_G_F

FIND_FE_BY_G_F_S

public static java.lang.String FIND_FE_BY_G_F_S

FIND_FS_BY_G_F_S

public static java.lang.String FIND_FS_BY_G_F_S

JOIN_FS_BY_DL_FILE_ENTRY

public static java.lang.String JOIN_FS_BY_DL_FILE_ENTRY

JOIN_FV_BY_DL_FILE_ENTRY

public static java.lang.String JOIN_FV_BY_DL_FILE_ENTRY
Constructor Detail

DLFolderFinderImpl

public DLFolderFinderImpl()
Method Detail

countF_FE_FS_ByG_F_S_M_M

public int countF_FE_FS_ByG_F_S_M_M(long groupId,
                                    long folderId,
                                    int status,
                                    java.lang.String[] mimeTypes,
                                    boolean includeMountFolders)
                             throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countF_FE_FS_ByG_F_S_M_M in interface com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

countFE_ByG_F_S

public int countFE_ByG_F_S(long groupId,
                           long folderId,
                           int status)
                    throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countFE_ByG_F_S in interface com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

filterCountF_FE_FS_ByG_F_S_M_M

public int filterCountF_FE_FS_ByG_F_S_M_M(long groupId,
                                          long folderId,
                                          int status,
                                          java.lang.String[] mimeTypes,
                                          boolean includeMountFolders)
                                   throws com.liferay.portal.kernel.exception.SystemException
Specified by:
filterCountF_FE_FS_ByG_F_S_M_M in interface com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

filterCountFE_ByG_F_S

public int filterCountFE_ByG_F_S(long groupId,
                                 long folderId,
                                 int status)
                          throws com.liferay.portal.kernel.exception.SystemException
Specified by:
filterCountFE_ByG_F_S in interface com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

filterCountFE_FS_ByG_F_S_M

public int filterCountFE_FS_ByG_F_S_M(long groupId,
                                      long folderId,
                                      int status,
                                      java.lang.String[] mimeTypes)
                               throws com.liferay.portal.kernel.exception.SystemException
Specified by:
filterCountFE_FS_ByG_F_S_M in interface com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

filterFindF_FE_FS_ByG_F_S_M_M

public java.util.List<java.lang.Object> filterFindF_FE_FS_ByG_F_S_M_M(long groupId,
                                                                      long folderId,
                                                                      int status,
                                                                      java.lang.String[] mimeTypes,
                                                                      boolean includeMountFolders,
                                                                      int start,
                                                                      int end,
                                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                                               throws com.liferay.portal.kernel.exception.SystemException
Specified by:
filterFindF_FE_FS_ByG_F_S_M_M in interface com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

filterFindFE_FS_ByG_F_S

public java.util.List<java.lang.Object> filterFindFE_FS_ByG_F_S(long groupId,
                                                                long folderId,
                                                                int status,
                                                                int start,
                                                                int end)
                                                         throws com.liferay.portal.kernel.exception.SystemException
Specified by:
filterFindFE_FS_ByG_F_S in interface com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findF_FE_FS_ByG_F_S_M_M

public java.util.List<java.lang.Object> findF_FE_FS_ByG_F_S_M_M(long groupId,
                                                                long folderId,
                                                                int status,
                                                                java.lang.String[] mimeTypes,
                                                                boolean includeMountFolders,
                                                                int start,
                                                                int end,
                                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                                         throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findF_FE_FS_ByG_F_S_M_M in interface com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findFE_FS_ByG_F_S

public java.util.List<java.lang.Object> findFE_FS_ByG_F_S(long groupId,
                                                          long folderId,
                                                          int status,
                                                          int start,
                                                          int end)
                                                   throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findFE_FS_ByG_F_S in interface com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

doCountF_FE_FS_ByG_F_S_M_M

protected int doCountF_FE_FS_ByG_F_S_M_M(long groupId,
                                         long folderId,
                                         int status,
                                         java.lang.String[] mimeTypes,
                                         boolean includeMountFolders,
                                         boolean inlineSQLHelper)
                                  throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

doCountFE_ByG_F_S

protected int doCountFE_ByG_F_S(long groupId,
                                long folderId,
                                int status,
                                boolean inlineSQLHelper)
                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

doCountFE_FS_ByG_F_S_M

protected int doCountFE_FS_ByG_F_S_M(long groupId,
                                     long folderId,
                                     int status,
                                     java.lang.String[] mimeTypes,
                                     boolean inlineSQLHelper)
                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

doFindF_FE_FS_ByG_F_S_M_M

protected java.util.List<java.lang.Object> doFindF_FE_FS_ByG_F_S_M_M(long groupId,
                                                                     long folderId,
                                                                     int status,
                                                                     java.lang.String[] mimeTypes,
                                                                     boolean includeMountFolders,
                                                                     int start,
                                                                     int end,
                                                                     com.liferay.portal.kernel.util.OrderByComparator obc,
                                                                     boolean inlineSQLHelper)
                                                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

doFindFE_FS_ByG_F_S

protected java.util.List<java.lang.Object> doFindFE_FS_ByG_F_S(long groupId,
                                                               long folderId,
                                                               int status,
                                                               int start,
                                                               int end,
                                                               boolean inlineSQLHelper)
                                                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getFileEntriesSQL

protected java.lang.String getFileEntriesSQL(long groupId,
                                             int status,
                                             java.lang.String[] mimeTypes,
                                             boolean inlineSQLHelper)

getFileShortcutsSQL

protected java.lang.String getFileShortcutsSQL(long groupId,
                                               int status,
                                               java.lang.String[] mimeTypes,
                                               boolean inlineSQLHelper)

getFolderId

protected java.lang.String getFolderId(long folderId,
                                       java.lang.String table)

getMimeTypes

protected java.lang.String getMimeTypes(java.lang.String[] mimeTypes,
                                        java.lang.String table)

updateSQL

protected java.lang.String updateSQL(java.lang.String sql,
                                     long folderId,
                                     int status,
                                     boolean includeMountFolders)