Liferay 6.2-ce-ga5

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

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

public class DLFileEntryFinderImpl
extends BasePersistenceImpl<DLFileEntry>
implements DLFileEntryFinder


Field Summary
static String COUNT_BY_EXTRA_SETTINGS
           
static String COUNT_BY_G_F
           
static String COUNT_BY_G_M_R
           
static String COUNT_BY_G_U_F
           
static String FIND_BY_ANY_IMAGE_ID
           
static String FIND_BY_COMPANY_ID
           
static String FIND_BY_DDM_STRUCTURE_IDS
           
static String FIND_BY_EXTRA_SETTINGS
           
static String FIND_BY_G_DDM_STRUCTURE_IDS
           
static String FIND_BY_G_F
           
static String FIND_BY_G_U_F
           
static String FIND_BY_MISVERSIONED
           
static String FIND_BY_NO_ASSETS
           
static String FIND_BY_ORPHANED_FILE_ENTRIES
           
 
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
DLFileEntryFinderImpl()
           
 
Method Summary
 int countByExtraSettings()
           
 int countByG_F(long groupId, List<Long> folderIds, QueryDefinition queryDefinition)
           
 int countByG_M_R(long groupId, DateRange dateRange, long repositoryId, QueryDefinition queryDefinition)
          Deprecated. As of 7.0.0, with no direct replacement
 int countByG_U_F_M(long groupId, long userId, List<Long> folderIds, String[] mimeTypes, QueryDefinition queryDefinition)
           
 int countByG_U_R_F_M(long groupId, long userId, List<Long> repositoryIds, List<Long> folderIds, String[] mimeTypes, QueryDefinition queryDefinition)
           
protected  int doCountByG_U_F_M(long groupId, long userId, List<Long> folderIds, String[] mimeTypes, QueryDefinition queryDefinition, boolean inlineSQLHelper)
           
protected  int doCountByG_U_R_F_M(long groupId, long userId, List<Long> repositoryIds, List<Long> folderIds, String[] mimeTypes, QueryDefinition queryDefinition, boolean inlineSQLHelper)
           
protected  List<DLFileEntry> doFindByG_U_F_M(long groupId, long userId, List<Long> folderIds, String[] mimeTypes, QueryDefinition queryDefinition, boolean inlineSQLHelper)
           
protected  List<DLFileEntry> doFindByG_U_R_F_M(long groupId, long userId, List<Long> repositoryIds, List<Long> folderIds, String[] mimeTypes, QueryDefinition queryDefinition, boolean inlineSQLHelper)
           
 DLFileEntry fetchByAnyImageId(long imageId)
           
 int filterCountByG_F(long groupId, List<Long> folderIds, QueryDefinition queryDefinition)
           
 int filterCountByG_U_F_M(long groupId, long userId, List<Long> folderIds, String[] mimeTypes, QueryDefinition queryDefinition)
           
 int filterCountByG_U_R_F_M(long groupId, long userId, List<Long> repositoryIds, List<Long> folderIds, String[] mimeTypes, QueryDefinition queryDefinition)
           
 List<DLFileEntry> filterFindByG_F(long groupId, List<Long> folderIds, QueryDefinition queryDefinition)
           
 List<DLFileEntry> filterFindByG_U_F_M(long groupId, long userId, List<Long> folderIds, String[] mimeTypes, QueryDefinition queryDefinition)
           
 List<DLFileEntry> filterFindByG_U_R_F_M(long groupId, long userId, List<Long> repositoryIds, List<Long> folderIds, String[] mimeTypes, QueryDefinition queryDefinition)
           
 DLFileEntry findByAnyImageId(long imageId)
           
 List<DLFileEntry> findByCompanyId(long companyId, QueryDefinition queryDefinition)
           
 List<DLFileEntry> findByDDMStructureIds(long[] ddmStructureIds, int start, int end)
           
 List<DLFileEntry> findByDDMStructureIds(long groupId, long[] ddmStructureIds, int start, int end)
           
 List<DLFileEntry> findByExtraSettings(int start, int end)
           
 List<DLFileEntry> findByG_F(long groupId, List<Long> folderIds, QueryDefinition queryDefinition)
           
 List<DLFileEntry> findByG_R_F(long groupId, List<Long> repositoryIds, List<Long> folderIds, QueryDefinition queryDefinition)
           
 List<DLFileEntry> findByG_U_F_M(long groupId, long userId, List<Long> folderIds, String[] mimeTypes, QueryDefinition queryDefinition)
           
 List<DLFileEntry> findByG_U_F(long groupId, long userId, List<Long> folderIds, QueryDefinition queryDefinition)
           
 List<DLFileEntry> findByG_U_R_F_M(long groupId, long userId, List<Long> repositoryIds, List<Long> folderIds, String[] mimeTypes, QueryDefinition queryDefinition)
           
 List<DLFileEntry> findByG_U_R_F(long groupId, long userId, List<Long> repositoryIds, List<Long> folderIds, QueryDefinition queryDefinition)
           
 List<DLFileEntry> findByMisversioned()
           
 List<DLFileEntry> findByNoAssets()
           
 List<DLFileEntry> findByOrphanedFileEntries()
           
