|
Liferay 7.0-ce-a2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionUtil
@ProviderType public class SCProductVersionUtil
The persistence utility for the s c product version service. This utility wraps com.liferay.portlet.softwarecatalog.service.persistence.impl.SCProductVersionPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
SCProductVersionPersistence,
com.liferay.portlet.softwarecatalog.service.persistence.impl.SCProductVersionPersistenceImpl| Constructor Summary | |
|---|---|
SCProductVersionUtil()
|
|
| Method Summary | |
|---|---|
static void |
addSCFrameworkVersion(long pk,
long scFrameworkVersionPK)
Adds an association between the s c product version and the s c framework version. |
static void |
addSCFrameworkVersion(long pk,
SCFrameworkVersion scFrameworkVersion)
Adds an association between the s c product version and the s c framework version. |
static void |
addSCFrameworkVersions(long pk,
List<SCFrameworkVersion> scFrameworkVersions)
Adds an association between the s c product version and the s c framework versions. |
static void |
addSCFrameworkVersions(long pk,
long[] scFrameworkVersionPKs)
Adds an association between the s c product version and the s c framework versions. |
static void |
cacheResult(List<SCProductVersion> scProductVersions)
Caches the s c product versions in the entity cache if it is enabled. |
static void |
cacheResult(SCProductVersion scProductVersion)
Caches the s c product version in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(SCProductVersion scProductVersion)
|
static void |
clearSCFrameworkVersions(long pk)
Clears all associations between the s c product version and its s c framework versions. |
static boolean |
containsSCFrameworkVersion(long pk,
long scFrameworkVersionPK)
Returns true if the s c framework version is associated with the s c product version. |
static boolean |
containsSCFrameworkVersions(long pk)
Returns true if the s c product version has any s c framework versions associated with it. |
static int |
countAll()
Returns the number of s c product versions. |
static int |
countByDirectDownloadURL(String directDownloadURL)
Returns the number of s c product versions where directDownloadURL = ?. |
static int |
countByProductEntryId(long productEntryId)
Returns the number of s c product versions where productEntryId = ?. |
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static SCProductVersion |
create(long productVersionId)
Creates a new s c product version with the primary key. |
static SCProductVersion |
fetchByDirectDownloadURL(String directDownloadURL)
Returns the s c product version where directDownloadURL = ? or returns null if it could not be found. |
static 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. |
static SCProductVersion |
fetchByPrimaryKey(long productVersionId)
Returns the s c product version with the primary key or returns null if it could not be found. |
static Map<Serializable,SCProductVersion> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
static SCProductVersion |
fetchByProductEntryId_First(long productEntryId,
OrderByComparator<SCProductVersion> orderByComparator)
Returns the first s c product version in the ordered set where productEntryId = ?. |
static SCProductVersion |
fetchByProductEntryId_Last(long productEntryId,
OrderByComparator<SCProductVersion> orderByComparator)
Returns the last s c product version in the ordered set where productEntryId = ?. |
static List<SCProductVersion> |
findAll()
Returns all the s c product versions. |
static List<SCProductVersion> |
findAll(int start,
int end)
Returns a range of all the s c product versions. |
static List<SCProductVersion> |
findAll(int start,
int end,
OrderByComparator<SCProductVersion> orderByComparator)
Returns an ordered range of all the s c product versions. |
static List<SCProductVersion> |
findAll(int start,
int end,
OrderByComparator<SCProductVersion> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the s c product versions. |
static SCProductVersion |
findByDirectDownloadURL(String directDownloadURL)
Returns the s c product version where directDownloadURL = ? or throws a NoSuchProductVersionException if it could not be found. |
static SCProductVersion |
findByPrimaryKey(long productVersionId)
Returns the s c product version with the primary key or throws a NoSuchProductVersionException if it could not be found. |
static SCProductVersion |
findByProductEntryId_First(long productEntryId,
OrderByComparator<SCProductVersion> orderByComparator)
Returns the first s c product version in the ordered set where productEntryId = ?. |
static SCProductVersion |
findByProductEntryId_Last(long productEntryId,
OrderByComparator<SCProductVersion> orderByComparator)
Returns the last s c product version in the ordered set where productEntryId = ?. |
static 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 = ?. |
static List<SCProductVersion> |
findByProductEntryId(long productEntryId)
Returns all the s c product versions where productEntryId = ?. |
static List<SCProductVersion> |
findByProductEntryId(long productEntryId,
int start,
int end)
Returns a range of all the s c product versions where productEntryId = ?. |
static 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 = ?. |
static List<SCProductVersion> |
findByProductEntryId(long productEntryId,
int start,
int end,
OrderByComparator<SCProductVersion> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the s c product versions where productEntryId = ?. |
static List<SCProductVersion> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<SCProductVersion> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<SCProductVersion> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<SCProductVersion> orderByComparator)
|
static SCProductVersionPersistence |
getPersistence()
|
static long[] |
getSCFrameworkVersionPrimaryKeys(long pk)
Returns the primaryKeys of s c framework versions associated with the s c product version. |
static List<SCFrameworkVersion> |
getSCFrameworkVersions(long pk)
Returns all the s c framework versions associated with the s c product version. |
static 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. |
static 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. |
static int |
getSCFrameworkVersionsSize(long pk)
Returns the number of s c framework versions associated with the s c product version. |
static SCProductVersion |
remove(long productVersionId)
Removes the s c product version with the primary key from the database. |
static void |
removeAll()
Removes all the s c product versions from the database. |
static SCProductVersion |
removeByDirectDownloadURL(String directDownloadURL)
Removes the s c product version where directDownloadURL = ? from the database. |
static void |
removeByProductEntryId(long productEntryId)
Removes all the s c product versions where productEntryId = ? from the database. |
static void |
removeSCFrameworkVersion(long pk,
long scFrameworkVersionPK)
Removes the association between the s c product version and the s c framework version. |
static void |
removeSCFrameworkVersion(long pk,
SCFrameworkVersion scFrameworkVersion)
Removes the association between the s c product version and the s c framework version. |
static void |
removeSCFrameworkVersions(long pk,
List<SCFrameworkVersion> scFrameworkVersions)
Removes the association between the s c product version and the s c framework versions. |
static void |
removeSCFrameworkVersions(long pk,
long[] scFrameworkVersionPKs)
Removes the association between the s c product version and the s c framework versions. |
void |
setPersistence(SCProductVersionPersistence persistence)
Deprecated. As of 6.2.0 |
static 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. |
static 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. |
static SCProductVersion |
update(SCProductVersion scProductVersion)
|
static SCProductVersion |
update(SCProductVersion scProductVersion,
ServiceContext serviceContext)
|
static SCProductVersion |
updateImpl(SCProductVersion scProductVersion)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SCProductVersionUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(SCProductVersion scProductVersion)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)public static List<SCProductVersion> findWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<SCProductVersion> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<SCProductVersion> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<SCProductVersion> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static SCProductVersion update(SCProductVersion scProductVersion)
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static SCProductVersion update(SCProductVersion scProductVersion,
ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)public static List<SCProductVersion> findByProductEntryId(long productEntryId)
productEntryId - the product entry ID
public static 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)
public static 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)
public static List<SCProductVersion> findByProductEntryId(long productEntryId,
int start,
int end,
OrderByComparator<SCProductVersion> 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 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)retrieveFromCache - whether to retrieve from the finder cache
public static 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 found
public static SCProductVersion 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 found
public static SCProductVersion 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 found
public static SCProductVersion 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 found
public static SCProductVersion[] 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 foundpublic static void removeByProductEntryId(long productEntryId)
productEntryId - the product entry IDpublic static int countByProductEntryId(long productEntryId)
productEntryId - the product entry ID
public static SCProductVersion findByDirectDownloadURL(String directDownloadURL)
throws NoSuchProductVersionException
NoSuchProductVersionException if it could not be found.
directDownloadURL - the direct download u r l
NoSuchProductVersionException - if a matching s c product version could not be foundpublic static SCProductVersion fetchByDirectDownloadURL(String directDownloadURL)
null if it could not be found. Uses the finder cache.
directDownloadURL - the direct download u r l
null if a matching s c product version could not be found
public static SCProductVersion fetchByDirectDownloadURL(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 retrieve from the finder cache
null if a matching s c product version could not be found
public static SCProductVersion removeByDirectDownloadURL(String directDownloadURL)
throws NoSuchProductVersionException
directDownloadURL - the direct download u r l
NoSuchProductVersionExceptionpublic static int countByDirectDownloadURL(String directDownloadURL)
directDownloadURL - the direct download u r l
public static void cacheResult(SCProductVersion scProductVersion)
scProductVersion - the s c product versionpublic static void cacheResult(List<SCProductVersion> scProductVersions)
scProductVersions - the s c product versionspublic static SCProductVersion create(long productVersionId)
productVersionId - the primary key for the new s c product version
public static SCProductVersion remove(long productVersionId)
throws NoSuchProductVersionException
productVersionId - the primary key of the s c product version
NoSuchProductVersionException - if a s c product version with the primary key could not be foundpublic static SCProductVersion updateImpl(SCProductVersion scProductVersion)
public static SCProductVersion findByPrimaryKey(long productVersionId)
throws NoSuchProductVersionException
NoSuchProductVersionException if it could not be found.
productVersionId - the primary key of the s c product version
NoSuchProductVersionException - if a s c product version with the primary key could not be foundpublic static SCProductVersion fetchByPrimaryKey(long productVersionId)
null if it could not be found.
productVersionId - the primary key of the s c product version
null if a s c product version with the primary key could not be foundpublic static Map<Serializable,SCProductVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<SCProductVersion> findAll()
public static 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)
public static 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)
public static List<SCProductVersion> findAll(int start,
int end,
OrderByComparator<SCProductVersion> 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 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)retrieveFromCache - whether to retrieve from the finder cache
public static void removeAll()
public static int countAll()
public static long[] getSCFrameworkVersionPrimaryKeys(long pk)
pk - the primary key of the s c product version
public static List<SCFrameworkVersion> getSCFrameworkVersions(long pk)
pk - the primary key of the s c product version
public static 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)
public static 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)
public static int getSCFrameworkVersionsSize(long pk)
pk - the primary key of the s c product version
public static boolean 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 version
true if the s c framework version is associated with the s c product version; false otherwisepublic static boolean 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 versions
true if the s c product version has any s c framework versions associated with it; false otherwise
public static void addSCFrameworkVersion(long pk,
long scFrameworkVersionPK)
pk - the primary key of the s c product versionscFrameworkVersionPK - the primary key of the s c framework version
public static void addSCFrameworkVersion(long pk,
SCFrameworkVersion scFrameworkVersion)
pk - the primary key of the s c product versionscFrameworkVersion - the s c framework version
public static void addSCFrameworkVersions(long pk,
long[] scFrameworkVersionPKs)
pk - the primary key of the s c product versionscFrameworkVersionPKs - the primary keys of the s c framework versions
public static void addSCFrameworkVersions(long pk,
List<SCFrameworkVersion> scFrameworkVersions)
pk - the primary key of the s c product versionscFrameworkVersions - the s c framework versionspublic static void clearSCFrameworkVersions(long pk)
pk - the primary key of the s c product version to clear the associated s c framework versions from
public static void removeSCFrameworkVersion(long pk,
long scFrameworkVersionPK)
pk - the primary key of the s c product versionscFrameworkVersionPK - the primary key of the s c framework version
public static void removeSCFrameworkVersion(long pk,
SCFrameworkVersion scFrameworkVersion)
pk - the primary key of the s c product versionscFrameworkVersion - the s c framework version
public static void removeSCFrameworkVersions(long pk,
long[] scFrameworkVersionPKs)
pk - the primary key of the s c product versionscFrameworkVersionPKs - the primary keys of the s c framework versions
public static void removeSCFrameworkVersions(long pk,
List<SCFrameworkVersion> scFrameworkVersions)
pk - the primary key of the s c product versionscFrameworkVersions - the s c framework versions
public static void 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 version
public static void setSCFrameworkVersions(long pk,
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 versionpublic static SCProductVersionPersistence getPersistence()
@Deprecated public void setPersistence(SCProductVersionPersistence persistence)
|
Liferay 7.0-ce-a2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||