|
Liferay 6.2.0-ce-b3 | |||||||||
| 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<SCProductVersion>
com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistenceImpl
public class SCProductVersionPersistenceImpl
The persistence implementation for the s c product version service.
Caching information and settings can be found in portal.properties
SCProductVersionPersistence,
SCProductVersionUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, 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 | |
|---|---|
SCProductVersionPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
addSCFrameworkVersion(long pk,
long scFrameworkVersionPK)
Adds an association between the s c product version and the s c framework version. |
void |
addSCFrameworkVersion(long pk,
SCFrameworkVersion scFrameworkVersion)
Adds an association between the s c product version and the s c framework version. |
void |
addSCFrameworkVersions(long pk,
List<SCFrameworkVersion> scFrameworkVersions)
Adds an association between the s c product version and the s c framework versions. |
void |
addSCFrameworkVersions(long pk,
long[] scFrameworkVersionPKs)
Adds an association between the s c product version and the s c framework versions. |
void |
afterPropertiesSet()
Initializes the s c product version persistence. |
void |
cacheResult(List<SCProductVersion> scProductVersions)
Caches the s c product versions in the entity cache if it is enabled. |
void |
cacheResult(SCProductVersion scProductVersion)
Caches the s c product version in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(SCProductVersion scProductVersion)
|
void |
clearCache()
Clears the cache for all s c product versions. |
void |
clearCache(List<SCProductVersion> scProductVersions)
Clears the cache for a List instances of this model. |
void |
clearCache(SCProductVersion scProductVersion)
Clears the cache for the s c product version. |
void |
clearSCFrameworkVersions(long pk)
Clears all associations between the s c product version and its s c framework versions. |
protected void |
clearUniqueFindersCache(SCProductVersion scProductVersion)
|
boolean |
containsSCFrameworkVersion(long pk,
long scFrameworkVersionPK)
Returns true if the s c framework version is associated with the s c product version. |
boolean |
containsSCFrameworkVersions(long pk)
Returns true if the s c product version has any s c framework versions associated with it. |
int |
countAll()
Returns the number of s c product versions. |
int |
countByDirectDownloadURL(String directDownloadURL)
Returns the number of s c product versions where directDownloadURL = ?. |
int |
countByProductEntryId(long productEntryId)
Returns the number of s c product versions where productEntryId = ?. |
SCProductVersion |
create(long productVersionId)
Creates a new s c product version with the primary key. |
void |
destroy()
|
SCProductVersion |
fetchByDirectDownloadURL(String directDownloadURL)
Returns the s c product version where directDownloadURL = ? or returns null if it could not be found. |
SCProductVersion |
fetchByDirectDownloadURL(String directDownloadURL,
boolean retrieveFromCache)
Returns the s c product version where directDownloadURL = ? or returns null if it could not be found, optionally using the finder cache. |
SCProductVersion |
fetchByPrimaryKey(long productVersionId)
Returns the s c product version with the primary key or returns null if it could not be found. |
SCProductVersion |
fetchByPrimaryKey(Serializable primaryKey)
Returns the s c product version with the primary key or returns null if it could not be found. |
SCProductVersion |
fetchByProductEntryId_First(long productEntryId,
OrderByComparator orderByComparator)
Returns the first s c product version in the ordered set where productEntryId = ?. |
SCProductVersion |
fetchByProductEntryId_Last(long productEntryId,
OrderByComparator orderByComparator)
Returns the last s c product version in the ordered set where productEntryId = ?. |
List<SCProductVersion> |
findAll()
Returns all the s c product versions. |
List<SCProductVersion> |
findAll(int start,
int end)
Returns a range of all the s c product versions. |
List<SCProductVersion> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the s c product versions. |
SCProductVersion |
findByDirectDownloadURL(String directDownloadURL)
Returns the s c product version where directDownloadURL = ? or throws a NoSuchProductVersionException if it could not be found. |
SCProductVersion |
findByPrimaryKey(long productVersionId)
Returns the s c product version with the primary key or throws a NoSuchProductVersionException if it could not be found. |
SCProductVersion |
findByPrimaryKey(Serializable primaryKey)
Returns the s c product version with the primary key or throws a NoSuchModelException if it could not be found. |
SCProductVersion |
findByProductEntryId_First(long productEntryId,
OrderByComparator orderByComparator)
Returns the first s c product version in the ordered set where productEntryId = ?. |
SCProductVersion |
findByProductEntryId_Last(long productEntryId,
OrderByComparator orderByComparator)
Returns the last s c product version in the ordered set where productEntryId = ?. |
SCProductVersion[] |
findByProductEntryId_PrevAndNext(long productVersionId,
long productEntryId,
OrderByComparator orderByComparator)
Returns the s c product versions before and after the current s c product version in the ordered set where productEntryId = ?. |
List<SCProductVersion> |
findByProductEntryId(long productEntryId)
Returns all the s c product versions where productEntryId = ?. |
List<SCProductVersion> |
findByProductEntryId(long productEntryId,
int start,
int end)
Returns a range of all the s c product versions where productEntryId = ?. |
List<SCProductVersion> |
findByProductEntryId(long productEntryId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the s c product versions where productEntryId = ?. |
protected SCProductVersion |
getByProductEntryId_PrevAndNext(Session session,
SCProductVersion scProductVersion,
long productEntryId,
OrderByComparator orderByComparator,
boolean previous)
|
List<SCFrameworkVersion> |
getSCFrameworkVersions(long pk)
Returns all the s c framework versions associated with the s c product version. |
List<SCFrameworkVersion> |
getSCFrameworkVersions(long pk,
int start,
int end)
Returns a range of all the s c framework versions associated with the s c product version. |
List<SCFrameworkVersion> |
getSCFrameworkVersions(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the s c framework versions associated with the s c product version. |
int |
getSCFrameworkVersionsSize(long pk)
Returns the number of s c framework versions associated with the s c product version. |
SCProductVersion |
remove(long productVersionId)
Removes the s c product version with the primary key from the database. |
SCProductVersion |
remove(Serializable primaryKey)
Removes the s c product version with the primary key from the database. |
void |
removeAll()
Removes all the s c product versions from the database. |
SCProductVersion |
removeByDirectDownloadURL(String directDownloadURL)
Removes the s c product version where directDownloadURL = ? from the database. |
void |
removeByProductEntryId(long productEntryId)
Removes all the s c product versions where productEntryId = ? from the database. |
protected SCProductVersion |
removeImpl(SCProductVersion scProductVersion)
Removes the model instance from the database. |
void |
removeSCFrameworkVersion(long pk,
long scFrameworkVersionPK)
Removes the association between the s c product version and the s c framework version. |
void |
removeSCFrameworkVersion(long pk,
SCFrameworkVersion scFrameworkVersion)
Removes the association between the s c product version and the s c framework version. |
void |
removeSCFrameworkVersions(long pk,
List<SCFrameworkVersion> scFrameworkVersions)
Removes the association between the s c product version and the s c framework versions. |
void |
removeSCFrameworkVersions(long pk,
long[] scFrameworkVersionPKs)
Removes the association between the s c product version and the s c framework versions. |
void |
setSCFrameworkVersions(long pk,
List<SCFrameworkVersion> scFrameworkVersions)
Sets the s c framework versions associated with the s c product version, removing and adding associations as necessary. |
void |
setSCFrameworkVersions(long pk,
long[] scFrameworkVersionPKs)
Sets the s c framework versions associated with the s c product version, removing and adding associations as necessary. |
protected SCProductVersion |
toUnwrappedModel(SCProductVersion scProductVersion)
|
SCProductVersion |
updateImpl(SCProductVersion scProductVersion)
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, 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, 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_DIRECTDOWNLOADURL
public static final FinderPath FINDER_PATH_COUNT_BY_DIRECTDOWNLOADURL
@BeanReference(type=SCFrameworkVersionPersistence.class) protected SCFrameworkVersionPersistence scFrameworkVersionPersistence
protected TableMapper<SCProductVersion,SCFrameworkVersion> scProductVersionToSCFrameworkVersionTableMapper
| Constructor Detail |
|---|
public SCProductVersionPersistenceImpl()
| Method Detail |
|---|
public List<SCProductVersion> findByProductEntryId(long productEntryId)
throws SystemException
findByProductEntryId in interface SCProductVersionPersistenceproductEntryId - the product entry ID
SystemException - if a system exception occurred
public List<SCProductVersion> findByProductEntryId(long productEntryId,
int start,
int end)
throws SystemException
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 SCProductVersionModelImpl. 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 SCProductVersionPersistenceproductEntryId - the product entry IDstart - the lower bound of the range of s c product versionsend - the upper bound of the range of s c product versions (not inclusive)
SystemException - if a system exception occurred
public List<SCProductVersion> findByProductEntryId(long productEntryId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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 SCProductVersionModelImpl. 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 SCProductVersionPersistenceproductEntryId - the product entry IDstart - the lower bound of the range of s c product versionsend - the upper bound of the range of s c product versions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public SCProductVersion findByProductEntryId_First(long productEntryId,
OrderByComparator orderByComparator)
throws NoSuchProductVersionException,
SystemException
findByProductEntryId_First in interface SCProductVersionPersistenceproductEntryId - the product entry IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchProductVersionException - if a matching s c product version could not be found
SystemException - if a system exception occurred
public SCProductVersion fetchByProductEntryId_First(long productEntryId,
OrderByComparator orderByComparator)
throws SystemException
fetchByProductEntryId_First in interface SCProductVersionPersistenceproductEntryId - the product entry IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching s c product version could not be found
SystemException - if a system exception occurred
public SCProductVersion findByProductEntryId_Last(long productEntryId,
OrderByComparator orderByComparator)
throws NoSuchProductVersionException,
SystemException
findByProductEntryId_Last in interface SCProductVersionPersistenceproductEntryId - the product entry IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchProductVersionException - if a matching s c product version could not be found
SystemException - if a system exception occurred
public SCProductVersion fetchByProductEntryId_Last(long productEntryId,
OrderByComparator orderByComparator)
throws SystemException
fetchByProductEntryId_Last in interface SCProductVersionPersistenceproductEntryId - the product entry IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching s c product version could not be found
SystemException - if a system exception occurred
public SCProductVersion[] findByProductEntryId_PrevAndNext(long productVersionId,
long productEntryId,
OrderByComparator orderByComparator)
throws NoSuchProductVersionException,
SystemException
findByProductEntryId_PrevAndNext in interface SCProductVersionPersistenceproductVersionId - the primary key of the current s c product versionproductEntryId - the product entry IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchProductVersionException - if a s c product version with the primary key could not be found
SystemException - if a system exception occurred
protected SCProductVersion getByProductEntryId_PrevAndNext(Session session,
SCProductVersion scProductVersion,
long productEntryId,
OrderByComparator orderByComparator,
boolean previous)
public void removeByProductEntryId(long productEntryId)
throws SystemException
removeByProductEntryId in interface SCProductVersionPersistenceproductEntryId - the product entry ID
SystemException - if a system exception occurred
public int countByProductEntryId(long productEntryId)
throws SystemException
countByProductEntryId in interface SCProductVersionPersistenceproductEntryId - the product entry ID
SystemException - if a system exception occurred
public SCProductVersion findByDirectDownloadURL(String directDownloadURL)
throws NoSuchProductVersionException,
SystemException
NoSuchProductVersionException if it could not be found.
findByDirectDownloadURL in interface SCProductVersionPersistencedirectDownloadURL - the direct download u r l
NoSuchProductVersionException - if a matching s c product version could not be found
SystemException - if a system exception occurred
public SCProductVersion fetchByDirectDownloadURL(String directDownloadURL)
throws SystemException
null if it could not be found. Uses the finder cache.
fetchByDirectDownloadURL in interface SCProductVersionPersistencedirectDownloadURL - the direct download u r l
null if a matching s c product version could not be found
SystemException - if a system exception occurred
public SCProductVersion fetchByDirectDownloadURL(String directDownloadURL,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
fetchByDirectDownloadURL in interface SCProductVersionPersistencedirectDownloadURL - the direct download u r lretrieveFromCache - whether to use the finder cache
null if a matching s c product version could not be found
SystemException - if a system exception occurred
public SCProductVersion removeByDirectDownloadURL(String directDownloadURL)
throws NoSuchProductVersionException,
SystemException
removeByDirectDownloadURL in interface SCProductVersionPersistencedirectDownloadURL - the direct download u r l
SystemException - if a system exception occurred
NoSuchProductVersionException
public int countByDirectDownloadURL(String directDownloadURL)
throws SystemException
countByDirectDownloadURL in interface SCProductVersionPersistencedirectDownloadURL - the direct download u r l
SystemException - if a system exception occurredpublic void cacheResult(SCProductVersion scProductVersion)
cacheResult in interface SCProductVersionPersistencescProductVersion - the s c product versionpublic void cacheResult(List<SCProductVersion> scProductVersions)
cacheResult in interface SCProductVersionPersistencescProductVersions - the s c product versionspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<SCProductVersion>clearCache in class BasePersistenceImpl<SCProductVersion>public void clearCache(SCProductVersion scProductVersion)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<SCProductVersion>clearCache in class BasePersistenceImpl<SCProductVersion>scProductVersion - the instance of this model to clear the cache forpublic void clearCache(List<SCProductVersion> scProductVersions)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<SCProductVersion>clearCache in class BasePersistenceImpl<SCProductVersion>scProductVersions - the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(SCProductVersion scProductVersion)
protected void clearUniqueFindersCache(SCProductVersion scProductVersion)
public SCProductVersion create(long productVersionId)
create in interface SCProductVersionPersistenceproductVersionId - the primary key for the new s c product version
public SCProductVersion remove(long productVersionId)
throws NoSuchProductVersionException,
SystemException
remove in interface SCProductVersionPersistenceproductVersionId - the primary key of the s c product version
NoSuchProductVersionException - if a s c product version with the primary key could not be found
SystemException - if a system exception occurred
public SCProductVersion remove(Serializable primaryKey)
throws NoSuchProductVersionException,
SystemException
remove in interface BasePersistence<SCProductVersion>remove in class BasePersistenceImpl<SCProductVersion>primaryKey - the primary key of the s c product version
NoSuchProductVersionException - if a s c product version with the primary key could not be found
SystemException - if a system exception occurred
protected SCProductVersion removeImpl(SCProductVersion scProductVersion)
throws SystemException
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<SCProductVersion>scProductVersion - the model instance to remove
SystemException - if a system exception occurred
public SCProductVersion updateImpl(SCProductVersion scProductVersion)
throws SystemException
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface SCProductVersionPersistenceupdateImpl in class BasePersistenceImpl<SCProductVersion>scProductVersion - the model instance to update
SystemException - if a system exception occurredprotected SCProductVersion toUnwrappedModel(SCProductVersion scProductVersion)
public SCProductVersion findByPrimaryKey(Serializable primaryKey)
throws NoSuchProductVersionException,
SystemException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<SCProductVersion>findByPrimaryKey in class BasePersistenceImpl<SCProductVersion>primaryKey - the primary key of the s c product version
NoSuchProductVersionException - if a s c product version with the primary key could not be found
SystemException - if a system exception occurred
public SCProductVersion findByPrimaryKey(long productVersionId)
throws NoSuchProductVersionException,
SystemException
NoSuchProductVersionException if it could not be found.
findByPrimaryKey in interface SCProductVersionPersistenceproductVersionId - the primary key of the s c product version
NoSuchProductVersionException - if a s c product version with the primary key could not be found
SystemException - if a system exception occurred
public SCProductVersion fetchByPrimaryKey(Serializable primaryKey)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<SCProductVersion>fetchByPrimaryKey in class BasePersistenceImpl<SCProductVersion>primaryKey - the primary key of the s c product version
null if a s c product version with the primary key could not be found
SystemException - if a system exception occurred
public SCProductVersion fetchByPrimaryKey(long productVersionId)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface SCProductVersionPersistenceproductVersionId - the primary key of the s c product version
null if a s c product version with the primary key could not be found
SystemException - if a system exception occurred
public List<SCProductVersion> findAll()
throws SystemException
findAll in interface SCProductVersionPersistenceSystemException - if a system exception occurred
public List<SCProductVersion> findAll(int start,
int end)
throws SystemException
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 SCProductVersionModelImpl. 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 SCProductVersionPersistencestart - the lower bound of the range of s c product versionsend - the upper bound of the range of s c product versions (not inclusive)
SystemException - if a system exception occurred
public List<SCProductVersion> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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 SCProductVersionModelImpl. 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 SCProductVersionPersistencestart - the lower bound of the range of s c product versionsend - the upper bound of the range of s c product versions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public void removeAll()
throws SystemException
removeAll in interface SCProductVersionPersistenceSystemException - if a system exception occurred
public int countAll()
throws SystemException
countAll in interface SCProductVersionPersistenceSystemException - if a system exception occurred
public List<SCFrameworkVersion> getSCFrameworkVersions(long pk)
throws SystemException
getSCFrameworkVersions in interface SCProductVersionPersistencepk - the primary key of the s c product version
SystemException - if a system exception occurred
public List<SCFrameworkVersion> getSCFrameworkVersions(long pk,
int start,
int end)
throws SystemException
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 SCProductVersionModelImpl. 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.
getSCFrameworkVersions in interface SCProductVersionPersistencepk - the primary key of the s c product versionstart - the lower bound of the range of s c product versionsend - the upper bound of the range of s c product versions (not inclusive)
SystemException - if a system exception occurred
public List<SCFrameworkVersion> getSCFrameworkVersions(long pk,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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 SCProductVersionModelImpl. 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.
getSCFrameworkVersions in interface SCProductVersionPersistencepk - the primary key of the s c product versionstart - the lower bound of the range of s c product versionsend - the upper bound of the range of s c product versions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public int getSCFrameworkVersionsSize(long pk)
throws SystemException
getSCFrameworkVersionsSize in interface SCProductVersionPersistencepk - the primary key of the s c product version
SystemException - if a system exception occurred
public boolean containsSCFrameworkVersion(long pk,
long scFrameworkVersionPK)
throws SystemException
true if the s c framework version is associated with the s c product version.
containsSCFrameworkVersion in interface SCProductVersionPersistencepk - the primary key of the s c product versionscFrameworkVersionPK - the primary key of the s c framework version
true if the s c framework version is associated with the s c product version; false otherwise
SystemException - if a system exception occurred
public boolean containsSCFrameworkVersions(long pk)
throws SystemException
true if the s c product version has any s c framework versions associated with it.
containsSCFrameworkVersions in interface SCProductVersionPersistencepk - the primary key of the s c product version to check for associations with s c framework versions
true if the s c product version has any s c framework versions associated with it; false otherwise
SystemException - if a system exception occurred
public void addSCFrameworkVersion(long pk,
long scFrameworkVersionPK)
throws SystemException
addSCFrameworkVersion in interface SCProductVersionPersistencepk - the primary key of the s c product versionscFrameworkVersionPK - the primary key of the s c framework version
SystemException - if a system exception occurred
public void addSCFrameworkVersion(long pk,
SCFrameworkVersion scFrameworkVersion)
throws SystemException
addSCFrameworkVersion in interface SCProductVersionPersistencepk - the primary key of the s c product versionscFrameworkVersion - the s c framework version
SystemException - if a system exception occurred
public void addSCFrameworkVersions(long pk,
long[] scFrameworkVersionPKs)
throws SystemException
addSCFrameworkVersions in interface SCProductVersionPersistencepk - the primary key of the s c product versionscFrameworkVersionPKs - the primary keys of the s c framework versions
SystemException - if a system exception occurred
public void addSCFrameworkVersions(long pk,
List<SCFrameworkVersion> scFrameworkVersions)
throws SystemException
addSCFrameworkVersions in interface SCProductVersionPersistencepk - the primary key of the s c product versionscFrameworkVersions - the s c framework versions
SystemException - if a system exception occurred
public void clearSCFrameworkVersions(long pk)
throws SystemException
clearSCFrameworkVersions in interface SCProductVersionPersistencepk - the primary key of the s c product version to clear the associated s c framework versions from
SystemException - if a system exception occurred
public void removeSCFrameworkVersion(long pk,
long scFrameworkVersionPK)
throws SystemException
removeSCFrameworkVersion in interface SCProductVersionPersistencepk - the primary key of the s c product versionscFrameworkVersionPK - the primary key of the s c framework version
SystemException - if a system exception occurred
public void removeSCFrameworkVersion(long pk,
SCFrameworkVersion scFrameworkVersion)
throws SystemException
removeSCFrameworkVersion in interface SCProductVersionPersistencepk - the primary key of the s c product versionscFrameworkVersion - the s c framework version
SystemException - if a system exception occurred
public void removeSCFrameworkVersions(long pk,
long[] scFrameworkVersionPKs)
throws SystemException
removeSCFrameworkVersions in interface SCProductVersionPersistencepk - the primary key of the s c product versionscFrameworkVersionPKs - the primary keys of the s c framework versions
SystemException - if a system exception occurred
public void removeSCFrameworkVersions(long pk,
List<SCFrameworkVersion> scFrameworkVersions)
throws SystemException
removeSCFrameworkVersions in interface SCProductVersionPersistencepk - the primary key of the s c product versionscFrameworkVersions - the s c framework versions
SystemException - if a system exception occurred
public void setSCFrameworkVersions(long pk,
long[] scFrameworkVersionPKs)
throws SystemException
setSCFrameworkVersions in interface SCProductVersionPersistencepk - the primary key of the s c product versionscFrameworkVersionPKs - the primary keys of the s c framework versions to be associated with the s c product version
SystemException - if a system exception occurred
public void setSCFrameworkVersions(long pk,
List<SCFrameworkVersion> scFrameworkVersions)
throws SystemException
setSCFrameworkVersions in interface SCProductVersionPersistencepk - the primary key of the s c product versionscFrameworkVersions - the s c framework versions to be associated with the s c product version
SystemException - if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.2.0-ce-b3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||