com.liferay.portlet.documentlibrary.service.persistence
Interface DLFileVersionPersistence
- All Superinterfaces:
- BasePersistence
@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface DLFileVersionPersistence
- extends BasePersistence
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
int |
countAll()
|
int |
countByF_N_V(long folderId,
java.lang.String name,
double version)
|
int |
countByF_N(long folderId,
java.lang.String name)
|
DLFileVersion |
create(long fileVersionId)
|
DLFileVersion |
fetchByF_N_V(long folderId,
java.lang.String name,
double version)
|
DLFileVersion |
fetchByPrimaryKey(long fileVersionId)
|
java.util.List<DLFileVersion> |
findAll()
|
java.util.List<DLFileVersion> |
findAll(int start,
int end)
|
java.util.List<DLFileVersion> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
DLFileVersion |
findByF_N_First(long folderId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
DLFileVersion |
findByF_N_Last(long folderId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
DLFileVersion[] |
findByF_N_PrevAndNext(long fileVersionId,
long folderId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
DLFileVersion |
findByF_N_V(long folderId,
java.lang.String name,
double version)
|
java.util.List<DLFileVersion> |
findByF_N(long folderId,
java.lang.String name)
|
java.util.List<DLFileVersion> |
findByF_N(long folderId,
java.lang.String name,
int start,
int end)
|
java.util.List<DLFileVersion> |
findByF_N(long folderId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
DLFileVersion |
findByPrimaryKey(long fileVersionId)
|
java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
DLFileVersion |
remove(DLFileVersion dlFileVersion)
|
DLFileVersion |
remove(long fileVersionId)
|
void |
removeAll()
|
void |
removeByF_N_V(long folderId,
java.lang.String name,
double version)
|
void |
removeByF_N(long folderId,
java.lang.String name)
|
DLFileVersion |
update(DLFileVersion dlFileVersion)
Deprecated. Use update(DLFileVersion dlFileVersion, boolean merge) . |
DLFileVersion |
update(DLFileVersion dlFileVersion,
boolean merge)
Add, update, or merge, the entity. |
DLFileVersion |
updateImpl(DLFileVersion dlFileVersion,
boolean merge)
|
create
DLFileVersion create(long fileVersionId)
remove
DLFileVersion remove(long fileVersionId)
throws com.liferay.portal.SystemException,
NoSuchFileVersionException
- Throws:
com.liferay.portal.SystemException
NoSuchFileVersionException
remove
DLFileVersion remove(DLFileVersion dlFileVersion)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
DLFileVersion update(DLFileVersion dlFileVersion)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(DLFileVersion dlFileVersion, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
DLFileVersion update(DLFileVersion dlFileVersion,
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:
dlFileVersion
- 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 dlFileVersion 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
DLFileVersion updateImpl(DLFileVersion dlFileVersion,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
@Transactional(propagation=SUPPORTS,
readOnly=true)
DLFileVersion findByPrimaryKey(long fileVersionId)
throws com.liferay.portal.SystemException,
NoSuchFileVersionException
- Throws:
com.liferay.portal.SystemException
NoSuchFileVersionException
fetchByPrimaryKey
DLFileVersion fetchByPrimaryKey(long fileVersionId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByF_N
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<DLFileVersion> findByF_N(long folderId,
java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByF_N
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<DLFileVersion> findByF_N(long folderId,
java.lang.String name,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByF_N
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<DLFileVersion> 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
@Transactional(propagation=SUPPORTS,
readOnly=true)
DLFileVersion findByF_N_First(long folderId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileVersionException
- Throws:
com.liferay.portal.SystemException
NoSuchFileVersionException
findByF_N_Last
@Transactional(propagation=SUPPORTS,
readOnly=true)
DLFileVersion findByF_N_Last(long folderId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileVersionException
- Throws:
com.liferay.portal.SystemException
NoSuchFileVersionException
findByF_N_PrevAndNext
@Transactional(propagation=SUPPORTS,
readOnly=true)
DLFileVersion[] findByF_N_PrevAndNext(long fileVersionId,
long folderId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchFileVersionException
- Throws:
com.liferay.portal.SystemException
NoSuchFileVersionException
findByF_N_V
@Transactional(propagation=SUPPORTS,
readOnly=true)
DLFileVersion findByF_N_V(long folderId,
java.lang.String name,
double version)
throws com.liferay.portal.SystemException,
NoSuchFileVersionException
- Throws:
com.liferay.portal.SystemException
NoSuchFileVersionException
fetchByF_N_V
DLFileVersion fetchByF_N_V(long folderId,
java.lang.String name,
double version)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<DLFileVersion> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<DLFileVersion> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<DLFileVersion> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByF_N
void removeByF_N(long folderId,
java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByF_N_V
void removeByF_N_V(long folderId,
java.lang.String name,
double version)
throws com.liferay.portal.SystemException,
NoSuchFileVersionException
- Throws:
com.liferay.portal.SystemException
NoSuchFileVersionException
removeAll
void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByF_N
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByF_N(long folderId,
java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByF_N_V
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByF_N_V(long folderId,
java.lang.String name,
double version)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException