|
Liferay 7.0-ce-a3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<SCProductScreenshot>
com.liferay.portlet.softwarecatalog.service.persistence.impl.SCProductScreenshotPersistenceImpl
@ProviderType public class SCProductScreenshotPersistenceImpl
The persistence implementation for the s c product screenshot service.
Caching information and settings can be found in portal.properties
SCProductScreenshotPersistence,
SCProductScreenshotUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, 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 Summary | |
|---|---|
SCProductScreenshotPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the s c product screenshot persistence. |
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. |
protected void |
cacheUniqueFindersCache(SCProductScreenshotModelImpl scProductScreenshotModelImpl,
boolean isNew)
|
void |
clearCache()
Clears the cache for all s c product screenshots. |
void |
clearCache(List<SCProductScreenshot> scProductScreenshots)
Clears the cache for a List instances of this model. |
void |
clearCache(SCProductScreenshot scProductScreenshot)
Clears the cache for the s c product screenshot. |
protected void |
clearUniqueFindersCache(SCProductScreenshotModelImpl scProductScreenshotModelImpl)
|
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. |
void |
destroy()
|
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. |
SCProductScreenshot |
fetchByPrimaryKey(Serializable primaryKey)
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 |
findByPrimaryKey(Serializable primaryKey)
Returns the s c product screenshot with the primary key or throws a NoSuchModelException 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. |
protected SCProductScreenshot |
getByProductEntryId_PrevAndNext(Session session,
SCProductScreenshot scProductScreenshot,
long productEntryId,
OrderByComparator<SCProductScreenshot> orderByComparator,
boolean previous)
|
protected Map<String,Integer> |
getTableColumnsMap()
|
SCProductScreenshot |
remove(long productScreenshotId)
Removes the s c product screenshot with the primary key from the database. |
SCProductScreenshot |
remove(Serializable primaryKey)
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. |
protected SCProductScreenshot |
removeImpl(SCProductScreenshot scProductScreenshot)
Removes the model instance from the database. |
protected SCProductScreenshot |
toUnwrappedModel(SCProductScreenshot scProductScreenshot)
|
SCProductScreenshot |
updateImpl(SCProductScreenshot scProductScreenshot)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_PRODUCTENTRYID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PRODUCTENTRYID
public static final FinderPath FINDER_PATH_COUNT_BY_PRODUCTENTRYID
public static final FinderPath FINDER_PATH_FETCH_BY_THUMBNAILID
public static final FinderPath FINDER_PATH_COUNT_BY_THUMBNAILID
public static final FinderPath FINDER_PATH_FETCH_BY_FULLIMAGEID
public static final FinderPath FINDER_PATH_COUNT_BY_FULLIMAGEID
public static final FinderPath FINDER_PATH_FETCH_BY_P_P
public static final FinderPath FINDER_PATH_COUNT_BY_P_P
protected EntityCache entityCache
protected FinderCache finderCache
| Constructor Detail |
|---|
public SCProductScreenshotPersistenceImpl()
| Method Detail |
|---|
public List<SCProductScreenshot> findByProductEntryId(long productEntryId)
findByProductEntryId in interface SCProductScreenshotPersistenceproductEntryId - the product entry ID
public 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.
findByProductEntryId in interface SCProductScreenshotPersistenceproductEntryId - 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)
public 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.
findByProductEntryId in interface SCProductScreenshotPersistenceproductEntryId - 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)
public 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.
findByProductEntryId in interface SCProductScreenshotPersistenceproductEntryId - 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
public SCProductScreenshot findByProductEntryId_First(long productEntryId,
OrderByComparator<SCProductScreenshot> orderByComparator)
throws NoSuchProductScreenshotException
findByProductEntryId_First in interface SCProductScreenshotPersistenceproductEntryId - 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
public SCProductScreenshot fetchByProductEntryId_First(long productEntryId,
OrderByComparator<SCProductScreenshot> orderByComparator)
fetchByProductEntryId_First in interface SCProductScreenshotPersistenceproductEntryId - 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
public SCProductScreenshot findByProductEntryId_Last(long productEntryId,
OrderByComparator<SCProductScreenshot> orderByComparator)
throws NoSuchProductScreenshotException
findByProductEntryId_Last in interface SCProductScreenshotPersistenceproductEntryId - 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
public SCProductScreenshot fetchByProductEntryId_Last(long productEntryId,
OrderByComparator<SCProductScreenshot> orderByComparator)
fetchByProductEntryId_Last in interface SCProductScreenshotPersistenceproductEntryId - 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
public SCProductScreenshot[] findByProductEntryId_PrevAndNext(long productScreenshotId,
long productEntryId,
OrderByComparator<SCProductScreenshot> orderByComparator)
throws NoSuchProductScreenshotException
findByProductEntryId_PrevAndNext in interface SCProductScreenshotPersistenceproductScreenshotId - 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 found
protected SCProductScreenshot getByProductEntryId_PrevAndNext(Session session,
SCProductScreenshot scProductScreenshot,
long productEntryId,
OrderByComparator<SCProductScreenshot> orderByComparator,
boolean previous)
public void removeByProductEntryId(long productEntryId)
removeByProductEntryId in interface SCProductScreenshotPersistenceproductEntryId - the product entry IDpublic int countByProductEntryId(long productEntryId)
countByProductEntryId in interface SCProductScreenshotPersistenceproductEntryId - the product entry ID
public SCProductScreenshot findByThumbnailId(long thumbnailId)
throws NoSuchProductScreenshotException
NoSuchProductScreenshotException if it could not be found.
findByThumbnailId in interface SCProductScreenshotPersistencethumbnailId - the thumbnail ID
NoSuchProductScreenshotException - if a matching s c product screenshot could not be foundpublic SCProductScreenshot fetchByThumbnailId(long thumbnailId)
null if it could not be found. Uses the finder cache.
fetchByThumbnailId in interface SCProductScreenshotPersistencethumbnailId - the thumbnail ID
null if a matching s c product screenshot could not be found
public SCProductScreenshot fetchByThumbnailId(long thumbnailId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByThumbnailId in interface SCProductScreenshotPersistencethumbnailId - the thumbnail IDretrieveFromCache - whether to retrieve from the finder cache
null if a matching s c product screenshot could not be found
public SCProductScreenshot removeByThumbnailId(long thumbnailId)
throws NoSuchProductScreenshotException
removeByThumbnailId in interface SCProductScreenshotPersistencethumbnailId - the thumbnail ID
NoSuchProductScreenshotExceptionpublic int countByThumbnailId(long thumbnailId)
countByThumbnailId in interface SCProductScreenshotPersistencethumbnailId - the thumbnail ID
public SCProductScreenshot findByFullImageId(long fullImageId)
throws NoSuchProductScreenshotException
NoSuchProductScreenshotException if it could not be found.
findByFullImageId in interface SCProductScreenshotPersistencefullImageId - the full image ID
NoSuchProductScreenshotException - if a matching s c product screenshot could not be foundpublic SCProductScreenshot fetchByFullImageId(long fullImageId)
null if it could not be found. Uses the finder cache.
fetchByFullImageId in interface SCProductScreenshotPersistencefullImageId - the full image ID
null if a matching s c product screenshot could not be found
public SCProductScreenshot fetchByFullImageId(long fullImageId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByFullImageId in interface SCProductScreenshotPersistencefullImageId - the full image IDretrieveFromCache - whether to retrieve from the finder cache
null if a matching s c product screenshot could not be found
public SCProductScreenshot removeByFullImageId(long fullImageId)
throws NoSuchProductScreenshotException
removeByFullImageId in interface SCProductScreenshotPersistencefullImageId - the full image ID
NoSuchProductScreenshotExceptionpublic int countByFullImageId(long fullImageId)
countByFullImageId in interface SCProductScreenshotPersistencefullImageId - the full image ID
public SCProductScreenshot findByP_P(long productEntryId,
int priority)
throws NoSuchProductScreenshotException
NoSuchProductScreenshotException if it could not be found.
findByP_P in interface SCProductScreenshotPersistenceproductEntryId - the product entry IDpriority - the priority
NoSuchProductScreenshotException - if a matching s c product screenshot could not be found
public SCProductScreenshot fetchByP_P(long productEntryId,
int priority)
null if it could not be found. Uses the finder cache.
fetchByP_P in interface SCProductScreenshotPersistenceproductEntryId - the product entry IDpriority - the priority
null if a matching s c product screenshot could not be found
public SCProductScreenshot fetchByP_P(long productEntryId,
int priority,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByP_P in interface SCProductScreenshotPersistenceproductEntryId - 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
public SCProductScreenshot removeByP_P(long productEntryId,
int priority)
throws NoSuchProductScreenshotException
removeByP_P in interface SCProductScreenshotPersistenceproductEntryId - the product entry IDpriority - the priority
NoSuchProductScreenshotException
public int countByP_P(long productEntryId,
int priority)
countByP_P in interface SCProductScreenshotPersistenceproductEntryId - the product entry IDpriority - the priority
public void cacheResult(SCProductScreenshot scProductScreenshot)
cacheResult in interface SCProductScreenshotPersistencescProductScreenshot - the s c product screenshotpublic void cacheResult(List<SCProductScreenshot> scProductScreenshots)
cacheResult in interface SCProductScreenshotPersistencescProductScreenshots - the s c product screenshotspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<SCProductScreenshot>clearCache in class BasePersistenceImpl<SCProductScreenshot>public void clearCache(SCProductScreenshot scProductScreenshot)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<SCProductScreenshot>clearCache in class BasePersistenceImpl<SCProductScreenshot>scProductScreenshot - the instance of this model to clear the cache forpublic void clearCache(List<SCProductScreenshot> scProductScreenshots)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<SCProductScreenshot>clearCache in class BasePersistenceImpl<SCProductScreenshot>scProductScreenshots - the List instances of this model to clear the cache for
protected void cacheUniqueFindersCache(SCProductScreenshotModelImpl scProductScreenshotModelImpl,
boolean isNew)
protected void clearUniqueFindersCache(SCProductScreenshotModelImpl scProductScreenshotModelImpl)
public SCProductScreenshot create(long productScreenshotId)
create in interface SCProductScreenshotPersistenceproductScreenshotId - the primary key for the new s c product screenshot
public SCProductScreenshot remove(long productScreenshotId)
throws NoSuchProductScreenshotException
remove in interface SCProductScreenshotPersistenceproductScreenshotId - the primary key of the s c product screenshot
NoSuchProductScreenshotException - if a s c product screenshot with the primary key could not be found
public SCProductScreenshot remove(Serializable primaryKey)
throws NoSuchProductScreenshotException
remove in interface BasePersistence<SCProductScreenshot>remove in class BasePersistenceImpl<SCProductScreenshot>primaryKey - the primary key of the s c product screenshot
NoSuchProductScreenshotException - if a s c product screenshot with the primary key could not be foundprotected SCProductScreenshot removeImpl(SCProductScreenshot scProductScreenshot)
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<SCProductScreenshot>scProductScreenshot - the model instance to remove
public SCProductScreenshot updateImpl(SCProductScreenshot scProductScreenshot)
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface SCProductScreenshotPersistenceupdateImpl in class BasePersistenceImpl<SCProductScreenshot>scProductScreenshot - the model instance to update
protected SCProductScreenshot toUnwrappedModel(SCProductScreenshot scProductScreenshot)
public SCProductScreenshot findByPrimaryKey(Serializable primaryKey)
throws NoSuchProductScreenshotException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<SCProductScreenshot>findByPrimaryKey in class BasePersistenceImpl<SCProductScreenshot>primaryKey - the primary key of the s c product screenshot
NoSuchProductScreenshotException - if a s c product screenshot with the primary key could not be found
public SCProductScreenshot findByPrimaryKey(long productScreenshotId)
throws NoSuchProductScreenshotException
NoSuchProductScreenshotException if it could not be found.
findByPrimaryKey in interface SCProductScreenshotPersistenceproductScreenshotId - the primary key of the s c product screenshot
NoSuchProductScreenshotException - if a s c product screenshot with the primary key could not be foundpublic SCProductScreenshot fetchByPrimaryKey(Serializable primaryKey)
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<SCProductScreenshot>fetchByPrimaryKey in class BasePersistenceImpl<SCProductScreenshot>primaryKey - the primary key of the s c product screenshot
null if a s c product screenshot with the primary key could not be foundpublic SCProductScreenshot fetchByPrimaryKey(long productScreenshotId)
null if it could not be found.
fetchByPrimaryKey in interface SCProductScreenshotPersistenceproductScreenshotId - the primary key of the s c product screenshot
null if a s c product screenshot with the primary key could not be foundpublic Map<Serializable,SCProductScreenshot> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<SCProductScreenshot>fetchByPrimaryKeys in interface SCProductScreenshotPersistencefetchByPrimaryKeys in class BasePersistenceImpl<SCProductScreenshot>public List<SCProductScreenshot> findAll()
findAll in interface SCProductScreenshotPersistence
public 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.
findAll in interface SCProductScreenshotPersistencestart - the lower bound of the range of s c product screenshotsend - the upper bound of the range of s c product screenshots (not inclusive)
public 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.
findAll in interface SCProductScreenshotPersistencestart - 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)
public 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.
findAll in interface SCProductScreenshotPersistencestart - 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
public void removeAll()
removeAll in interface SCProductScreenshotPersistencepublic int countAll()
countAll in interface SCProductScreenshotPersistenceprotected Map<String,Integer> getTableColumnsMap()
getTableColumnsMap in class BasePersistenceImpl<SCProductScreenshot>public void afterPropertiesSet()
public void destroy()
|
Liferay 7.0-ce-a3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||