com.liferay.portlet.documentlibrary.service.persistence
Class DLFileShortcutUtil
java.lang.Object
com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutUtil
public class DLFileShortcutUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByFolderId(long folderId)
|
static int |
countByTF_TN(long toFolderId,
java.lang.String toName)
|
static int |
countByUuid(java.lang.String uuid)
|
static DLFileShortcut |
create(long fileShortcutId)
|
static DLFileShortcut |
fetchByPrimaryKey(long fileShortcutId)
|
static java.util.List<DLFileShortcut> |
findAll()
|
static java.util.List<DLFileShortcut> |
findAll(int start,
int end)
|
static java.util.List<DLFileShortcut> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileShortcut |
findByFolderId_First(long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileShortcut |
findByFolderId_Last(long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileShortcut[] |
findByFolderId_PrevAndNext(long fileShortcutId,
long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<DLFileShortcut> |
findByFolderId(long folderId)
|
static java.util.List<DLFileShortcut> |
findByFolderId(long folderId,
int start,
int end)
|
static java.util.List<DLFileShortcut> |
findByFolderId(long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileShortcut |
findByPrimaryKey(long fileShortcutId)
|
static DLFileShortcut |
findByTF_TN_First(long toFolderId,
java.lang.String toName,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileShortcut |
findByTF_TN_Last(long toFolderId,
java.lang.String toName,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileShortcut[] |
findByTF_TN_PrevAndNext(long fileShortcutId,
long toFolderId,
java.lang.String toName,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<DLFileShortcut> |
findByTF_TN(long toFolderId,
java.lang.String toName)
|
static java.util.List<DLFileShortcut> |
findByTF_TN(long toFolderId,
java.lang.String toName,
int start,
int end)
|
static java.util.List<DLFileShortcut> |
findByTF_TN(long toFolderId,
java.lang.String toName,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileShortcut |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileShortcut |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileShortcut[] |
findByUuid_PrevAndNext(long fileShortcutId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<DLFileShortcut> |
findByUuid(java.lang.String uuid)
|
static java.util.List<DLFileShortcut> |
findByUuid(java.lang.String uuid,
int start,
int end)
|
static java.util.List<DLFileShortcut> |
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 DLFileShortcutPersistence |
getPersistence()
|
static DLFileShortcut |
remove(DLFileShortcut dlFileShortcut)
|
static DLFileShortcut |
remove(long fileShortcutId)
|
static void |
removeAll()
|
static void |
removeByFolderId(long folderId)
|
static void |
removeByTF_TN(long toFolderId,
java.lang.String toName)
|
static void |
removeByUuid(java.lang.String uuid)
|
void |
setPersistence(DLFileShortcutPersistence persistence)
|
static DLFileShortcut |
update(DLFileShortcut dlFileShortcut)
Deprecated. Use update(DLFileShortcut dlFileShortcut, boolean merge) . |
static DLFileShortcut |
update(DLFileShortcut dlFileShortcut,
boolean merge)
Add, update, or merge, the entity. |
static DLFileShortcut |
updateImpl(DLFileShortcut dlFileShortcut,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DLFileShortcutUtil
public DLFileShortcutUtil()
create
public static DLFileShortcut create(long fileShortcutId)
remove
public static DLFileShortcut remove(long fileShortcutId)
throws com.liferay.portal.SystemException,
NoSuchFileShortcutException
- Throws:
com.liferay.portal.SystemException
NoSuchFileShortcutException
remove
public static DLFileShortcut remove(DLFileShortcut dlFileShortcut)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static DLFileShortcut update(DLFileShortcut dlFileShortcut)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(DLFileShortcut dlFileShortcut, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static DLFileShortcut update(DLFileShortcut dlFileShortcut,
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:
dlFileShortcut
- 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 dlFileShortcut 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 DLFileShortcut updateImpl(DLFileShortcut dlFileShortcut,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static DLFileShortcut findByPrimaryKey(long fileShortcutId)
throws com.liferay.portal.SystemException,
NoSuchFileShortcutException
- Throws:
com.liferay.portal.SystemException
NoSuchFileShortcutException
fetchByPrimaryKey
public static DLFileShortcut fetchByPrimaryKey(long fileShortcutId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<DLFileShortcut> findByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<DLFileShortcut> 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<DLFileShortcut> 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 DLFileShortcut findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileShortcutException
- Throws:
com.liferay.portal.SystemException
NoSuchFileShortcutException
findByUuid_Last
public static DLFileShortcut findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileShortcutException
- Throws:
com.liferay.portal.SystemException
NoSuchFileShortcutException
findByUuid_PrevAndNext
public static DLFileShortcut[] findByUuid_PrevAndNext(long fileShortcutId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileShortcutException
- Throws:
com.liferay.portal.SystemException
NoSuchFileShortcutException
findByFolderId
public static java.util.List<DLFileShortcut> findByFolderId(long folderId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByFolderId
public static java.util.List<DLFileShortcut> findByFolderId(long folderId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByFolderId
public static java.util.List<DLFileShortcut> 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 DLFileShortcut findByFolderId_First(long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileShortcutException
- Throws:
com.liferay.portal.SystemException
NoSuchFileShortcutException
findByFolderId_Last
public static DLFileShortcut findByFolderId_Last(long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileShortcutException
- Throws:
com.liferay.portal.SystemException
NoSuchFileShortcutException
findByFolderId_PrevAndNext
public static DLFileShortcut[] findByFolderId_PrevAndNext(long fileShortcutId,
long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileShortcutException
- Throws:
com.liferay.portal.SystemException
NoSuchFileShortcutException
findByTF_TN
public static java.util.List<DLFileShortcut> findByTF_TN(long toFolderId,
java.lang.String toName)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByTF_TN
public static java.util.List<DLFileShortcut> findByTF_TN(long toFolderId,
java.lang.String toName,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByTF_TN
public static java.util.List<DLFileShortcut> findByTF_TN(long toFolderId,
java.lang.String toName,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByTF_TN_First
public static DLFileShortcut findByTF_TN_First(long toFolderId,
java.lang.String toName,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileShortcutException
- Throws:
com.liferay.portal.SystemException
NoSuchFileShortcutException
findByTF_TN_Last
public static DLFileShortcut findByTF_TN_Last(long toFolderId,
java.lang.String toName,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileShortcutException
- Throws:
com.liferay.portal.SystemException
NoSuchFileShortcutException
findByTF_TN_PrevAndNext
public static DLFileShortcut[] findByTF_TN_PrevAndNext(long fileShortcutId,
long toFolderId,
java.lang.String toName,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileShortcutException
- Throws:
com.liferay.portal.SystemException
NoSuchFileShortcutException
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<DLFileShortcut> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<DLFileShortcut> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<DLFileShortcut> 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
removeByFolderId
public static void removeByFolderId(long folderId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByTF_TN
public static void removeByTF_TN(long toFolderId,
java.lang.String toName)
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
countByFolderId
public static int countByFolderId(long folderId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByTF_TN
public static int countByTF_TN(long toFolderId,
java.lang.String toName)
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
getPersistence
public static DLFileShortcutPersistence getPersistence()
setPersistence
public void setPersistence(DLFileShortcutPersistence persistence)