|
Liferay 7.0-ce-a2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@ProviderType public interface SCProductScreenshotPersistence
The persistence interface for the s c product screenshot service.
Caching information and settings can be found in portal.properties
com.liferay.portlet.softwarecatalog.service.persistence.impl.SCProductScreenshotPersistenceImpl,
SCProductScreenshotUtil| Method Summary | |
|---|---|
void |
cacheResult(List<SCProductScreenshot> scProductScreenshots)
Caches the s c product screenshots in the entity cache if it is enabled. |
void |
cacheResult(SCProductScreenshot scProductScreenshot)
Caches the s c product screenshot in the entity cache if it is enabled. |
int |
countAll()
Returns the number of s c product screenshots. |
int |
countByFullImageId(long fullImageId)
Returns the number of s c product screenshots where fullImageId = ?. |
int |
countByP_P(long productEntryId,
int priority)
Returns the number of s c product screenshots where productEntryId = ? and priority = ?. |
int |
countByProductEntryId(long productEntryId)
Returns the number of s c product screenshots where productEntryId = ?. |
int |
countByThumbnailId(long thumbnailId)
Returns the number of s c product screenshots where thumbnailId = ?. |
SCProductScreenshot |
create(long productScreenshotId)
Creates a new s c product screenshot with the primary key. |
SCProductScreenshot |
fetchByFullImageId(long fullImageId)
Returns the s c product screenshot where fullImageId = ? or returns null if it could not be found. |
SCProductScreenshot |
fetchByFullImageId(long fullImageId,
boolean retrieveFromCache)
Returns the s c product screenshot where fullImageId = ? or returns null if it could not be found, optionally using the finder cache. |
SCProductScreenshot |
fetchByP_P(long productEntryId,
int priority)
Returns the s c product screenshot where productEntryId = ? and priority = ? or returns null if it could not be found. |
SCProductScreenshot |
fetchByP_P(long productEntryId,
int priority,
boolean retrieveFromCache)
Returns the s c product screenshot where productEntryId = ? and priority = ? or returns null if it could not be found, optionally using the finder cache. |
SCProductScreenshot |
fetchByPrimaryKey(long productScreenshotId)
Returns the s c product screenshot with the primary key or returns null if it could not be found. |
Map<Serializable,SCProductScreenshot> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
SCProductScreenshot |
fetchByProductEntryId_First(long productEntryId,
OrderByComparator<SCProductScreenshot> orderByComparator)
Returns the first s c product screenshot in the ordered set where productEntryId = ?. |
SCProductScreenshot |
fetchByProductEntryId_Last(long productEntryId,
OrderByComparator<SCProductScreenshot> orderByComparator)
Returns the last s c product screenshot in the ordered set where productEntryId = ?. |
SCProductScreenshot |
fetchByThumbnailId(long thumbnailId)
Returns the s c product screenshot where thumbnailId = ? or returns null if it could not be found. |
SCProductScreenshot |
fetchByThumbnailId(long thumbnailId,
boolean retrieveFromCache)
Returns the s c product screenshot where thumbnailId = ? or returns null if it could not be found, optionally using the finder cache. |
List<SCProductScreenshot> |
findAll()
Returns all the s c product screenshots. |
List<SCProductScreenshot> |
findAll(int start,
int end)
Returns a range of all the s c product screenshots. |
List<SCProductScreenshot> |
findAll(int start,
int end,
OrderByComparator<SCProductScreenshot> orderByComparator)
Returns an ordered range of all the s c product screenshots. |
List<SCProductScreenshot> |
findAll(int start,
int end,
OrderByComparator<SCProductScreenshot> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the s c product screenshots. |
SCProductScreenshot |
findByFullImageId(long fullImageId)
Returns the s c product screenshot where fullImageId = ? or throws a NoSuchProductScreenshotException if it could not be found. |
SCProductScreenshot |
findByP_P(long productEntryId,
int priority)
Returns the s c product screenshot where productEntryId = ? and priority = ? or throws a NoSuchProductScreenshotException if it could not be found. |
SCProductScreenshot |
findByPrimaryKey(long productScreenshotId)
Returns the s c product screenshot with the primary key or throws a NoSuchProductScreenshotException if it could not be found. |
SCProductScreenshot |
findByProductEntryId_First(long productEntryId,
OrderByComparator<SCProductScreenshot> orderByComparator)
Returns the first s c product screenshot in the ordered set where productEntryId = ?. |
SCProductScreenshot |
findByProductEntryId_Last(long productEntryId,
OrderByComparator<SCProductScreenshot> orderByComparator)
Returns the last s c product screenshot in the ordered set where productEntryId = ?. |
SCProductScreenshot[] |
findByProductEntryId_PrevAndNext(long productScreenshotId,
long productEntryId,
OrderByComparator<SCProductScreenshot> orderByComparator)
Returns the s c product screenshots before and after the current s c product screenshot in the ordered set where productEntryId = ?. |
List<SCProductScreenshot> |
findByProductEntryId(long productEntryId)
Returns all the s c product screenshots where productEntryId = ?. |
List<SCProductScreenshot> |
findByProductEntryId(long productEntryId,
int start,
int end)
Returns a range of all the s c product screenshots where productEntryId = ?. |
List<SCProductScreenshot> |
findByProductEntryId(long productEntryId,
int start,
int end,
OrderByComparator<SCProductScreenshot> orderByComparator)
Returns an ordered range of all the s c product screenshots where productEntryId = ?. |
List<SCProductScreenshot> |
findByProductEntryId(long productEntryId,
int start,
int end,
OrderByComparator<SCProductScreenshot> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the s c product screenshots where productEntryId = ?. |
SCProductScreenshot |
findByThumbnailId(long thumbnailId)
Returns the s c product screenshot where thumbnailId = ? or throws a NoSuchProductScreenshotException if it could not be found. |
SCProductScreenshot |
remove(long productScreenshotId)
Removes the s c product screenshot with the primary key from the database. |
void |
removeAll()
Removes all the s c product screenshots from the database. |
SCProductScreenshot |
removeByFullImageId(long fullImageId)
Removes the s c product screenshot where fullImageId = ? from the database. |
SCProductScreenshot |
removeByP_P(long productEntryId,
int priority)
Removes the s c product screenshot where productEntryId = ? and priority = ? from the database. |
void |
removeByProductEntryId(long productEntryId)
Removes all the s c product screenshots where productEntryId = ? from the database. |
SCProductScreenshot |
removeByThumbnailId(long thumbnailId)
Removes the s c product screenshot where thumbnailId = ? from the database. |
SCProductScreenshot |
updateImpl(SCProductScreenshot scProductScreenshot)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update |
| Method Detail |
|---|
List<SCProductScreenshot> findByProductEntryId(long productEntryId)
productEntryId - the product entry ID
List<SCProductScreenshot> findByProductEntryId(long productEntryId,
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductScreenshotModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
productEntryId - the product entry IDstart - the lower bound of the range of s c product screenshotsend - the upper bound of the range of s c product screenshots (not inclusive)
List<SCProductScreenshot> findByProductEntryId(long productEntryId,
int start,
int end,
OrderByComparator<SCProductScreenshot> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductScreenshotModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
productEntryId - the product entry IDstart - the lower bound of the range of s c product screenshotsend - the upper bound of the range of s c product screenshots (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
List<SCProductScreenshot> findByProductEntryId(long productEntryId,
int start,
int end,
OrderByComparator<SCProductScreenshot> orderByComparator,
boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductScreenshotModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
productEntryId - the product entry IDstart - the lower bound of the range of s c product screenshotsend - the upper bound of the range of s c product screenshots (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
SCProductScreenshot findByProductEntryId_First(long productEntryId,
OrderByComparator<SCProductScreenshot> orderByComparator)
throws NoSuchProductScreenshotException
productEntryId - the product entry IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchProductScreenshotException - if a matching s c product screenshot could not be found
SCProductScreenshot fetchByProductEntryId_First(long productEntryId,
OrderByComparator<SCProductScreenshot> orderByComparator)
productEntryId - the product entry IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching s c product screenshot could not be found
SCProductScreenshot findByProductEntryId_Last(long productEntryId,
OrderByComparator<SCProductScreenshot> orderByComparator)
throws NoSuchProductScreenshotException
productEntryId - the product entry IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchProductScreenshotException - if a matching s c product screenshot could not be found
SCProductScreenshot fetchByProductEntryId_Last(long productEntryId,
OrderByComparator<SCProductScreenshot> orderByComparator)
productEntryId - the product entry IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching s c product screenshot could not be found
SCProductScreenshot[] findByProductEntryId_PrevAndNext(long productScreenshotId,
long productEntryId,
OrderByComparator<SCProductScreenshot> orderByComparator)
throws NoSuchProductScreenshotException
productScreenshotId - the primary key of the current s c product screenshotproductEntryId - the product entry IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchProductScreenshotException - if a s c product screenshot with the primary key could not be foundvoid removeByProductEntryId(long productEntryId)
productEntryId - the product entry IDint countByProductEntryId(long productEntryId)
productEntryId - the product entry ID
SCProductScreenshot findByThumbnailId(long thumbnailId)
throws NoSuchProductScreenshotException
NoSuchProductScreenshotException if it could not be found.
thumbnailId - the thumbnail ID
NoSuchProductScreenshotException - if a matching s c product screenshot could not be foundSCProductScreenshot fetchByThumbnailId(long thumbnailId)
null if it could not be found. Uses the finder cache.
thumbnailId - the thumbnail ID
null if a matching s c product screenshot could not be found
SCProductScreenshot fetchByThumbnailId(long thumbnailId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
thumbnailId - the thumbnail IDretrieveFromCache - whether to retrieve from the finder cache
null if a matching s c product screenshot could not be found
SCProductScreenshot removeByThumbnailId(long thumbnailId)
throws NoSuchProductScreenshotException
thumbnailId - the thumbnail ID
NoSuchProductScreenshotExceptionint countByThumbnailId(long thumbnailId)
thumbnailId - the thumbnail ID
SCProductScreenshot findByFullImageId(long fullImageId)
throws NoSuchProductScreenshotException
NoSuchProductScreenshotException if it could not be found.
fullImageId - the full image ID
NoSuchProductScreenshotException - if a matching s c product screenshot could not be foundSCProductScreenshot fetchByFullImageId(long fullImageId)
null if it could not be found. Uses the finder cache.
fullImageId - the full image ID
null if a matching s c product screenshot could not be found
SCProductScreenshot fetchByFullImageId(long fullImageId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fullImageId - the full image IDretrieveFromCache - whether to retrieve from the finder cache
null if a matching s c product screenshot could not be found
SCProductScreenshot removeByFullImageId(long fullImageId)
throws NoSuchProductScreenshotException
fullImageId - the full image ID
NoSuchProductScreenshotExceptionint countByFullImageId(long fullImageId)
fullImageId - the full image ID
SCProductScreenshot findByP_P(long productEntryId,
int priority)
throws NoSuchProductScreenshotException
NoSuchProductScreenshotException if it could not be found.
productEntryId - the product entry IDpriority - the priority
NoSuchProductScreenshotException - if a matching s c product screenshot could not be found
SCProductScreenshot fetchByP_P(long productEntryId,
int priority)
null if it could not be found. Uses the finder cache.
productEntryId - the product entry IDpriority - the priority
null if a matching s c product screenshot could not be found
SCProductScreenshot fetchByP_P(long productEntryId,
int priority,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
productEntryId - the product entry IDpriority - the priorityretrieveFromCache - whether to retrieve from the finder cache
null if a matching s c product screenshot could not be found
SCProductScreenshot removeByP_P(long productEntryId,
int priority)
throws NoSuchProductScreenshotException
productEntryId - the product entry IDpriority - the priority
NoSuchProductScreenshotException
int countByP_P(long productEntryId,
int priority)
productEntryId - the product entry IDpriority - the priority
void cacheResult(SCProductScreenshot scProductScreenshot)
scProductScreenshot - the s c product screenshotvoid cacheResult(List<SCProductScreenshot> scProductScreenshots)
scProductScreenshots - the s c product screenshotsSCProductScreenshot create(long productScreenshotId)
productScreenshotId - the primary key for the new s c product screenshot
SCProductScreenshot remove(long productScreenshotId)
throws NoSuchProductScreenshotException
productScreenshotId - the primary key of the s c product screenshot
NoSuchProductScreenshotException - if a s c product screenshot with the primary key could not be foundSCProductScreenshot updateImpl(SCProductScreenshot scProductScreenshot)
SCProductScreenshot findByPrimaryKey(long productScreenshotId)
throws NoSuchProductScreenshotException
NoSuchProductScreenshotException if it could not be found.
productScreenshotId - the primary key of the s c product screenshot
NoSuchProductScreenshotException - if a s c product screenshot with the primary key could not be foundSCProductScreenshot fetchByPrimaryKey(long productScreenshotId)
null if it could not be found.
productScreenshotId - the primary key of the s c product screenshot
null if a s c product screenshot with the primary key could not be foundMap<Serializable,SCProductScreenshot> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<SCProductScreenshot>List<SCProductScreenshot> findAll()
List<SCProductScreenshot> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductScreenshotModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of s c product screenshotsend - the upper bound of the range of s c product screenshots (not inclusive)
List<SCProductScreenshot> findAll(int start,
int end,
OrderByComparator<SCProductScreenshot> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductScreenshotModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of s c product screenshotsend - the upper bound of the range of s c product screenshots (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
List<SCProductScreenshot> findAll(int start,
int end,
OrderByComparator<SCProductScreenshot> orderByComparator,
boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from SCProductScreenshotModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of s c product screenshotsend - the upper bound of the range of s c product screenshots (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
void removeAll()
int countAll()
|
Liferay 7.0-ce-a2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||