com.liferay.portal.service.persistence
Class ImageUtil

java.lang.Object
  extended bycom.liferay.portal.service.persistence.ImageUtil

public class ImageUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
ImageUtil()
           
 
Method Summary
static int countAll()
           
static int countBySize(int size)
           
static com.liferay.portal.model.Image create(long imageId)
           
static com.liferay.portal.model.Image fetchByPrimaryKey(long imageId)
           
static java.util.List findAll()
           
static java.util.List findAll(int begin, int end)
           
static java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Image findByPrimaryKey(long imageId)
           
static com.liferay.portal.model.Image findBySize_First(int size, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Image findBySize_Last(int size, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Image[] findBySize_PrevAndNext(long imageId, int size, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findBySize(int size)
           
static java.util.List findBySize(int size, int begin, int end)
           
static java.util.List findBySize(int size, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static ImagePersistence getPersistence()
           
static com.liferay.portal.model.Image remove(com.liferay.portal.model.Image image)
           
static com.liferay.portal.model.Image remove(long imageId)
           
static void removeAll()
           
static void removeBySize(int size)
           
 void setPersistence(ImagePersistence persistence)
           
static com.liferay.portal.model.Image update(com.liferay.portal.model.Image image)
           
static com.liferay.portal.model.Image update(com.liferay.portal.model.Image image, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageUtil

public ImageUtil()
Method Detail

create

public static com.liferay.portal.model.Image create(long imageId)

remove

public static com.liferay.portal.model.Image remove(long imageId)
                                             throws com.liferay.portal.SystemException,
                                                    com.liferay.portal.NoSuchImageException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchImageException

remove

public static com.liferay.portal.model.Image remove(com.liferay.portal.model.Image image)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portal.model.Image update(com.liferay.portal.model.Image image)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portal.model.Image update(com.liferay.portal.model.Image image,
                                                    boolean merge)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static com.liferay.portal.model.Image findByPrimaryKey(long imageId)
                                                       throws com.liferay.portal.SystemException,
                                                              com.liferay.portal.NoSuchImageException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchImageException

fetchByPrimaryKey

public static com.liferay.portal.model.Image fetchByPrimaryKey(long imageId)
                                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findBySize

public static java.util.List findBySize(int size)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findBySize

public static java.util.List findBySize(int size,
                                        int begin,
                                        int end)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findBySize

public static java.util.List findBySize(int size,
                                        int begin,
                                        int end,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findBySize_First

public static com.liferay.portal.model.Image findBySize_First(int size,
                                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                                       throws com.liferay.portal.SystemException,
                                                              com.liferay.portal.NoSuchImageException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchImageException

findBySize_Last

public static com.liferay.portal.model.Image findBySize_Last(int size,
                                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                                      throws com.liferay.portal.SystemException,
                                                             com.liferay.portal.NoSuchImageException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchImageException

findBySize_PrevAndNext

public static com.liferay.portal.model.Image[] findBySize_PrevAndNext(long imageId,
                                                                      int size,
                                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                                               throws com.liferay.portal.SystemException,
                                                                      com.liferay.portal.NoSuchImageException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchImageException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                                  int begin,
                                                  int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll()
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll(int begin,
                                     int end)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll(int begin,
                                     int end,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeBySize

public static void removeBySize(int size)
                         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

countBySize

public static int countBySize(int size)
                       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 ImagePersistence getPersistence()

setPersistence

public void setPersistence(ImagePersistence persistence)