Liferay 6.1.2-ce-ga3

com.liferay.portlet.journal.service.persistence
Class JournalArticleImageUtil

java.lang.Object
  extended by com.liferay.portlet.journal.service.persistence.JournalArticleImageUtil

public class JournalArticleImageUtil
extends Object

The persistence utility for the journal article image service. This utility wraps JournalArticleImagePersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
JournalArticleImagePersistence, JournalArticleImagePersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
JournalArticleImageUtil()
           
 
Method Summary
static void cacheResult(JournalArticleImage journalArticleImage)
          Caches the journal article image in the entity cache if it is enabled.
static void cacheResult(List<JournalArticleImage> journalArticleImages)
          Caches the journal article images in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(JournalArticleImage journalArticleImage)
           
static int countAll()
          Returns the number of journal article images.
static int countByG_A_V_E_E_L(long groupId, String articleId, double version, String elInstanceId, String elName, String languageId)
          Returns the number of journal article images where groupId = ? and articleId = ? and version = ? and elInstanceId = ? and elName = ? and languageId = ?.
static int countByG_A_V(long groupId, String articleId, double version)
          Returns the number of journal article images where groupId = ? and articleId = ? and version = ?.
static int countByGroupId(long groupId)
          Returns the number of journal article images where groupId = ?.
static int countByTempImage(boolean tempImage)
          Returns the number of journal article images where tempImage = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static JournalArticleImage create(long articleImageId)
          Creates a new journal article image with the primary key.
static JournalArticleImage fetchByG_A_V_E_E_L(long groupId, String articleId, double version, String elInstanceId, String elName, String languageId)
          Returns the journal article image where groupId = ? and articleId = ? and version = ? and elInstanceId = ? and elName = ? and languageId = ? or returns null if it could not be found.
static JournalArticleImage fetchByG_A_V_E_E_L(long groupId, String articleId, double version, String elInstanceId, String elName, String languageId, boolean retrieveFromCache)
          Returns the journal article image where groupId = ? and articleId = ? and version = ? and elInstanceId = ? and elName = ? and languageId = ? or returns null if it could not be found, optionally using the finder cache.
static JournalArticleImage fetchByG_A_V_First(long groupId, String articleId, double version, OrderByComparator orderByComparator)
          Returns the first journal article image in the ordered set where groupId = ? and articleId = ? and version = ?.
static JournalArticleImage fetchByG_A_V_Last(long groupId, String articleId, double version, OrderByComparator orderByComparator)
          Returns the last journal article image in the ordered set where groupId = ? and articleId = ? and version = ?.
static JournalArticleImage fetchByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first journal article image in the ordered set where groupId = ?.
static JournalArticleImage fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last journal article image in the ordered set where groupId = ?.
static JournalArticleImage fetchByPrimaryKey(long articleImageId)
          Returns the journal article image with the primary key or returns null if it could not be found.
static JournalArticleImage fetchByTempImage_First(boolean tempImage, OrderByComparator orderByComparator)
          Returns the first journal article image in the ordered set where tempImage = ?.
static JournalArticleImage fetchByTempImage_Last(boolean tempImage, OrderByComparator orderByComparator)
          Returns the last journal article image in the ordered set where tempImage = ?.
static List<JournalArticleImage> findAll()
          Returns all the journal article images.
static List<JournalArticleImage> findAll(int start, int end)
          Returns a range of all the journal article images.
static List<JournalArticleImage> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the journal article images.
static JournalArticleImage findByG_A_V_E_E_L(long groupId, String articleId, double version, String elInstanceId, String elName, String languageId)
          Returns the journal article image where groupId = ? and articleId = ? and version = ? and elInstanceId = ? and elName = ? and languageId = ? or throws a NoSuchArticleImageException if it could not be found.
static JournalArticleImage findByG_A_V_First(long groupId, String articleId, double version, OrderByComparator orderByComparator)
          Returns the first journal article image in the ordered set where groupId = ? and articleId = ? and version = ?.
static JournalArticleImage findByG_A_V_Last(long groupId, String articleId, double version, OrderByComparator orderByComparator)
          Returns the last journal article image in the ordered set where groupId = ? and articleId = ? and version = ?.
