com.liferay.portlet.documentlibrary.service.persistence
Class DLFileEntryUtil
java.lang.Object
com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryUtil
public class DLFileEntryUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByCompanyId(long companyId)
|
static int |
countByF_N(long folderId,
java.lang.String name)
|
static int |
countByF_T(long folderId,
java.lang.String title)
|
static int |
countByFolderId(long folderId)
|
static int |
countByUuid(java.lang.String uuid)
|
static DLFileEntry |
create(long fileEntryId)
|
static DLFileEntry |
fetchByF_N(long folderId,
java.lang.String name)
|
static DLFileEntry |
fetchByPrimaryKey(long fileEntryId)
|
static java.util.List<DLFileEntry> |
findAll()
|
static java.util.List<DLFileEntry> |
findAll(int start,
int end)
|
static java.util.List<DLFileEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileEntry |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileEntry |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileEntry[] |
findByCompanyId_PrevAndNext(long fileEntryId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<DLFileEntry> |
findByCompanyId(long companyId)
|
static java.util.List<DLFileEntry> |
findByCompanyId(long companyId,
int start,
int end)
|
static java.util.List<DLFileEntry> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileEntry |
findByF_N(long folderId,
java.lang.String name)
|
static DLFileEntry |
findByF_T_First(long folderId,
java.lang.String title,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileEntry |
findByF_T_Last(long folderId,
java.lang.String title,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileEntry[] |
findByF_T_PrevAndNext(long fileEntryId,
long folderId,
java.lang.String title,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<DLFileEntry> |
findByF_T(long folderId,
java.lang.String title)
|
static java.util.List<DLFileEntry> |
findByF_T(long folderId,
java.lang.String title,
int start,
int end)
|
static java.util.List<DLFileEntry> |
findByF_T(long folderId,
java.lang.String title,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileEntry |
findByFolderId_First(long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileEntry |
findByFolderId_Last(long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileEntry[] |
findByFolderId_PrevAndNext(long fileEntryId,
long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<DLFileEntry> |
findByFolderId(long folderId)
|
static java.util.List<DLFileEntry> |
findByFolderId(long folderId,
int start,
int end)
|
static java.util.List<DLFileEntry> |
findByFolderId(long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileEntry |
findByPrimaryKey(long fileEntryId)
|
static DLFileEntry |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileEntry |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileEntry[] |
findByUuid_PrevAndNext(long fileEntryId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<DLFileEntry> |
findByUuid(java.lang.String uuid)
|
static java.util.List<DLFileEntry> |
findByUuid(java.lang.String uuid,
int start,
int end)
|
static java.util.List<DLFileEntry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static DLFileEntryPersistence |
getPersistence()
|
static void |
registerListener(ModelListener listener)
|
static DLFileEntry |
remove(DLFileEntry dlFileEntry)
|
static DLFileEntry |
remove(long fileEntryId)
|
static void |
removeAll()
|
static void |
removeByCompanyId(long companyId)
|
static void |
removeByF_N(long folderId,
java.lang.String name)
|
static void |
removeByF_T(long folderId,
java.lang.String title)
|
static void |
removeByFolderId(long folderId)
|
static void |
removeByUuid(java.lang.String uuid)
|
void |
setPersistence(DLFileEntryPersistence persistence)
|
static void |
unregisterListener(ModelListener listener)
|
static DLFileEntry |
update(DLFileEntry dlFileEntry)
Deprecated. Use update(DLFileEntry dlFileEntry, boolean merge) . |
static DLFileEntry |
update(DLFileEntry dlFileEntry,
boolean merge)
Add, update, or merge, the entity. |
static DLFileEntry |
updateImpl(DLFileEntry dlFileEntry,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DLFileEntryUtil
public DLFileEntryUtil()
create
public static DLFileEntry create(long fileEntryId)
remove
public static DLFileEntry remove(long fileEntryId)
throws com.liferay.portal.SystemException,
NoSuchFileEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException
remove
public static DLFileEntry remove(DLFileEntry dlFileEntry)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static DLFileEntry update(DLFileEntry dlFileEntry)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(DLFileEntry dlFileEntry, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static DLFileEntry update(DLFileEntry dlFileEntry,
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:
dlFileEntry
- the entity to add, update, or mergemerge
- 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 dlFileEntry 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
public static DLFileEntry updateImpl(DLFileEntry dlFileEntry,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static DLFileEntry findByPrimaryKey(long fileEntryId)
throws com.liferay.portal.SystemException,
NoSuchFileEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException
fetchByPrimaryKey
public static DLFileEntry fetchByPrimaryKey(long fileEntryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<DLFileEntry> findByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<DLFileEntry> findByUuid(java.lang.String uuid,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<DLFileEntry> findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid_First
public static DLFileEntry findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException
findByUuid_Last
public static DLFileEntry findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException
findByUuid_PrevAndNext
public static DLFileEntry[] findByUuid_PrevAndNext(long fileEntryId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException
findByCompanyId
public static java.util.List<DLFileEntry> findByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
public static java.util.List<DLFileEntry> findByCompanyId(long companyId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
public static java.util.List<DLFileEntry> findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId_First
public static DLFileEntry findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException
findByCompanyId_Last
public static DLFileEntry findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException
findByCompanyId_PrevAndNext
public static DLFileEntry[] findByCompanyId_PrevAndNext(long fileEntryId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException
findByFolderId
public static java.util.List<DLFileEntry> findByFolderId(long folderId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByFolderId
public static java.util.List<DLFileEntry> findByFolderId(long folderId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByFolderId
public static java.util.List<DLFileEntry> findByFolderId(long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByFolderId_First
public static DLFileEntry findByFolderId_First(long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException
findByFolderId_Last
public static DLFileEntry findByFolderId_Last(long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException
findByFolderId_PrevAndNext
public static DLFileEntry[] findByFolderId_PrevAndNext(long fileEntryId,
long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException
findByF_N
public static DLFileEntry findByF_N(long folderId,
java.lang.String name)
throws com.liferay.portal.SystemException,
NoSuchFileEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException
fetchByF_N
public static DLFileEntry fetchByF_N(long folderId,
java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByF_T
public static java.util.List<DLFileEntry> findByF_T(long folderId,
java.lang.String title)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByF_T
public static java.util.List<DLFileEntry> findByF_T(long folderId,
java.lang.String title,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByF_T
public static java.util.List<DLFileEntry> findByF_T(long folderId,
java.lang.String title,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByF_T_First
public static DLFileEntry findByF_T_First(long folderId,
java.lang.String title,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException
findByF_T_Last
public static DLFileEntry findByF_T_Last(long folderId,
java.lang.String title,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException
findByF_T_PrevAndNext
public static DLFileEntry[] findByF_T_PrevAndNext(long fileEntryId,
long folderId,
java.lang.String title,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException
findWithDynamicQuery
public static 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
public static 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
public static java.util.List<DLFileEntry> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<DLFileEntry> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<DLFileEntry> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByUuid
public static void removeByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByCompanyId
public static void removeByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByFolderId
public static void removeByFolderId(long folderId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByF_N
public static void removeByF_N(long folderId,
java.lang.String name)
throws com.liferay.portal.SystemException,
NoSuchFileEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException
removeByF_T
public static void removeByF_T(long folderId,
java.lang.String title)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByUuid
public static int countByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByCompanyId
public static int countByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByFolderId
public static int countByFolderId(long folderId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByF_N
public static int countByF_N(long folderId,
java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByF_T
public static int countByF_T(long folderId,
java.lang.String title)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
public static int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
registerListener
public static void registerListener(ModelListener listener)
unregisterListener
public static void unregisterListener(ModelListener listener)
getPersistence
public static DLFileEntryPersistence getPersistence()
setPersistence
public void setPersistence(DLFileEntryPersistence persistence)