@ProviderType public interface SCProductVersionPersistence extends BasePersistence<SCProductVersion>
Caching information and settings can be found in portal.properties
com.liferay.portlet.softwarecatalog.service.persistence.impl.SCProductVersionPersistenceImpl,
SCProductVersionUtil| Modifier and Type | Method and Description |
|---|---|
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,
java.util.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 |
cacheResult(java.util.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.
|
void |
clearSCFrameworkVersions(long pk)
Clears all associations between the s c product version and its s c framework versions.
|
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(java.lang.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.
|
SCProductVersion |
fetchByDirectDownloadURL(java.lang.String directDownloadURL)
Returns the s c product version where directDownloadURL = ? or returns
null if it could not be found. |
SCProductVersion |
fetchByDirectDownloadURL(java.lang.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. |
java.util.Map<java.io.Serializable,SCProductVersion> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
SCProductVersion |
fetchByProductEntryId_First(long productEntryId,
OrderByComparator<SCProductVersion> orderByComparator)
Returns the first s c product version in the ordered set where productEntryId = ?.
|
SCProductVersion |
fetchByProductEntryId_Last(long productEntryId,
OrderByComparator<SCProductVersion> orderByComparator)
Returns the last s c product version in the ordered set where productEntryId = ?.
|
java.util.List<SCProductVersion> |
findAll()
Returns all the s c product versions.
|
java.util.List<SCProductVersion> |
findAll(int start,
int end)
Returns a range of all the s c product versions.
|
java.util.List<SCProductVersion> |
findAll(int start,
int end,
OrderByComparator<SCProductVersion> orderByComparator)
Returns an ordered range of all the s c product versions.
|
SCProductVersion |
findByDirectDownloadURL(java.lang.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 |
findByProductEntryId_First(long productEntryId,
OrderByComparator<SCProductVersion> orderByComparator)
Returns the first s c product version in the ordered set where productEntryId = ?.
|
SCProductVersion |
findByProductEntryId_Last(long productEntryId,
OrderByComparator<SCProductVersion> orderByComparator)
Returns the last s c product version in the ordered set where productEntryId = ?.
|
SCProductVersion[] |
findByProductEntryId_PrevAndNext(long productVersionId,
long productEntryId,
OrderByComparator<SCProductVersion> orderByComparator)
Returns the s c product versions before and after the current s c product version in the ordered set where productEntryId = ?.
|
java.util.List<SCProductVersion> |
findByProductEntryId(long productEntryId)
Returns all the s c product versions where productEntryId = ?.
|
java.util.List<SCProductVersion> |
findByProductEntryId(long productEntryId,
int start,
int end)
Returns a range of all the s c product versions where productEntryId = ?.
|
java.util.List<SCProductVersion> |
findByProductEntryId(long productEntryId,
int start,
int end,
OrderByComparator<SCProductVersion> orderByComparator)
Returns an ordered range of all the s c product versions where productEntryId = ?.
|
long[] |
getSCFrameworkVersionPrimaryKeys(long pk)
Returns the primaryKeys of s c framework versions associated with the s c product version.
|
java.util.List<SCFrameworkVersion> |
getSCFrameworkVersions(long pk)
Returns all the s c framework versions associated with the s c product version.
|
java.util.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.
|
java.util.List<SCFrameworkVersion> |
getSCFrameworkVersions(long pk,
int start,
int end,
OrderByComparator<SCFrameworkVersion> 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.
|
void |
removeAll()
Removes all the s c product versions from the database.
|
SCProductVersion |
removeByDirectDownloadURL(java.lang.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.
|
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,
java.util.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,
java.util.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.
|
SCProductVersion |
updateImpl(SCProductVersion scProductVersion) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, updatejava.util.List<SCProductVersion> findByProductEntryId(long productEntryId)
productEntryId - the product entry IDjava.util.List<SCProductVersion> 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 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.
productEntryId - 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)java.util.List<SCProductVersion> findByProductEntryId(long productEntryId, int start, int end, OrderByComparator<SCProductVersion> 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 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.
productEntryId - 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)SCProductVersion findByProductEntryId_First(long productEntryId, OrderByComparator<SCProductVersion> orderByComparator) throws NoSuchProductVersionException
productEntryId - the product entry IDorderByComparator - the comparator to order the set by (optionally null)NoSuchProductVersionException - if a matching s c product version could not be foundSCProductVersion fetchByProductEntryId_First(long productEntryId, OrderByComparator<SCProductVersion> orderByComparator)
productEntryId - the product entry IDorderByComparator - the comparator to order the set by (optionally null)null if a matching s c product version could not be foundSCProductVersion findByProductEntryId_Last(long productEntryId, OrderByComparator<SCProductVersion> orderByComparator) throws NoSuchProductVersionException
productEntryId - the product entry IDorderByComparator - the comparator to order the set by (optionally null)NoSuchProductVersionException - if a matching s c product version could not be foundSCProductVersion fetchByProductEntryId_Last(long productEntryId, OrderByComparator<SCProductVersion> orderByComparator)
productEntryId - the product entry IDorderByComparator - the comparator to order the set by (optionally null)null if a matching s c product version could not be foundSCProductVersion[] findByProductEntryId_PrevAndNext(long productVersionId, long productEntryId, OrderByComparator<SCProductVersion> orderByComparator) throws NoSuchProductVersionException
productVersionId - 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 foundvoid removeByProductEntryId(long productEntryId)
productEntryId - the product entry IDint countByProductEntryId(long productEntryId)
productEntryId - the product entry IDSCProductVersion findByDirectDownloadURL(java.lang.String directDownloadURL) throws NoSuchProductVersionException
NoSuchProductVersionException if it could not be found.directDownloadURL - the direct download u r lNoSuchProductVersionException - if a matching s c product version could not be foundSCProductVersion fetchByDirectDownloadURL(java.lang.String directDownloadURL)
null if it could not be found. Uses the finder cache.directDownloadURL - the direct download u r lnull if a matching s c product version could not be foundSCProductVersion fetchByDirectDownloadURL(java.lang.String directDownloadURL, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.directDownloadURL - the direct download u r lretrieveFromCache - whether to use the finder cachenull if a matching s c product version could not be foundSCProductVersion removeByDirectDownloadURL(java.lang.String directDownloadURL) throws NoSuchProductVersionException
directDownloadURL - the direct download u r lNoSuchProductVersionExceptionint countByDirectDownloadURL(java.lang.String directDownloadURL)
directDownloadURL - the direct download u r lvoid cacheResult(SCProductVersion scProductVersion)
scProductVersion - the s c product versionvoid cacheResult(java.util.List<SCProductVersion> scProductVersions)
scProductVersions - the s c product versionsSCProductVersion create(long productVersionId)
productVersionId - the primary key for the new s c product versionSCProductVersion remove(long productVersionId) throws NoSuchProductVersionException
productVersionId - the primary key of the s c product versionNoSuchProductVersionException - if a s c product version with the primary key could not be foundSCProductVersion updateImpl(SCProductVersion scProductVersion)
SCProductVersion findByPrimaryKey(long productVersionId) throws NoSuchProductVersionException
NoSuchProductVersionException if it could not be found.productVersionId - the primary key of the s c product versionNoSuchProductVersionException - if a s c product version with the primary key could not be foundSCProductVersion fetchByPrimaryKey(long productVersionId)
null if it could not be found.productVersionId - the primary key of the s c product versionnull if a s c product version with the primary key could not be foundjava.util.Map<java.io.Serializable,SCProductVersion> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<SCProductVersion>java.util.List<SCProductVersion> findAll()
java.util.List<SCProductVersion> 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 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.
start - the lower bound of the range of s c product versionsend - the upper bound of the range of s c product versions (not inclusive)java.util.List<SCProductVersion> findAll(int start, int end, OrderByComparator<SCProductVersion> 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 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.
start - 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)void removeAll()
int countAll()
long[] getSCFrameworkVersionPrimaryKeys(long pk)
pk - the primary key of the s c product versionjava.util.List<SCFrameworkVersion> getSCFrameworkVersions(long pk)
pk - the primary key of the s c product versionjava.util.List<SCFrameworkVersion> getSCFrameworkVersions(long pk, 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 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.
pk - 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)java.util.List<SCFrameworkVersion> getSCFrameworkVersions(long pk, int start, int end, OrderByComparator<SCFrameworkVersion> 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 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.
pk - 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)int getSCFrameworkVersionsSize(long pk)
pk - the primary key of the s c product versionboolean containsSCFrameworkVersion(long pk,
long scFrameworkVersionPK)
true if the s c framework version is associated with the s c product version.pk - the primary key of the s c product versionscFrameworkVersionPK - the primary key of the s c framework versiontrue if the s c framework version is associated with the s c product version; false otherwiseboolean containsSCFrameworkVersions(long pk)
true if the s c product version has any s c framework versions associated with it.pk - the primary key of the s c product version to check for associations with s c framework versionstrue if the s c product version has any s c framework versions associated with it; false otherwisevoid addSCFrameworkVersion(long pk,
long scFrameworkVersionPK)
pk - the primary key of the s c product versionscFrameworkVersionPK - the primary key of the s c framework versionvoid addSCFrameworkVersion(long pk,
SCFrameworkVersion scFrameworkVersion)
pk - the primary key of the s c product versionscFrameworkVersion - the s c framework versionvoid addSCFrameworkVersions(long pk,
long[] scFrameworkVersionPKs)
pk - the primary key of the s c product versionscFrameworkVersionPKs - the primary keys of the s c framework versionsvoid addSCFrameworkVersions(long pk,
java.util.List<SCFrameworkVersion> scFrameworkVersions)
pk - the primary key of the s c product versionscFrameworkVersions - the s c framework versionsvoid clearSCFrameworkVersions(long pk)
pk - the primary key of the s c product version to clear the associated s c framework versions fromvoid removeSCFrameworkVersion(long pk,
long scFrameworkVersionPK)
pk - the primary key of the s c product versionscFrameworkVersionPK - the primary key of the s c framework versionvoid removeSCFrameworkVersion(long pk,
SCFrameworkVersion scFrameworkVersion)
pk - the primary key of the s c product versionscFrameworkVersion - the s c framework versionvoid removeSCFrameworkVersions(long pk,
long[] scFrameworkVersionPKs)
pk - the primary key of the s c product versionscFrameworkVersionPKs - the primary keys of the s c framework versionsvoid removeSCFrameworkVersions(long pk,
java.util.List<SCFrameworkVersion> scFrameworkVersions)
pk - the primary key of the s c product versionscFrameworkVersions - the s c framework versionsvoid setSCFrameworkVersions(long pk,
long[] scFrameworkVersionPKs)
pk - 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 versionvoid setSCFrameworkVersions(long pk,
java.util.List<SCFrameworkVersion> scFrameworkVersions)
pk - the primary key of the s c product versionscFrameworkVersions - the s c framework versions to be associated with the s c product version