static JournalArticleImage[] findByG_A_V_PrevAndNext(long articleImageId, long groupId, String articleId, double version, OrderByComparator orderByComparator)
          Returns the journal article images before and after the current journal article image in the ordered set where groupId = ? and articleId = ? and version = ?.
static List<JournalArticleImage> findByG_A_V(long groupId, String articleId, double version)
          Returns all the journal article images where groupId = ? and articleId = ? and version = ?.
static List<JournalArticleImage> findByG_A_V(long groupId, String articleId, double version, int start, int end)
          Returns a range of all the journal article images where groupId = ? and articleId = ? and version = ?.
static List<JournalArticleImage> findByG_A_V(long groupId, String articleId, double version, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the journal article images where groupId = ? and articleId = ? and version = ?.
static JournalArticleImage findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first journal article image in the ordered set where groupId = ?.
static JournalArticleImage findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last journal article image in the ordered set where groupId = ?.
static JournalArticleImage[] findByGroupId_PrevAndNext(long articleImageId, long groupId, OrderByComparator orderByComparator)
          Returns the journal article images before and after the current journal article image in the ordered set where groupId = ?.
static List<JournalArticleImage> findByGroupId(long groupId)
          Returns all the journal article images where groupId = ?.
static List<JournalArticleImage> findByGroupId(long groupId, int start, int end)
          Returns a range of all the journal article images where groupId = ?.
static List<JournalArticleImage> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the journal article images where groupId = ?.
static JournalArticleImage findByPrimaryKey(long articleImageId)
          Returns the journal article image with the primary key or throws a NoSuchArticleImageException if it could not be found.
static JournalArticleImage findByTempImage_First(boolean tempImage, OrderByComparator orderByComparator)
          Returns the first journal article image in the ordered set where tempImage = ?.
static JournalArticleImage findByTempImage_Last(boolean tempImage, OrderByComparator orderByComparator)
          Returns the last journal article image in the ordered set where tempImage = ?.
static JournalArticleImage[] findByTempImage_PrevAndNext(long articleImageId, boolean tempImage, OrderByComparator orderByComparator)
          Returns the journal article images before and after the current journal article image in the ordered set where tempImage = ?.
static List<JournalArticleImage> findByTempImage(boolean tempImage)
          Returns all the journal article images where tempImage = ?.
static List<JournalArticleImage> findByTempImage(boolean tempImage, int start, int end)
          Returns a range of all the journal article images where tempImage = ?.
static List<JournalArticleImage> findByTempImage(boolean tempImage, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the journal article images where tempImage = ?.
static List<JournalArticleImage> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<JournalArticleImage> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<JournalArticleImage> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static JournalArticleImagePersistence getPersistence()
           
static JournalArticleImage remove(long articleImageId)
          Removes the journal article image with the primary key from the database.
static void removeAll()
          Removes all the journal article images from the database.
static JournalArticleImage removeByG_A_V_E_E_L(long groupId, String articleId, double version, String elInstanceId, String elName, String languageId)
          Removes the journal article image where groupId = ? and articleId = ? and version = ? and elInstanceId = ? and elName = ? and languageId = ? from the database.
static void removeByG_A_V(long groupId, String articleId, double version)
          Removes all the journal article images where groupId = ? and articleId = ? and version = ? from the database.
static void removeByGroupId(long groupId)
          Removes all the journal article images where groupId = ? from the database.
static void removeByTempImage(boolean tempImage)
          Removes all the journal article images where tempImage = ? from the database.
 void setPersistence(JournalArticleImagePersistence persistence)
          Deprecated.  
static JournalArticleImage update(JournalArticleImage journalArticleImage, boolean merge)
           
static JournalArticleImage update(JournalArticleImage journalArticleImage, boolean merge, ServiceContext serviceContext)
           
static JournalArticleImage updateImpl(JournalArticleImage journalArticleImage, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JournalArticleImageUtil

public JournalArticleImageUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(JournalArticleImage journalArticleImage)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<JournalArticleImage> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                      throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<JournalArticleImage> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                             int start,
                                                             int end)
                                                      throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<JournalArticleImage> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                             int start,
                                                             int end,
                                                             OrderByComparator orderByComparator)
                                                      throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static JournalArticleImage update(JournalArticleImage journalArticleImage,
                                         boolean merge)
                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static JournalArticleImage update(JournalArticleImage journalArticleImage,
                                         boolean merge,
                                         ServiceContext serviceContext)
                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static void cacheResult(JournalArticleImage journalArticleImage)
Caches the journal article image in the entity cache if it is enabled.

Parameters:
journalArticleImage - the journal article image

cacheResult

public static void cacheResult(List<JournalArticleImage> journalArticleImages)
Caches the journal article images in the entity cache if it is enabled.

Parameters:
journalArticleImages - the journal article images

create

public static JournalArticleImage create(long articleImageId)
Creates a new journal article image with the primary key. Does not add the journal article image to the database.

Parameters:
articleImageId - the primary key for the new journal article image
Returns:
the new journal article image

remove

public static JournalArticleImage remove(long articleImageId)
                                  throws SystemException,
                                         NoSuchArticleImageException
Removes the journal article image with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
articleImageId - the primary key of the journal article image
Returns:
the journal article image that was removed
Throws:
NoSuchArticleImageException - if a journal article image with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static JournalArticleImage updateImpl(JournalArticleImage journalArticleImage,
                                             boolean merge)
                                      throws SystemException
Throws:
SystemException

findByPrimaryKey

public static JournalArticleImage findByPrimaryKey(long articleImageId)
                                            throws SystemException,
                                                   NoSuchArticleImageException
Returns the journal article image with the primary key or throws a NoSuchArticleImageException if it could not be found.

Parameters:
articleImageId - the primary key of the journal article image
Returns:
the journal article image
Throws:
NoSuchArticleImageException - if a journal article image with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static JournalArticleImage fetchByPrimaryKey(long articleImageId)
                                             throws SystemException
Returns the journal article image with the primary key or returns null if it could not be found.

Parameters:
articleImageId - the primary key of the journal article image
Returns:
the journal article image, or null if a journal article image with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<JournalArticleImage> findByGroupId(long groupId)
                                               throws SystemException
Returns all the journal article images where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching journal article images
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<JournalArticleImage> findByGroupId(long groupId,
                                                      int start,
                                                      int end)
                                               throws SystemException
Returns a range of all the journal article images where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
start - the lower bound of the range of journal article images
end - the upper bound of the range of journal article images (not inclusive)
Returns:
the range of matching journal article images
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<JournalArticleImage> findByGroupId(long groupId,
                                                      int start,
                                                      int end,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException
Returns an ordered range of all the journal article images where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
start - the lower bound of the range of journal article images
end - the upper bound of the range of journal article images (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching journal article images
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public static JournalArticleImage findByGroupId_First(long groupId,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException,
                                                      NoSuchArticleImageException
Returns the first journal article image in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal article image
Throws:
NoSuchArticleImageException - if a matching journal article image could not be found
SystemException - if a system exception occurred

fetchByGroupId_First

public static JournalArticleImage fetchByGroupId_First(long groupId,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException
Returns the first journal article image in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal article image, or null if a matching journal article image could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_Last

public static JournalArticleImage findByGroupId_Last(long groupId,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     NoSuchArticleImageException
Returns the last journal article image in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal article image
Throws:
NoSuchArticleImageException - if a matching journal article image could not be found
SystemException - if a system exception occurred

fetchByGroupId_Last

public static JournalArticleImage fetchByGroupId_Last(long groupId,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException
Returns the last journal article image in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal article image, or null if a matching journal article image could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public static JournalArticleImage[] findByGroupId_PrevAndNext(long articleImageId,
                                                              long groupId,
                                                              OrderByComparator orderByComparator)
                                                       throws SystemException,
                                                              NoSuchArticleImageException
Returns the journal article images before and after the current journal article image in the ordered set where groupId = ?.

Parameters:
articleImageId - the primary key of the current journal article image
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next journal article image
Throws:
NoSuchArticleImageException - if a journal article image with the primary key could not be found
SystemException - if a system exception occurred

findByTempImage

public static List<JournalArticleImage> findByTempImage(boolean tempImage)
                                                 throws SystemException
Returns all the journal article images where tempImage = ?.

Parameters:
tempImage - the temp image
Returns:
the matching journal article images
Throws:
SystemException - if a system exception occurred

findByTempImage

public static List<JournalArticleImage> findByTempImage(boolean tempImage,
                                                        int start,
                                                        int end)
                                                 throws SystemException
Returns a range of all the journal article images where tempImage = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
tempImage - the temp image
start - the lower bound of the range of journal article images
end - the upper bound of the range of journal article images (not inclusive)
Returns:
the range of matching journal article images
Throws:
SystemException - if a system exception occurred

findByTempImage

public static List<JournalArticleImage> findByTempImage(boolean tempImage,
                                                        int start,
                                                        int end,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException
Returns an ordered range of all the journal article images where tempImage = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
tempImage - the temp image
start - the lower bound of the range of journal article images
end - the upper bound of the range of journal article images (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching journal article images
Throws:
SystemException - if a system exception occurred

findByTempImage_First

public static JournalArticleImage findByTempImage_First(boolean tempImage,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException,
                                                        NoSuchArticleImageException
Returns the first journal article image in the ordered set where tempImage = ?.

Parameters:
tempImage - the temp image
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal article image
Throws:
NoSuchArticleImageException - if a matching journal article image could not be found
SystemException - if a system exception occurred

fetchByTempImage_First

public static JournalArticleImage fetchByTempImage_First(boolean tempImage,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException
Returns the first journal article image in the ordered set where tempImage = ?.

Parameters:
tempImage - the temp image
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal article image, or null if a matching journal article image could not be found
Throws:
SystemException - if a system exception occurred

findByTempImage_Last

public static JournalArticleImage findByTempImage_Last(boolean tempImage,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException,
                                                       NoSuchArticleImageException
Returns the last journal article image in the ordered set where tempImage = ?.

Parameters:
tempImage - the temp image
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal article image
Throws:
NoSuchArticleImageException - if a matching journal article image could not be found
SystemException - if a system exception occurred

fetchByTempImage_Last

public static JournalArticleImage fetchByTempImage_Last(boolean tempImage,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException
Returns the last journal article image in the ordered set where tempImage = ?.

Parameters:
tempImage - the temp image
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal article image, or null if a matching journal article image could not be found
Throws:
SystemException - if a system exception occurred

findByTempImage_PrevAndNext

public static JournalArticleImage[] findByTempImage_PrevAndNext(long articleImageId,
                                                                boolean tempImage,
                                                                OrderByComparator orderByComparator)
                                                         throws SystemException,
                                                                NoSuchArticleImageException
Returns the journal article images before and after the current journal article image in the ordered set where tempImage = ?.

Parameters:
articleImageId - the primary key of the current journal article image
tempImage - the temp image
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next journal article image
Throws:
NoSuchArticleImageException - if a journal article image with the primary key could not be found
SystemException - if a system exception occurred

findByG_A_V

public static List<JournalArticleImage> findByG_A_V(long groupId,
                                                    String articleId,
                                                    double version)
                                             throws SystemException
Returns all the journal article images where groupId = ? and articleId = ? and version = ?.

Parameters:
groupId - the group ID
articleId - the article ID
version - the version
Returns:
the matching journal article images
Throws:
SystemException - if a system exception occurred

findByG_A_V

public static List<JournalArticleImage> findByG_A_V(long groupId,
                                                    String articleId,
                                                    double version,
                                                    int start,
                                                    int end)
                                             throws SystemException
Returns a range of all the journal article images where groupId = ? and articleId = ? and version = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
articleId - the article ID
version - the version
start - the lower bound of the range of journal article images
end - the upper bound of the range of journal article images (not inclusive)
Returns:
the range of matching journal article images
Throws:
SystemException - if a system exception occurred

findByG_A_V

public static List<JournalArticleImage> findByG_A_V(long groupId,
                                                    String articleId,
                                                    double version,
                                                    int start,
                                                    int end,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns an ordered range of all the journal article images where groupId = ? and articleId = ? and version = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
articleId - the article ID
version - the version
start - the lower bound of the range of journal article images
end - the upper bound of the range of journal article images (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching journal article images
Throws:
SystemException - if a system exception occurred

findByG_A_V_First

public static JournalArticleImage findByG_A_V_First(long groupId,
                                                    String articleId,
                                                    double version,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchArticleImageException
Returns the first journal article image in the ordered set where groupId = ? and articleId = ? and version = ?.

Parameters:
groupId - the group ID
articleId - the article ID
version - the version
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal article image
Throws:
NoSuchArticleImageException - if a matching journal article image could not be found
SystemException - if a system exception occurred

fetchByG_A_V_First

public static JournalArticleImage fetchByG_A_V_First(long groupId,
                                                     String articleId,
                                                     double version,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Returns the first journal article image in the ordered set where groupId = ? and articleId = ? and version = ?.

Parameters:
groupId - the group ID
articleId - the article ID
version - the version
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal article image, or null if a matching journal article image could not be found
Throws:
SystemException - if a system exception occurred

findByG_A_V_Last

public static JournalArticleImage findByG_A_V_Last(long groupId,
                                                   String articleId,
                                                   double version,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchArticleImageException
Returns the last journal article image in the ordered set where groupId = ? and articleId = ? and version = ?.

Parameters:
groupId - the group ID
articleId - the article ID
version - the version
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal article image
Throws:
NoSuchArticleImageException - if a matching journal article image could not be found
SystemException - if a system exception occurred

fetchByG_A_V_Last

public static JournalArticleImage fetchByG_A_V_Last(long groupId,
                                                    String articleId,
                                                    double version,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns the last journal article image in the ordered set where groupId = ? and articleId = ? and version = ?.

Parameters:
groupId - the group ID
articleId - the article ID
version - the version
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal article image, or null if a matching journal article image could not be found
Throws:
SystemException - if a system exception occurred

findByG_A_V_PrevAndNext

public static JournalArticleImage[] findByG_A_V_PrevAndNext(long articleImageId,
                                                            long groupId,
                                                            String articleId,
                                                            double version,
                                                            OrderByComparator orderByComparator)
                                                     throws SystemException,
                                                            NoSuchArticleImageException
Returns the journal article images before and after the current journal article image in the ordered set where groupId = ? and articleId = ? and version = ?.

Parameters:
articleImageId - the primary key of the current journal article image
groupId - the group ID
articleId - the article ID
version - the version
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next journal article image
Throws:
NoSuchArticleImageException - if a journal article image with the primary key could not be found
SystemException - if a system exception occurred

findByG_A_V_E_E_L

public static JournalArticleImage findByG_A_V_E_E_L(long groupId,
                                                    String articleId,
                                                    double version,
                                                    String elInstanceId,
                                                    String elName,
                                                    String languageId)
                                             throws SystemException,
                                                    NoSuchArticleImageException
Returns the journal article image where groupId = ? and articleId = ? and version = ? and elInstanceId = ? and elName = ? and languageId = ? or throws a NoSuchArticleImageException if it could not be found.

Parameters:
groupId - the group ID
articleId - the article ID
version - the version
elInstanceId - the el instance ID
elName - the el name
languageId - the language ID
Returns:
the matching journal article image
Throws:
NoSuchArticleImageException - if a matching journal article image could not be found
SystemException - if a system exception occurred

fetchByG_A_V_E_E_L

public static JournalArticleImage fetchByG_A_V_E_E_L(long groupId,
                                                     String articleId,
                                                     double version,
                                                     String elInstanceId,
                                                     String elName,
                                                     String languageId)
                                              throws SystemException
Returns the journal article image where groupId = ? and articleId = ? and version = ? and elInstanceId = ? and elName = ? and languageId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group ID
articleId - the article ID
version - the version
elInstanceId - the el instance ID
elName - the el name
languageId - the language ID
Returns:
the matching journal article image, or null if a matching journal article image could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_A_V_E_E_L

public static JournalArticleImage fetchByG_A_V_E_E_L(long groupId,
                                                     String articleId,
                                                     double version,
                                                     String elInstanceId,
                                                     String elName,
                                                     String languageId,
                                                     boolean retrieveFromCache)
                                              throws SystemException
Returns the journal article image where groupId = ? and articleId = ? and version = ? and elInstanceId = ? and elName = ? and languageId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
groupId - the group ID
articleId - the article ID
version - the version
elInstanceId - the el instance ID
elName - the el name
languageId - the language ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching journal article image, or null if a matching journal article image could not be found
Throws:
SystemException - if a system exception occurred

findAll

public static List<JournalArticleImage> findAll()
                                         throws SystemException
Returns all the journal article images.

Returns:
the journal article images
Throws:
SystemException - if a system exception occurred

findAll

public static List<JournalArticleImage> findAll(int start,
                                                int end)
                                         throws SystemException
Returns a range of all the journal article images.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of journal article images
end - the upper bound of the range of journal article images (not inclusive)
Returns:
the range of journal article images
Throws:
SystemException - if a system exception occurred

findAll

public static List<JournalArticleImage> findAll(int start,
                                                int end,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Returns an ordered range of all the journal article images.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of journal article images
end - the upper bound of the range of journal article images (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of journal article images
Throws:
SystemException - if a system exception occurred

removeByGroupId

public static void removeByGroupId(long groupId)
                            throws SystemException
Removes all the journal article images where groupId = ? from the database.

Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

removeByTempImage

public static void removeByTempImage(boolean tempImage)
                              throws SystemException
Removes all the journal article images where tempImage = ? from the database.

Parameters:
tempImage - the temp image
Throws:
SystemException - if a system exception occurred

removeByG_A_V

public static void removeByG_A_V(long groupId,
                                 String articleId,
                                 double version)
                          throws SystemException
Removes all the journal article images where groupId = ? and articleId = ? and version = ? from the database.

Parameters:
groupId - the group ID
articleId - the article ID
version - the version
Throws:
SystemException - if a system exception occurred

removeByG_A_V_E_E_L

public static JournalArticleImage removeByG_A_V_E_E_L(long groupId,
                                                      String articleId,
                                                      double version,
                                                      String elInstanceId,
                                                      String elName,
                                                      String languageId)
                                               throws SystemException,
                                                      NoSuchArticleImageException
Removes the journal article image where groupId = ? and articleId = ? and version = ? and elInstanceId = ? and elName = ? and languageId = ? from the database.

Parameters:
groupId - the group ID
articleId - the article ID
version - the version
elInstanceId - the el instance ID
elName - the el name
languageId - the language ID
Returns:
the journal article image that was removed
Throws:
SystemException - if a system exception occurred
NoSuchArticleImageException

removeAll

public static void removeAll()
                      throws SystemException
Removes all the journal article images from the database.

Throws:
SystemException - if a system exception occurred

countByGroupId

public static int countByGroupId(long groupId)
                          throws SystemException
Returns the number of journal article images where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching journal article images
Throws:
SystemException - if a system exception occurred

countByTempImage

public static int countByTempImage(boolean tempImage)
                            throws SystemException
Returns the number of journal article images where tempImage = ?.

Parameters:
tempImage - the temp image
Returns:
the number of matching journal article images
Throws:
SystemException - if a system exception occurred

countByG_A_V

public static int countByG_A_V(long groupId,
                               String articleId,
                               double version)
                        throws SystemException
Returns the number of journal article images where groupId = ? and articleId = ? and version = ?.

Parameters:
groupId - the group ID
articleId - the article ID
version - the version
Returns:
the number of matching journal article images
Throws:
SystemException - if a system exception occurred

countByG_A_V_E_E_L

public static int countByG_A_V_E_E_L(long groupId,
                                     String articleId,
                                     double version,
                                     String elInstanceId,
                                     String elName,
                                     String languageId)
                              throws SystemException
Returns the number of journal article images where groupId = ? and articleId = ? and version = ? and elInstanceId = ? and elName = ? and languageId = ?.

Parameters:
groupId - the group ID
articleId - the article ID
version - the version
elInstanceId - the el instance ID
elName - the el name
languageId - the language ID
Returns:
the number of matching journal article images
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Returns the number of journal article images.

Returns:
the number of journal article images
Throws:
SystemException - if a system exception occurred

getPersistence

public static JournalArticleImagePersistence getPersistence()

setPersistence

public void setPersistence(JournalArticleImagePersistence persistence)
Deprecated. 


Liferay 6.1.2-ce-ga3