public class ImagePersistenceImpl
extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Image>
implements com.liferay.portal.kernel.service.persistence.ImagePersistence
Caching information and settings can be found in portal.properties
| Modifier and Type | Field and Description |
|---|---|
static String |
FINDER_CLASS_NAME_ENTITY
NOTE FOR DEVELOPERS:
Never modify or reference this class directly.
|
static String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION |
static String |
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION |
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR| Constructor and Description |
|---|
ImagePersistenceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Initializes the image persistence.
|
void |
cacheResult(com.liferay.portal.kernel.model.Image image)
Caches the image in the entity cache if it is enabled.
|
void |
cacheResult(List<com.liferay.portal.kernel.model.Image> images)
Caches the images in the entity cache if it is enabled.
|
void |
clearCache()
Clears the cache for all images.
|
void |
clearCache(com.liferay.portal.kernel.model.Image image)
Clears the cache for the image.
|
void |
clearCache(List<com.liferay.portal.kernel.model.Image> images) |
int |
countAll()
Returns the number of images.
|
int |
countByLtSize(int size)
Returns the number of images where size < ?.
|
com.liferay.portal.kernel.model.Image |
create(long imageId)
Creates a new image with the primary key.
|
void |
destroy() |
com.liferay.portal.kernel.model.Image |
fetchByLtSize_First(int size,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator)
Returns the first image in the ordered set where size < ?.
|
com.liferay.portal.kernel.model.Image |
fetchByLtSize_Last(int size,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator)
Returns the last image in the ordered set where size < ?.
|
com.liferay.portal.kernel.model.Image |
fetchByPrimaryKey(long imageId)
Returns the image with the primary key or returns
null if it could not be found. |
List<com.liferay.portal.kernel.model.Image> |
findAll()
Returns all the images.
|
List<com.liferay.portal.kernel.model.Image> |
findAll(int start,
int end)
Returns a range of all the images.
|
List<com.liferay.portal.kernel.model.Image> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator)
Returns an ordered range of all the images.
|
List<com.liferay.portal.kernel.model.Image> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the images.
|
com.liferay.portal.kernel.model.Image |
findByLtSize_First(int size,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator)
Returns the first image in the ordered set where size < ?.
|
com.liferay.portal.kernel.model.Image |
findByLtSize_Last(int size,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator)
Returns the last image in the ordered set where size < ?.
|
com.liferay.portal.kernel.model.Image[] |
findByLtSize_PrevAndNext(long imageId,
int size,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator)
Returns the images before and after the current image in the ordered set where size < ?.
|
List<com.liferay.portal.kernel.model.Image> |
findByLtSize(int size)
Returns all the images where size < ?.
|
List<com.liferay.portal.kernel.model.Image> |
findByLtSize(int size,
int start,
int end)
Returns a range of all the images where size < ?.
|
List<com.liferay.portal.kernel.model.Image> |
findByLtSize(int size,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator)
Returns an ordered range of all the images where size < ?.
|
List<com.liferay.portal.kernel.model.Image> |
findByLtSize(int size,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the images where size < ?.
|
com.liferay.portal.kernel.model.Image |
findByPrimaryKey(long imageId)
Returns the image with the primary key or throws a
NoSuchImageException if it could not be found. |
com.liferay.portal.kernel.model.Image |
findByPrimaryKey(Serializable primaryKey)
Returns the image with the primary key or throws a
com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found. |
Set<String> |
getBadColumnNames() |
protected com.liferay.portal.kernel.model.Image |
getByLtSize_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.kernel.model.Image image,
int size,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator,
boolean previous) |
protected com.liferay.portal.kernel.dao.orm.EntityCache |
getEntityCache() |
protected String |
getPKDBName() |
protected String |
getSelectSQL() |
protected Map<String,Integer> |
getTableColumnsMap() |
com.liferay.portal.kernel.model.Image |
remove(long imageId)
Removes the image with the primary key from the database.
|
com.liferay.portal.kernel.model.Image |
remove(Serializable primaryKey)
Removes the image with the primary key from the database.
|
void |
removeAll()
Removes all the images from the database.
|
void |
removeByLtSize(int size)
Removes all the images where size < ? from the database.
|
protected com.liferay.portal.kernel.model.Image |
removeImpl(com.liferay.portal.kernel.model.Image image) |
com.liferay.portal.kernel.model.Image |
updateImpl(com.liferay.portal.kernel.model.Image image) |
appendOrderByComparator, appendOrderByComparator, appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, unregisterListener, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, updatepublic static final String FINDER_CLASS_NAME_ENTITY
ImageUtil to access the image persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class.public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public List<com.liferay.portal.kernel.model.Image> findByLtSize(int size)
findByLtSize in interface com.liferay.portal.kernel.service.persistence.ImagePersistencesize - the sizepublic List<com.liferay.portal.kernel.model.Image> findByLtSize(int size,
int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from ImageModelImpl.
findByLtSize in interface com.liferay.portal.kernel.service.persistence.ImagePersistencesize - the sizestart - the lower bound of the range of imagesend - the upper bound of the range of images (not inclusive)public List<com.liferay.portal.kernel.model.Image> findByLtSize(int size,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from ImageModelImpl.
findByLtSize in interface com.liferay.portal.kernel.service.persistence.ImagePersistencesize - the sizestart - the lower bound of the range of imagesend - the upper bound of the range of images (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public List<com.liferay.portal.kernel.model.Image> findByLtSize(int size,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator,
boolean useFinderCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from ImageModelImpl.
findByLtSize in interface com.liferay.portal.kernel.service.persistence.ImagePersistencesize - the sizestart - the lower bound of the range of imagesend - the upper bound of the range of images (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic com.liferay.portal.kernel.model.Image findByLtSize_First(int size,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator)
throws com.liferay.portal.kernel.exception.NoSuchImageException
findByLtSize_First in interface com.liferay.portal.kernel.service.persistence.ImagePersistencesize - the sizeorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.kernel.exception.NoSuchImageException - if a matching image could not be foundpublic com.liferay.portal.kernel.model.Image fetchByLtSize_First(int size,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator)
fetchByLtSize_First in interface com.liferay.portal.kernel.service.persistence.ImagePersistencesize - the sizeorderByComparator - the comparator to order the set by (optionally null)null if a matching image could not be foundpublic com.liferay.portal.kernel.model.Image findByLtSize_Last(int size,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator)
throws com.liferay.portal.kernel.exception.NoSuchImageException
findByLtSize_Last in interface com.liferay.portal.kernel.service.persistence.ImagePersistencesize - the sizeorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.kernel.exception.NoSuchImageException - if a matching image could not be foundpublic com.liferay.portal.kernel.model.Image fetchByLtSize_Last(int size,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator)
fetchByLtSize_Last in interface com.liferay.portal.kernel.service.persistence.ImagePersistencesize - the sizeorderByComparator - the comparator to order the set by (optionally null)null if a matching image could not be foundpublic com.liferay.portal.kernel.model.Image[] findByLtSize_PrevAndNext(long imageId,
int size,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator)
throws com.liferay.portal.kernel.exception.NoSuchImageException
findByLtSize_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.ImagePersistenceimageId - the primary key of the current imagesize - the sizeorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.kernel.exception.NoSuchImageException - if a image with the primary key could not be foundprotected com.liferay.portal.kernel.model.Image getByLtSize_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.kernel.model.Image image,
int size,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator,
boolean previous)
public void removeByLtSize(int size)
removeByLtSize in interface com.liferay.portal.kernel.service.persistence.ImagePersistencesize - the sizepublic int countByLtSize(int size)
countByLtSize in interface com.liferay.portal.kernel.service.persistence.ImagePersistencesize - the sizepublic void cacheResult(com.liferay.portal.kernel.model.Image image)
cacheResult in interface com.liferay.portal.kernel.service.persistence.ImagePersistencecacheResult in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Image>image - the imagepublic void cacheResult(List<com.liferay.portal.kernel.model.Image> images)
cacheResult in interface com.liferay.portal.kernel.service.persistence.ImagePersistenceimages - the imagespublic void clearCache()
The EntityCache and com.liferay.portal.kernel.dao.orm.FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Image>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Image>public void clearCache(com.liferay.portal.kernel.model.Image image)
The EntityCache and com.liferay.portal.kernel.dao.orm.FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Image>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Image>public void clearCache(List<com.liferay.portal.kernel.model.Image> images)
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Image>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Image>public com.liferay.portal.kernel.model.Image create(long imageId)
create in interface com.liferay.portal.kernel.service.persistence.ImagePersistenceimageId - the primary key for the new imagepublic com.liferay.portal.kernel.model.Image remove(long imageId)
throws com.liferay.portal.kernel.exception.NoSuchImageException
remove in interface com.liferay.portal.kernel.service.persistence.ImagePersistenceimageId - the primary key of the imagecom.liferay.portal.kernel.exception.NoSuchImageException - if a image with the primary key could not be foundpublic com.liferay.portal.kernel.model.Image remove(Serializable primaryKey)
throws com.liferay.portal.kernel.exception.NoSuchImageException
remove in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Image>remove in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Image>primaryKey - the primary key of the imagecom.liferay.portal.kernel.exception.NoSuchImageException - if a image with the primary key could not be foundprotected com.liferay.portal.kernel.model.Image removeImpl(com.liferay.portal.kernel.model.Image image)
removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Image>public com.liferay.portal.kernel.model.Image updateImpl(com.liferay.portal.kernel.model.Image image)
updateImpl in interface com.liferay.portal.kernel.service.persistence.ImagePersistenceupdateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Image>public com.liferay.portal.kernel.model.Image findByPrimaryKey(Serializable primaryKey)
throws com.liferay.portal.kernel.exception.NoSuchImageException
com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found.findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Image>findByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Image>primaryKey - the primary key of the imagecom.liferay.portal.kernel.exception.NoSuchImageException - if a image with the primary key could not be foundpublic com.liferay.portal.kernel.model.Image findByPrimaryKey(long imageId)
throws com.liferay.portal.kernel.exception.NoSuchImageException
NoSuchImageException if it could not be found.findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.ImagePersistenceimageId - the primary key of the imagecom.liferay.portal.kernel.exception.NoSuchImageException - if a image with the primary key could not be foundpublic com.liferay.portal.kernel.model.Image fetchByPrimaryKey(long imageId)
null if it could not be found.fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.ImagePersistenceimageId - the primary key of the imagenull if a image with the primary key could not be foundpublic List<com.liferay.portal.kernel.model.Image> findAll()
findAll in interface com.liferay.portal.kernel.service.persistence.ImagePersistencepublic List<com.liferay.portal.kernel.model.Image> findAll(int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from ImageModelImpl.
findAll in interface com.liferay.portal.kernel.service.persistence.ImagePersistencestart - the lower bound of the range of imagesend - the upper bound of the range of images (not inclusive)public List<com.liferay.portal.kernel.model.Image> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from ImageModelImpl.
findAll in interface com.liferay.portal.kernel.service.persistence.ImagePersistencestart - the lower bound of the range of imagesend - the upper bound of the range of images (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public List<com.liferay.portal.kernel.model.Image> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Image> orderByComparator,
boolean useFinderCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from ImageModelImpl.
findAll in interface com.liferay.portal.kernel.service.persistence.ImagePersistencestart - the lower bound of the range of imagesend - the upper bound of the range of images (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic void removeAll()
removeAll in interface com.liferay.portal.kernel.service.persistence.ImagePersistencepublic int countAll()
countAll in interface com.liferay.portal.kernel.service.persistence.ImagePersistencepublic Set<String> getBadColumnNames()
getBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Image>getBadColumnNames in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Image>protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()
getEntityCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Image>protected String getPKDBName()
getPKDBName in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Image>protected String getSelectSQL()
getSelectSQL in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Image>protected Map<String,Integer> getTableColumnsMap()
getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Image>public void afterPropertiesSet()
public void destroy()