com.liferay.portlet.imagegallery.service.persistence
Interface IGFolderPersistence

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface IGFolderPersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByCompanyId(long companyId)
           
 int countByG_P_N(long groupId, long parentFolderId, java.lang.String name)
           
 int countByG_P(long groupId, long parentFolderId)
           
 int countByGroupId(long groupId)
           
 int countByUUID_G(java.lang.String uuid, long groupId)
           
 int countByUuid(java.lang.String uuid)
           
 IGFolder create(long folderId)
           
 IGFolder fetchByG_P_N(long groupId, long parentFolderId, java.lang.String name)
           
 IGFolder fetchByPrimaryKey(long folderId)
           
 IGFolder fetchByUUID_G(java.lang.String uuid, long groupId)
           
 java.util.List<IGFolder> findAll()
           
 java.util.List<IGFolder> findAll(int start, int end)
           
 java.util.List<IGFolder> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 IGFolder findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 IGFolder findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 IGFolder[] findByCompanyId_PrevAndNext(long folderId, long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<IGFolder> findByCompanyId(long companyId)
           
 java.util.List<IGFolder> findByCompanyId(long companyId, int start, int end)
           
 java.util.List<IGFolder> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 IGFolder findByG_P_First(long groupId, long parentFolderId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 IGFolder findByG_P_Last(long groupId, long parentFolderId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 IGFolder findByG_P_N(long groupId, long parentFolderId, java.lang.String name)
           
 IGFolder[] findByG_P_PrevAndNext(long folderId, long groupId, long parentFolderId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<IGFolder> findByG_P(long groupId, long parentFolderId)
           
 java.util.List<IGFolder> findByG_P(long groupId, long parentFolderId, int start, int end)
           
 java.util.List<IGFolder> findByG_P(long groupId, long parentFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 IGFolder findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 IGFolder findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 IGFolder[] findByGroupId_PrevAndNext(long folderId, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<IGFolder> findByGroupId(long groupId)
           
 java.util.List<IGFolder> findByGroupId(long groupId, int start, int end)
           
 java.util.List<IGFolder> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 IGFolder findByPrimaryKey(long folderId)
           
 IGFolder findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 IGFolder findByUUID_G(java.lang.String uuid, long groupId)
           
 IGFolder findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 IGFolder[] findByUuid_PrevAndNext(long folderId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<IGFolder> findByUuid(java.lang.String uuid)
           
 java.util.List<IGFolder> findByUuid(java.lang.String uuid, int start, int end)
           
 java.util.List<IGFolder> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 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)
           
 IGFolder remove(IGFolder igFolder)
           
 IGFolder remove(long folderId)
           
 void removeAll()
           
 void removeByCompanyId(long companyId)
           
 void removeByG_P_N(long groupId, long parentFolderId, java.lang.String name)
           
 void removeByG_P(long groupId, long parentFolderId)
           
 void removeByGroupId(long groupId)
           
 void removeByUUID_G(java.lang.String uuid, long groupId)
           
 void removeByUuid(java.lang.String uuid)
           
 IGFolder update(IGFolder igFolder)
          Deprecated. Use update(IGFolder igFolder, boolean merge).
 IGFolder update(IGFolder igFolder, boolean merge)
          Add, update, or merge, the entity.
 IGFolder updateImpl(IGFolder igFolder, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

IGFolder create(long folderId)

remove

IGFolder remove(long folderId)
                throws com.liferay.portal.SystemException,
                       NoSuchFolderException
Throws:
com.liferay.portal.SystemException
NoSuchFolderException

remove

IGFolder remove(IGFolder igFolder)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

IGFolder update(IGFolder igFolder)
                throws com.liferay.portal.SystemException
Deprecated. Use update(IGFolder igFolder, boolean merge).

Throws:
com.liferay.portal.SystemException

update

IGFolder update(IGFolder igFolder,
                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:
igFolder - the entity to add, update, or merge
merge - 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 igFolder 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

IGFolder updateImpl(IGFolder igFolder,
                    boolean merge)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGFolder findByPrimaryKey(long folderId)
                          throws com.liferay.portal.SystemException,
                                 NoSuchFolderException
Throws:
com.liferay.portal.SystemException
NoSuchFolderException

fetchByPrimaryKey

IGFolder fetchByPrimaryKey(long folderId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGFolder> findByUuid(java.lang.String uuid)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGFolder> findByUuid(java.lang.String uuid,
                                                  int start,
                                                  int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGFolder> 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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGFolder findByUuid_First(java.lang.String uuid,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                          throws com.liferay.portal.SystemException,
                                 NoSuchFolderException
Throws:
com.liferay.portal.SystemException
NoSuchFolderException

findByUuid_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGFolder findByUuid_Last(java.lang.String uuid,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                         throws com.liferay.portal.SystemException,
                                NoSuchFolderException
Throws:
com.liferay.portal.SystemException
NoSuchFolderException

findByUuid_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGFolder[] findByUuid_PrevAndNext(long folderId,
                                                java.lang.String uuid,
                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchFolderException
Throws:
com.liferay.portal.SystemException
NoSuchFolderException

findByUUID_G

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGFolder findByUUID_G(java.lang.String uuid,
                                    long groupId)
                      throws com.liferay.portal.SystemException,
                             NoSuchFolderException
Throws:
com.liferay.portal.SystemException
NoSuchFolderException

fetchByUUID_G

IGFolder fetchByUUID_G(java.lang.String uuid,
                       long groupId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGFolder> findByGroupId(long groupId)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGFolder> findByGroupId(long groupId,
                                                     int start,
                                                     int end)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGFolder> findByGroupId(long groupId,
                                                     int start,
                                                     int end,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGFolder findByGroupId_First(long groupId,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws com.liferay.portal.SystemException,
                                    NoSuchFolderException
Throws:
com.liferay.portal.SystemException
NoSuchFolderException

findByGroupId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGFolder findByGroupId_Last(long groupId,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                            throws com.liferay.portal.SystemException,
                                   NoSuchFolderException
Throws:
com.liferay.portal.SystemException
NoSuchFolderException

findByGroupId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGFolder[] findByGroupId_PrevAndNext(long folderId,
                                                   long groupId,
                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchFolderException
Throws:
com.liferay.portal.SystemException
NoSuchFolderException

findByCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGFolder> findByCompanyId(long companyId)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGFolder> findByCompanyId(long companyId,
                                                       int start,
                                                       int end)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGFolder> 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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGFolder findByCompanyId_First(long companyId,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException,
                                      NoSuchFolderException
Throws:
com.liferay.portal.SystemException
NoSuchFolderException

findByCompanyId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGFolder findByCompanyId_Last(long companyId,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException,
                                     NoSuchFolderException
Throws:
com.liferay.portal.SystemException
NoSuchFolderException

findByCompanyId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGFolder[] findByCompanyId_PrevAndNext(long folderId,
                                                     long companyId,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchFolderException
Throws:
com.liferay.portal.SystemException
NoSuchFolderException

findByG_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGFolder> findByG_P(long groupId,
                                                 long parentFolderId)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGFolder> findByG_P(long groupId,
                                                 long parentFolderId,
                                                 int start,
                                                 int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGFolder> findByG_P(long groupId,
                                                 long parentFolderId,
                                                 int start,
                                                 int end,
                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGFolder findByG_P_First(long groupId,
                                       long parentFolderId,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                         throws com.liferay.portal.SystemException,
                                NoSuchFolderException
Throws:
com.liferay.portal.SystemException
NoSuchFolderException

findByG_P_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGFolder findByG_P_Last(long groupId,
                                      long parentFolderId,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                        throws com.liferay.portal.SystemException,
                               NoSuchFolderException
Throws:
com.liferay.portal.SystemException
NoSuchFolderException

findByG_P_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGFolder[] findByG_P_PrevAndNext(long folderId,
                                               long groupId,
                                               long parentFolderId,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException,
                                        NoSuchFolderException
Throws:
com.liferay.portal.SystemException
NoSuchFolderException

findByG_P_N

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGFolder findByG_P_N(long groupId,
                                   long parentFolderId,
                                   java.lang.String name)
                     throws com.liferay.portal.SystemException,
                            NoSuchFolderException
Throws:
com.liferay.portal.SystemException
NoSuchFolderException

fetchByG_P_N

IGFolder fetchByG_P_N(long groupId,
                      long parentFolderId,
                      java.lang.String name)
                      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<IGFolder> findAll()
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGFolder> findAll(int start,
                                               int end)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<IGFolder> findAll(int start,
                                               int end,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByUuid

void removeByUuid(java.lang.String uuid)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByUUID_G

void removeByUUID_G(java.lang.String uuid,
                    long groupId)
                    throws com.liferay.portal.SystemException,
                           NoSuchFolderException
Throws:
com.liferay.portal.SystemException
NoSuchFolderException

removeByGroupId

void removeByGroupId(long groupId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByCompanyId

void removeByCompanyId(long companyId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByG_P

void removeByG_P(long groupId,
                 long parentFolderId)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByG_P_N

void removeByG_P_N(long groupId,
                   long parentFolderId,
                   java.lang.String name)
                   throws com.liferay.portal.SystemException,
                          NoSuchFolderException
Throws:
com.liferay.portal.SystemException
NoSuchFolderException

removeAll

void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUuid

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByUuid(java.lang.String uuid)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUUID_G

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByUUID_G(java.lang.String uuid,
                                long groupId)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByGroupId(long groupId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByCompanyId(long companyId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByG_P(long groupId,
                             long parentFolderId)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_P_N

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByG_P_N(long groupId,
                               long parentFolderId,
                               java.lang.String name)
                 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