protected  String getDDMStructureIds(long[] ddmStructureIds)
           
protected  String getFileEntriesSQL(String id, long groupId, List<Long> repositoryIds, List<Long> folderIds, String[] mimeTypes, QueryDefinition queryDefinition, boolean inlineSQLHelper)
           
protected  String getFileEntriesSQL(String id, long groupId, List<Long> folderIds, String[] mimeTypes, QueryDefinition queryDefinition, boolean inlineSQLHelper)
           
protected  String getFolderIds(List<Long> folderIds, String tableName)
           
protected  String getMimeTypes(String[] mimeTypes, String tableName)
           
protected  String getRepositoryIds(List<Long> repositoryIds, String tableName)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, remove, removeConjunction, removeImpl, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COUNT_BY_EXTRA_SETTINGS

public static final String COUNT_BY_EXTRA_SETTINGS

COUNT_BY_G_F

public static final String COUNT_BY_G_F

COUNT_BY_G_M_R

public static final String COUNT_BY_G_M_R

COUNT_BY_G_U_F

public static final String COUNT_BY_G_U_F

FIND_BY_ANY_IMAGE_ID

public static final String FIND_BY_ANY_IMAGE_ID

FIND_BY_COMPANY_ID

public static final String FIND_BY_COMPANY_ID

FIND_BY_EXTRA_SETTINGS

public static final String FIND_BY_EXTRA_SETTINGS

FIND_BY_G_DDM_STRUCTURE_IDS

public static final String FIND_BY_G_DDM_STRUCTURE_IDS

FIND_BY_DDM_STRUCTURE_IDS

public static final String FIND_BY_DDM_STRUCTURE_IDS

FIND_BY_MISVERSIONED

public static final String FIND_BY_MISVERSIONED

FIND_BY_NO_ASSETS

public static final String FIND_BY_NO_ASSETS

FIND_BY_ORPHANED_FILE_ENTRIES

public static final String FIND_BY_ORPHANED_FILE_ENTRIES

FIND_BY_G_F

public static final String FIND_BY_G_F

FIND_BY_G_U_F

public static final String FIND_BY_G_U_F
Constructor Detail

DLFileEntryFinderImpl

public DLFileEntryFinderImpl()
Method Detail

countByExtraSettings

public int countByExtraSettings()
                         throws SystemException
Specified by:
countByExtraSettings in interface DLFileEntryFinder
Throws:
SystemException

countByG_F

public int countByG_F(long groupId,
                      List<Long> folderIds,
                      QueryDefinition queryDefinition)
               throws SystemException
Specified by:
countByG_F in interface DLFileEntryFinder
Throws:
SystemException

countByG_M_R

@Deprecated
public int countByG_M_R(long groupId,
                                   DateRange dateRange,
                                   long repositoryId,
                                   QueryDefinition queryDefinition)
                 throws SystemException
Deprecated. As of 7.0.0, with no direct replacement

Specified by:
countByG_M_R in interface DLFileEntryFinder
Throws:
SystemException

countByG_U_F_M

public int countByG_U_F_M(long groupId,
                          long userId,
                          List<Long> folderIds,
                          String[] mimeTypes,
                          QueryDefinition queryDefinition)
                   throws SystemException
Specified by:
countByG_U_F_M in interface DLFileEntryFinder
Throws:
SystemException

countByG_U_R_F_M

public int countByG_U_R_F_M(long groupId,
                            long userId,
                            List<Long> repositoryIds,
                            List<Long> folderIds,
                            String[] mimeTypes,
                            QueryDefinition queryDefinition)
                     throws SystemException
Specified by:
countByG_U_R_F_M in interface DLFileEntryFinder
Throws:
SystemException

filterCountByG_U_F_M

public int filterCountByG_U_F_M(long groupId,
                                long userId,
                                List<Long> folderIds,
                                String[] mimeTypes,
                                QueryDefinition queryDefinition)
                         throws SystemException
Specified by:
filterCountByG_U_F_M in interface DLFileEntryFinder
Throws:
SystemException

fetchByAnyImageId

public DLFileEntry fetchByAnyImageId(long imageId)
                              throws SystemException
Specified by:
fetchByAnyImageId in interface DLFileEntryFinder
Throws:
SystemException

filterCountByG_F

public int filterCountByG_F(long groupId,
                            List<Long> folderIds,
                            QueryDefinition queryDefinition)
                     throws SystemException
Specified by:
filterCountByG_F in interface DLFileEntryFinder
Throws:
SystemException

filterCountByG_U_R_F_M

public int filterCountByG_U_R_F_M(long groupId,
                                  long userId,
                                  List<Long> repositoryIds,
                                  List<Long> folderIds,
                                  String[] mimeTypes,
                                  QueryDefinition queryDefinition)
                           throws SystemException
Specified by:
filterCountByG_U_R_F_M in interface DLFileEntryFinder
Throws:
SystemException

filterFindByG_F

public List<DLFileEntry> filterFindByG_F(long groupId,
                                         List<Long> folderIds,
                                         QueryDefinition queryDefinition)
                                  throws SystemException
Specified by:
filterFindByG_F in interface DLFileEntryFinder
Throws:
SystemException

filterFindByG_U_F_M

public List<DLFileEntry> filterFindByG_U_F_M(long groupId,
                                             long userId,
                                             List<Long> folderIds,
                                             String[] mimeTypes,
                                             QueryDefinition queryDefinition)
                                      throws SystemException
Specified by:
filterFindByG_U_F_M in interface DLFileEntryFinder
Throws:
SystemException

filterFindByG_U_R_F_M

public List<DLFileEntry> filterFindByG_U_R_F_M(long groupId,
                                               long userId,
                                               List<Long> repositoryIds,
                                               List<Long> folderIds,
                                               String[] mimeTypes,
                                               QueryDefinition queryDefinition)
                                        throws SystemException
Specified by:
filterFindByG_U_R_F_M in interface DLFileEntryFinder
Throws:
SystemException

findByAnyImageId

public DLFileEntry findByAnyImageId(long imageId)
                             throws NoSuchFileEntryException,
                                    SystemException
Specified by:
findByAnyImageId in interface DLFileEntryFinder
Throws:
NoSuchFileEntryException
SystemException

findByCompanyId

public List<DLFileEntry> findByCompanyId(long companyId,
                                         QueryDefinition queryDefinition)
                                  throws SystemException
Specified by:
findByCompanyId in interface DLFileEntryFinder
Throws:
SystemException

findByDDMStructureIds

public List<DLFileEntry> findByDDMStructureIds(long[] ddmStructureIds,
                                               int start,
                                               int end)
                                        throws SystemException
Specified by:
findByDDMStructureIds in interface DLFileEntryFinder
Throws:
SystemException

findByDDMStructureIds

public List<DLFileEntry> findByDDMStructureIds(long groupId,
                                               long[] ddmStructureIds,
                                               int start,
                                               int end)
                                        throws SystemException
Specified by:
findByDDMStructureIds in interface DLFileEntryFinder
Throws:
SystemException

findByExtraSettings

public List<DLFileEntry> findByExtraSettings(int start,
                                             int end)
                                      throws SystemException
Specified by:
findByExtraSettings in interface DLFileEntryFinder
Throws:
SystemException

findByMisversioned

public List<DLFileEntry> findByMisversioned()
                                     throws SystemException
Specified by:
findByMisversioned in interface DLFileEntryFinder
Throws:
SystemException

findByNoAssets

public List<DLFileEntry> findByNoAssets()
                                 throws SystemException
Specified by:
findByNoAssets in interface DLFileEntryFinder
Throws:
SystemException

findByOrphanedFileEntries

public List<DLFileEntry> findByOrphanedFileEntries()
                                            throws SystemException
Specified by:
findByOrphanedFileEntries in interface DLFileEntryFinder
Throws:
SystemException

