com.liferay.portlet.documentlibrary.service.persistence
Class DLFileRankUtil
java.lang.Object
com.liferay.portlet.documentlibrary.service.persistence.DLFileRankUtil
public class DLFileRankUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByC_U_F_N(long companyId,
long userId,
long folderId,
java.lang.String name)
|
static int |
countByF_N(long folderId,
java.lang.String name)
|
static int |
countByUserId(long userId)
|
static DLFileRank |
create(long fileRankId)
|
static DLFileRank |
fetchByC_U_F_N(long companyId,
long userId,
long folderId,
java.lang.String name)
|
static DLFileRank |
fetchByPrimaryKey(long fileRankId)
|
static java.util.List<DLFileRank> |
findAll()
|
static java.util.List<DLFileRank> |
findAll(int start,
int end)
|
static java.util.List<DLFileRank> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileRank |
findByC_U_F_N(long companyId,
long userId,
long folderId,
java.lang.String name)
|
static DLFileRank |
findByF_N_First(long folderId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileRank |
findByF_N_Last(long folderId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileRank[] |
findByF_N_PrevAndNext(long fileRankId,
long folderId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<DLFileRank> |
findByF_N(long folderId,
java.lang.String name)
|
static java.util.List<DLFileRank> |
findByF_N(long folderId,
java.lang.String name,
int start,
int end)
|
static java.util.List<DLFileRank> |
findByF_N(long folderId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileRank |
findByPrimaryKey(long fileRankId)
|
static DLFileRank |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileRank |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static DLFileRank[] |
findByUserId_PrevAndNext(long fileRankId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<DLFileRank> |
findByUserId(long userId)
|
static java.util.List<DLFileRank> |
findByUserId(long userId,
int start,
int end)
|
static java.util.List<DLFileRank> |
findByUserId(long userId,
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 DLFileRankPersistence |
getPersistence()
|
static void |
registerListener(ModelListener listener)
|
static DLFileRank |
remove(DLFileRank dlFileRank)
|
static DLFileRank |
remove(long fileRankId)
|
static void |
removeAll()
|
static void |
removeByC_U_F_N(long companyId,
long userId,
long folderId,
java.lang.String name)
|
static void |
removeByF_N(long folderId,
java.lang.String name)
|
static void |
removeByUserId(long userId)
|
void |
setPersistence(DLFileRankPersistence persistence)
|
static void |
unregisterListener(ModelListener listener)
|
static DLFileRank |
update(DLFileRank dlFileRank)
Deprecated. Use update(DLFileRank dlFileRank, boolean merge) . |
static DLFileRank |
update(DLFileRank dlFileRank,
boolean merge)
Add, update, or merge, the entity. |
static DLFileRank |
updateImpl(DLFileRank dlFileRank,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DLFileRankUtil
public DLFileRankUtil()
create
public static DLFileRank create(long fileRankId)
remove
public static DLFileRank remove(long fileRankId)
throws com.liferay.portal.SystemException,
NoSuchFileRankException
- Throws:
com.liferay.portal.SystemException
NoSuchFileRankException
remove
public static DLFileRank remove(DLFileRank dlFileRank)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static DLFileRank update(DLFileRank dlFileRank)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(DLFileRank dlFileRank, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static DLFileRank update(DLFileRank dlFileRank,
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:
dlFileRank
- 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 dlFileRank 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 DLFileRank updateImpl(DLFileRank dlFileRank,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static DLFileRank findByPrimaryKey(long fileRankId)
throws com.liferay.portal.SystemException,
NoSuchFileRankException
- Throws:
com.liferay.portal.SystemException
NoSuchFileRankException
fetchByPrimaryKey
public static DLFileRank fetchByPrimaryKey(long fileRankId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
public static java.util.List<DLFileRank> findByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
public static java.util.List<DLFileRank> findByUserId(long userId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
public static java.util.List<DLFileRank> findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId_First
public static DLFileRank findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileRankException
- Throws:
com.liferay.portal.SystemException
NoSuchFileRankException
findByUserId_Last
public static DLFileRank findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileRankException
- Throws:
com.liferay.portal.SystemException
NoSuchFileRankException
findByUserId_PrevAndNext
public static DLFileRank[] findByUserId_PrevAndNext(long fileRankId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileRankException
- Throws:
com.liferay.portal.SystemException
NoSuchFileRankException
findByF_N
public static java.util.List<DLFileRank> findByF_N(long folderId,
java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByF_N
public static java.util.List<DLFileRank> findByF_N(long folderId,
java.lang.String name,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByF_N
public static java.util.List<DLFileRank> findByF_N(long folderId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByF_N_First
public static DLFileRank findByF_N_First(long folderId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileRankException
- Throws:
com.liferay.portal.SystemException
NoSuchFileRankException
findByF_N_Last
public static DLFileRank findByF_N_Last(long folderId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileRankException
- Throws:
com.liferay.portal.SystemException
NoSuchFileRankException
findByF_N_PrevAndNext
public static DLFileRank[] findByF_N_PrevAndNext(long fileRankId,
long folderId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileRankException
- Throws:
com.liferay.portal.SystemException
NoSuchFileRankException
findByC_U_F_N
public static DLFileRank findByC_U_F_N(long companyId,
long userId,
long folderId,
java.lang.String name)
throws com.liferay.portal.SystemException,
NoSuchFileRankException
- Throws:
com.liferay.portal.SystemException
NoSuchFileRankException
fetchByC_U_F_N
public static DLFileRank fetchByC_U_F_N(long companyId,
long userId,
long folderId,
java.lang.String name)
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)
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<DLFileRank> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<DLFileRank> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<DLFileRank> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByUserId
public static void removeByUserId(long userId)
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
- Throws:
com.liferay.portal.SystemException
removeByC_U_F_N
public static void removeByC_U_F_N(long companyId,
long userId,
long folderId,
java.lang.String name)
throws com.liferay.portal.SystemException,
NoSuchFileRankException
- Throws:
com.liferay.portal.SystemException
NoSuchFileRankException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByUserId
public static int countByUserId(long userId)
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
countByC_U_F_N
public static int countByC_U_F_N(long companyId,
long userId,
long folderId,
java.lang.String name)
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 DLFileRankPersistence getPersistence()
setPersistence
public void setPersistence(DLFileRankPersistence persistence)