findByG_F

public List<DLFileEntry> findByG_F(long groupId,
                                   List<Long> folderIds,
                                   QueryDefinition queryDefinition)
                            throws SystemException
Specified by:
findByG_F in interface DLFileEntryFinder
Throws:
SystemException

findByG_R_F

public List<DLFileEntry> findByG_R_F(long groupId,
                                     List<Long> repositoryIds,
                                     List<Long> folderIds,
                                     QueryDefinition queryDefinition)
                              throws SystemException
Specified by:
findByG_R_F in interface DLFileEntryFinder
Throws:
SystemException

findByG_U_F

public List<DLFileEntry> findByG_U_F(long groupId,
                                     long userId,
                                     List<Long> folderIds,
                                     QueryDefinition queryDefinition)
                              throws SystemException
Specified by:
findByG_U_F in interface DLFileEntryFinder
Throws:
SystemException

findByG_U_R_F

public List<DLFileEntry> findByG_U_R_F(long groupId,
                                       long userId,
                                       List<Long> repositoryIds,
                                       List<Long> folderIds,
                                       QueryDefinition queryDefinition)
                                throws SystemException
Specified by:
findByG_U_R_F in interface DLFileEntryFinder
Throws:
SystemException

findByG_U_R_F_M

public List<DLFileEntry> findByG_U_R_F_M(long groupId,
                                         long userId,
                                         List<Long> repositoryIds,
                                         List<Long> folderIds,
                                         String[] mimeTypes,
                                         QueryDefinition queryDefinition)
                                  throws SystemException
Specified by:
findByG_U_R_F_M in interface DLFileEntryFinder
Throws:
SystemException

findByG_U_F_M

public List<DLFileEntry> findByG_U_F_M(long groupId,
                                       long userId,
                                       List<Long> folderIds,
                                       String[] mimeTypes,
                                       QueryDefinition queryDefinition)
                                throws SystemException
Specified by:
findByG_U_F_M in interface DLFileEntryFinder
Throws:
SystemException

doCountByG_U_F_M

protected int doCountByG_U_F_M(long groupId,
                               long userId,
                               List<Long> folderIds,
                               String[] mimeTypes,
                               QueryDefinition queryDefinition,
                               boolean inlineSQLHelper)
                        throws SystemException
Throws:
SystemException

doCountByG_U_R_F_M

protected int doCountByG_U_R_F_M(long groupId,
                                 long userId,
                                 List<Long> repositoryIds,
                                 List<Long> folderIds,
                                 String[] mimeTypes,
                                 QueryDefinition queryDefinition,
                                 boolean inlineSQLHelper)
                          throws SystemException
Throws:
SystemException

doFindByG_U_F_M

protected List<DLFileEntry> doFindByG_U_F_M(long groupId,
                                            long userId,
                                            List<Long> folderIds,
                                            String[] mimeTypes,
                                            QueryDefinition queryDefinition,
                                            boolean inlineSQLHelper)
                                     throws SystemException
Throws:
SystemException

doFindByG_U_R_F_M

protected List<DLFileEntry> doFindByG_U_R_F_M(long groupId,
                                              long userId,
                                              List<Long> repositoryIds,
                                              List<Long> folderIds,
                                              String[] mimeTypes,
                                              QueryDefinition queryDefinition,
                                              boolean inlineSQLHelper)
                                       throws SystemException
Throws:
SystemException

getDDMStructureIds

protected String getDDMStructureIds(long[] ddmStructureIds)

getFileEntriesSQL

protected String getFileEntriesSQL(String id,
                                   long groupId,
                                   List<Long> folderIds,
                                   String[] mimeTypes,
                                   QueryDefinition queryDefinition,
                                   boolean inlineSQLHelper)

getFileEntriesSQL

protected String getFileEntriesSQL(String id,
                                   long groupId,
                                   List<Long> repositoryIds,
                                   List<Long> folderIds,
                                   String[] mimeTypes,
                                   QueryDefinition queryDefinition,
                                   boolean inlineSQLHelper)

getFolderIds

protected String getFolderIds(List<Long> folderIds,
                              String tableName)

getMimeTypes

protected String getMimeTypes(String[] mimeTypes,
                              String tableName)

getRepositoryIds

protected String getRepositoryIds(List<Long> repositoryIds,
                                  String tableName)

Liferay 6.2-ce-ga5