|
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.SCProductEntryUtil
@ProviderType public class SCProductEntryUtil
The persistence utility for the s c product entry service. This utility wraps com.liferay.portlet.softwarecatalog.service.persistence.impl.SCProductEntryPersistenceImpl 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
SCProductEntryPersistence,
com.liferay.portlet.softwarecatalog.service.persistence.impl.SCProductEntryPersistenceImpl| Constructor Summary | |
|---|---|
SCProductEntryUtil()
|
|
| Method Summary | |
|---|---|
static void |
addSCLicense(long pk,
long scLicensePK)
Adds an association between the s c product entry and the s c license. |
static void |
addSCLicense(long pk,
SCLicense scLicense)
Adds an association between the s c product entry and the s c license. |
static void |
addSCLicenses(long pk,
List<SCLicense> scLicenses)
Adds an association between the s c product entry and the s c licenses. |
static void |
addSCLicenses(long pk,
long[] scLicensePKs)
Adds an association between the s c product entry and the s c licenses. |
static void |
cacheResult(List<SCProductEntry> scProductEntries)
Caches the s c product entries in the entity cache if it is enabled. |
static void |
cacheResult(SCProductEntry scProductEntry)
Caches the s c product entry in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(SCProductEntry scProductEntry)
|
static void |
clearSCLicenses(long pk)
Clears all associations between the s c product entry and its s c licenses. |
static boolean |
containsSCLicense(long pk,
long scLicensePK)
Returns true if the s c license is associated with the s c product entry. |
static boolean |
containsSCLicenses(long pk)
Returns true if the s c product entry has any s c licenses associated with it. |
static int |
countAll()
Returns the number of s c product entries. |
static int |
countByCompanyId(long companyId)
Returns the number of s c product entries where companyId = ?. |
static int |
countByG_U(long groupId,
long userId)
Returns the number of s c product entries where groupId = ? and userId = ?. |
static int |
countByGroupId(long groupId)
Returns the number of s c product entries where groupId = ?. |
static int |
countByRG_RA(String repoGroupId,
String repoArtifactId)
Returns the number of s c product entries where repoGroupId = ? and repoArtifactId = ?. |
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static SCProductEntry |
create(long productEntryId)
Creates a new s c product entry with the primary key. |
static SCProductEntry |
fetchByCompanyId_First(long companyId,
OrderByComparator<SCProductEntry> orderByComparator)
Returns the first s c product entry in the ordered set where companyId = ?. |
static SCProductEntry |
fetchByCompanyId_Last(long companyId,
OrderByComparator<SCProductEntry> orderByComparator)
Returns the last s c product entry in the ordered set where companyId = ?. |
static SCProductEntry |
fetchByG_U_First(long groupId,
long userId,
OrderByComparator<SCProductEntry> orderByComparator)
Returns the first s c product entry in the ordered set where groupId = ? and userId = ?. |
static SCProductEntry |
fetchByG_U_Last(long groupId,
long userId,
OrderByComparator<SCProductEntry> orderByComparator)
Returns the last s c product entry in the ordered set where groupId = ? and userId = ?. |
static SCProductEntry |
fetchByGroupId_First(long groupId,
OrderByComparator<SCProductEntry> orderByComparator)
Returns the first s c product entry in the ordered set where groupId = ?. |
static SCProductEntry |
fetchByGroupId_Last(long groupId,
OrderByComparator<SCProductEntry> orderByComparator)
Returns the last s c product entry in the ordered set where groupId = ?. |
static SCProductEntry |
fetchByPrimaryKey(long productEntryId)
Returns the s c product entry with the primary key or returns null if it could not be found. |
static Map<Serializable,SCProductEntry> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
static SCProductEntry |
fetchByRG_RA(String repoGroupId,
String repoArtifactId)
Returns the s c product entry where repoGroupId = ? and repoArtifactId = ? or returns null if it could not be found. |
static SCProductEntry |
fetchByRG_RA(String repoGroupId,
String repoArtifactId,
boolean retrieveFromCache)
Returns the s c product entry where repoGroupId = ? and repoArtifactId = ? or returns null if it could not be found, optionally using the finder cache. |
static int |
filterCountByG_U(long groupId,
long userId)
Returns the number of s c product entries that the user has permission to view where groupId = ? and userId = ?. |
static int |
filterCountByGroupId(long groupId)
Returns the number of s c product entries that the user has permission to view where groupId = ?. |
static SCProductEntry[] |
filterFindByG_U_PrevAndNext(long productEntryId,
long groupId,
long userId,
OrderByComparator<SCProductEntry> orderByComparator)
Returns the s c product entries before and after the current s c product entry in the ordered set of s c product entries that the user has permission to view where groupId = ? and userId = ?. |
static List<SCProductEntry> |
filterFindByG_U(long groupId,
long userId)
Returns all the s c product entries that the user has permission to view where groupId = ? and userId = ?. |
static List<SCProductEntry> |
filterFindByG_U(long groupId,
long userId,
int start,
int end)
Returns a range of all the s c product entries that the user has permission to view where groupId = ? and userId = ?. |
static List<SCProductEntry> |
filterFindByG_U(long groupId,
long userId,
int start,
int end,
OrderByComparator<SCProductEntry> orderByComparator)
Returns an ordered range of all the s c product entries that the user has permissions to view where groupId = ? and userId = ?. |
static SCProductEntry[] |
filterFindByGroupId_PrevAndNext(long productEntryId,
long groupId,
OrderByComparator<SCProductEntry> orderByComparator)
Returns the s c product entries before and after the current s c product entry in the ordered set of s c product entries that the user has permission to view where groupId = ?. |
static List<SCProductEntry> |
filterFindByGroupId(long groupId)
Returns all the s c product entries that the user has permission to view where groupId = ?. |
static List<SCProductEntry> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the s c product entries that the user has permission to view where groupId = ?. |
static List<SCProductEntry> |
filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator<SCProductEntry> orderByComparator)
Returns an ordered range of all the s c product entries that the user has permissions to view where groupId = ?. |
static List<SCProductEntry> |
findAll()
Returns all the s c product entries. |
static List<SCProductEntry> |
findAll(int start,
int end)
Returns a range of all the s c product entries. |
static List<SCProductEntry> |
findAll(int start,
int end,
OrderByComparator<SCProductEntry> orderByComparator)
Returns an ordered range of all the s c product entries. |
static List<SCProductEntry> |
findAll(int start,
int end,
OrderByComparator<SCProductEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the s c product entries. |
static SCProductEntry |
findByCompanyId_First(long companyId,
OrderByComparator<SCProductEntry> orderByComparator)
Returns the first s c product entry in the ordered set where companyId = ?. |
static SCProductEntry |
findByCompanyId_Last(long companyId,
OrderByComparator<SCProductEntry> orderByComparator)
Returns the last s c product entry in the ordered set where companyId = ?. |
static SCProductEntry[] |
findByCompanyId_PrevAndNext(long productEntryId,
long companyId,
OrderByComparator<SCProductEntry> orderByComparator)
Returns the s c product entries before and after the current s c product entry in the ordered set where companyId = ?. |
static List<SCProductEntry> |
findByCompanyId(long companyId)
Returns all the s c product entries where companyId = ?. |
static List<SCProductEntry> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the s c product entries where companyId = ?. |
static List<SCProductEntry> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<SCProductEntry> orderByComparator)
Returns an ordered range of all the s c product entries where companyId = ?. |
static List<SCProductEntry> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<SCProductEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the s c product entries where companyId = ?. |
static SCProductEntry |
findByG_U_First(long groupId,
long userId,
OrderByComparator<SCProductEntry> orderByComparator)
Returns the first s c product entry in the ordered set where groupId = ? and userId = ?. |
static SCProductEntry |
findByG_U_Last(long groupId,
long userId,
OrderByComparator<SCProductEntry> orderByComparator)
Returns the last s c product entry in the ordered set where groupId = ? and userId = ?. |
static SCProductEntry[] |
findByG_U_PrevAndNext(long productEntryId,
long groupId,
long userId,
OrderByComparator<SCProductEntry> orderByComparator)
Returns the s c product entries before and after the current s c product entry in the ordered set where groupId = ? and userId = ?. |
static List<SCProductEntry> |
findByG_U(long groupId,
long userId)
Returns all the s c product entries where groupId = ? and userId = ?. |
static List<SCProductEntry> |
findByG_U(long groupId,
long userId,
int start,
int end)
Returns a range of all the s c product entries where groupId = ? and userId = ?. |
static List<SCProductEntry> |
findByG_U(long groupId,
long userId,
int start,
int end,
OrderByComparator<SCProductEntry> orderByComparator)
Returns an ordered range of all the s c product entries where groupId = ? and userId = ?. |
static List<SCProductEntry> |
findByG_U(long groupId,
long userId,
int start,
int end,
OrderByComparator<SCProductEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the s c product entries where groupId = ? and userId = ?. |
static SCProductEntry |
findByGroupId_First(long groupId,
OrderByComparator<SCProductEntry> orderByComparator)
Returns the first s c product entry in the ordered set where groupId = ?. |
static SCProductEntry |
findByGroupId_Last(long groupId,
OrderByComparator<SCProductEntry> orderByComparator)
Returns the last s c product entry in the ordered set where groupId = ?. |
static SCProductEntry[] |
findByGroupId_PrevAndNext(long productEntryId,
long groupId,
OrderByComparator<SCProductEntry> orderByComparator)
Returns the s c product entries before and after the current s c product entry in the ordered set where groupId = ?. |
static List<SCProductEntry> |
findByGroupId(long groupId)
Returns all the s c product entries where groupId = ?. |
static List<SCProductEntry> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the s c product entries where groupId = ?. |
static List<SCProductEntry> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<SCProductEntry> orderByComparator)
Returns an ordered range of all the s c product entries where groupId = ?. |
static List<SCProductEntry> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<SCProductEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the s c product entries where groupId = ?. |
static SCProductEntry |
findByPrimaryKey(long productEntryId)
Returns the s c product entry with the primary key or throws a NoSuchProductEntryException if it could not be found. |
static SCProductEntry |
findByRG_RA(String repoGroupId,
String repoArtifactId)
Returns the s c product entry where repoGroupId = ? and repoArtifactId = ? or throws a NoSuchProductEntryException if it could not be found. |
static List<SCProductEntry> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<SCProductEntry> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<SCProductEntry> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<SCProductEntry> orderByComparator)
|
static Set<String> |
getBadColumnNames()
|
static SCProductEntryPersistence |
getPersistence()
|
static long[] |
getSCLicensePrimaryKeys(long pk)
Returns the primaryKeys of s c licenses associated with the s c product entry. |
static List<SCLicense> |
getSCLicenses(long pk)
Returns all the s c licenses associated with the s c product entry. |
static List<SCLicense> |
getSCLicenses(long pk,
int start,
int end)
Returns a range of all the s c licenses associated with the s c product entry. |
static List<SCLicense> |
getSCLicenses(long pk,
int start,
int end,
OrderByComparator<SCLicense> orderByComparator)
Returns an ordered range of all the s c licenses associated with the s c product entry. |
static int |
getSCLicensesSize(long pk)
Returns the number of s c licenses associated with the s c product entry. |
static SCProductEntry |
remove(long productEntryId)
Removes the s c product entry with the primary key from the database. |
static void |
removeAll()
Removes all the s c product entries from the database. |
static void |
removeByCompanyId(long companyId)
Removes all the s c product entries where companyId = ? from the database. |
static void |
removeByG_U(long groupId,
long userId)
Removes all the s c product entries where groupId = ? and userId = ? from the database. |
static void |
removeByGroupId(long groupId)
Removes all the s c product entries where groupId = ? from the database. |
static SCProductEntry |
removeByRG_RA(String repoGroupId,
String repoArtifactId)
Removes the s c product entry where repoGroupId = ? and repoArtifactId = ? from the database. |
static void |
removeSCLicense(long pk,
long scLicensePK)
Removes the association between the s c product entry and the s c license. |
static void |
removeSCLicense(long pk,
SCLicense scLicense)
Removes the association between the s c product entry and the s c license. |
static void |
removeSCLicenses(long pk,
List<SCLicense> scLicenses)
Removes the association between the s c product entry and the s c licenses. |
static void |
removeSCLicenses(long pk,
long[] scLicensePKs)
Removes the association between the s c product entry and the s c licenses. |
void |
setPersistence(SCProductEntryPersistence persistence)
Deprecated. As of 6.2.0 |
static void |
setSCLicenses(long pk,
List<SCLicense> scLicenses)
Sets the s c licenses associated with the s c product entry, removing and adding associations as necessary. |
static void |
setSCLicenses(long pk,
long[] scLicensePKs)
Sets the s c licenses associated with the s c product entry, removing and adding associations as necessary. |
static SCProductEntry |
update(SCProductEntry scProductEntry)
|
static SCProductEntry |
update(SCProductEntry scProductEntry,
ServiceContext serviceContext)
|
static SCProductEntry |
updateImpl(SCProductEntry scProductEntry)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SCProductEntryUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(SCProductEntry scProductEntry)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)public static List<SCProductEntry> findWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<SCProductEntry> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<SCProductEntry> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<SCProductEntry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static SCProductEntry update(SCProductEntry scProductEntry)
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static SCProductEntry update(SCProductEntry scProductEntry,
ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)public static List<SCProductEntry> findByGroupId(long groupId)
groupId - the group ID
public static List<SCProductEntry> findByGroupId(long groupId,
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 SCProductEntryModelImpl. 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.
groupId - the group IDstart - the lower bound of the range of s c product entriesend - the upper bound of the range of s c product entries (not inclusive)
public static List<SCProductEntry> findByGroupId(long groupId,
int start,
int end,
OrderByComparator<SCProductEntry> 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 SCProductEntryModelImpl. 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.
groupId - the group IDstart - the lower bound of the range of s c product entriesend - the upper bound of the range of s c product entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static List<SCProductEntry> findByGroupId(long groupId,
int start,
int end,
OrderByComparator<SCProductEntry> 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 SCProductEntryModelImpl. 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.
groupId - the group IDstart - the lower bound of the range of s c product entriesend - the upper bound of the range of s c product entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public static SCProductEntry findByGroupId_First(long groupId,
OrderByComparator<SCProductEntry> orderByComparator)
throws NoSuchProductEntryException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchProductEntryException - if a matching s c product entry could not be found
public static SCProductEntry fetchByGroupId_First(long groupId,
OrderByComparator<SCProductEntry> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching s c product entry could not be found
public static SCProductEntry findByGroupId_Last(long groupId,
OrderByComparator<SCProductEntry> orderByComparator)
throws NoSuchProductEntryException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchProductEntryException - if a matching s c product entry could not be found
public static SCProductEntry fetchByGroupId_Last(long groupId,
OrderByComparator<SCProductEntry> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching s c product entry could not be found
public static SCProductEntry[] findByGroupId_PrevAndNext(long productEntryId,
long groupId,
OrderByComparator<SCProductEntry> orderByComparator)
throws NoSuchProductEntryException
productEntryId - the primary key of the current s c product entrygroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchProductEntryException - if a s c product entry with the primary key could not be foundpublic static List<SCProductEntry> filterFindByGroupId(long groupId)
groupId - the group ID
public static List<SCProductEntry> filterFindByGroupId(long groupId,
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 SCProductEntryModelImpl. 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.
groupId - the group IDstart - the lower bound of the range of s c product entriesend - the upper bound of the range of s c product entries (not inclusive)
public static List<SCProductEntry> filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator<SCProductEntry> 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 SCProductEntryModelImpl. 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.
groupId - the group IDstart - the lower bound of the range of s c product entriesend - the upper bound of the range of s c product entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static SCProductEntry[] filterFindByGroupId_PrevAndNext(long productEntryId,
long groupId,
OrderByComparator<SCProductEntry> orderByComparator)
throws NoSuchProductEntryException
productEntryId - the primary key of the current s c product entrygroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchProductEntryException - if a s c product entry with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId - the group IDpublic static int countByGroupId(long groupId)
groupId - the group ID
public static int filterCountByGroupId(long groupId)
groupId - the group ID
public static List<SCProductEntry> findByCompanyId(long companyId)
companyId - the company ID
public static List<SCProductEntry> findByCompanyId(long companyId,
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 SCProductEntryModelImpl. 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.
companyId - the company IDstart - the lower bound of the range of s c product entriesend - the upper bound of the range of s c product entries (not inclusive)
public static List<SCProductEntry> findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<SCProductEntry> 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 SCProductEntryModelImpl. 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.
companyId - the company IDstart - the lower bound of the range of s c product entriesend - the upper bound of the range of s c product entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static List<SCProductEntry> findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<SCProductEntry> 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 SCProductEntryModelImpl. 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.
companyId - the company IDstart - the lower bound of the range of s c product entriesend - the upper bound of the range of s c product entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public static SCProductEntry findByCompanyId_First(long companyId,
OrderByComparator<SCProductEntry> orderByComparator)
throws NoSuchProductEntryException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchProductEntryException - if a matching s c product entry could not be found
public static SCProductEntry fetchByCompanyId_First(long companyId,
OrderByComparator<SCProductEntry> orderByComparator)
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching s c product entry could not be found
public static SCProductEntry findByCompanyId_Last(long companyId,
OrderByComparator<SCProductEntry> orderByComparator)
throws NoSuchProductEntryException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchProductEntryException - if a matching s c product entry could not be found
public static SCProductEntry fetchByCompanyId_Last(long companyId,
OrderByComparator<SCProductEntry> orderByComparator)
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching s c product entry could not be found
public static SCProductEntry[] findByCompanyId_PrevAndNext(long productEntryId,
long companyId,
OrderByComparator<SCProductEntry> orderByComparator)
throws NoSuchProductEntryException
productEntryId - the primary key of the current s c product entrycompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchProductEntryException - if a s c product entry with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId - the company IDpublic static int countByCompanyId(long companyId)
companyId - the company ID
public static List<SCProductEntry> findByG_U(long groupId,
long userId)
groupId - the group IDuserId - the user ID
public static List<SCProductEntry> findByG_U(long groupId,
long userId,
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 SCProductEntryModelImpl. 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.
groupId - the group IDuserId - the user IDstart - the lower bound of the range of s c product entriesend - the upper bound of the range of s c product entries (not inclusive)
public static List<SCProductEntry> findByG_U(long groupId,
long userId,
int start,
int end,
OrderByComparator<SCProductEntry> 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 SCProductEntryModelImpl. 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.
groupId - the group IDuserId - the user IDstart - the lower bound of the range of s c product entriesend - the upper bound of the range of s c product entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static List<SCProductEntry> findByG_U(long groupId,
long userId,
int start,
int end,
OrderByComparator<SCProductEntry> 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 SCProductEntryModelImpl. 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.
groupId - the group IDuserId - the user IDstart - the lower bound of the range of s c product entriesend - the upper bound of the range of s c product entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public static SCProductEntry findByG_U_First(long groupId,
long userId,
OrderByComparator<SCProductEntry> orderByComparator)
throws NoSuchProductEntryException
groupId - the group IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchProductEntryException - if a matching s c product entry could not be found
public static SCProductEntry fetchByG_U_First(long groupId,
long userId,
OrderByComparator<SCProductEntry> orderByComparator)
groupId - the group IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching s c product entry could not be found
public static SCProductEntry findByG_U_Last(long groupId,
long userId,
OrderByComparator<SCProductEntry> orderByComparator)
throws NoSuchProductEntryException
groupId - the group IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchProductEntryException - if a matching s c product entry could not be found
public static SCProductEntry fetchByG_U_Last(long groupId,
long userId,
OrderByComparator<SCProductEntry> orderByComparator)
groupId - the group IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching s c product entry could not be found
public static SCProductEntry[] findByG_U_PrevAndNext(long productEntryId,
long groupId,
long userId,
OrderByComparator<SCProductEntry> orderByComparator)
throws NoSuchProductEntryException
productEntryId - the primary key of the current s c product entrygroupId - the group IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchProductEntryException - if a s c product entry with the primary key could not be found
public static List<SCProductEntry> filterFindByG_U(long groupId,
long userId)
groupId - the group IDuserId - the user ID
public static List<SCProductEntry> filterFindByG_U(long groupId,
long userId,
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 SCProductEntryModelImpl. 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.
groupId - the group IDuserId - the user IDstart - the lower bound of the range of s c product entriesend - the upper bound of the range of s c product entries (not inclusive)
public static List<SCProductEntry> filterFindByG_U(long groupId,
long userId,
int start,
int end,
OrderByComparator<SCProductEntry> 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 SCProductEntryModelImpl. 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.
groupId - the group IDuserId - the user IDstart - the lower bound of the range of s c product entriesend - the upper bound of the range of s c product entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static SCProductEntry[] filterFindByG_U_PrevAndNext(long productEntryId,
long groupId,
long userId,
OrderByComparator<SCProductEntry> orderByComparator)
throws NoSuchProductEntryException
productEntryId - the primary key of the current s c product entrygroupId - the group IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchProductEntryException - if a s c product entry with the primary key could not be found
public static void removeByG_U(long groupId,
long userId)
groupId - the group IDuserId - the user ID
public static int countByG_U(long groupId,
long userId)
groupId - the group IDuserId - the user ID
public static int filterCountByG_U(long groupId,
long userId)
groupId - the group IDuserId - the user ID
public static SCProductEntry findByRG_RA(String repoGroupId,
String repoArtifactId)
throws NoSuchProductEntryException
NoSuchProductEntryException if it could not be found.
repoGroupId - the repo group IDrepoArtifactId - the repo artifact ID
NoSuchProductEntryException - if a matching s c product entry could not be found
public static SCProductEntry fetchByRG_RA(String repoGroupId,
String repoArtifactId)
null if it could not be found. Uses the finder cache.
repoGroupId - the repo group IDrepoArtifactId - the repo artifact ID
null if a matching s c product entry could not be found
public static SCProductEntry fetchByRG_RA(String repoGroupId,
String repoArtifactId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
repoGroupId - the repo group IDrepoArtifactId - the repo artifact IDretrieveFromCache - whether to retrieve from the finder cache
null if a matching s c product entry could not be found
public static SCProductEntry removeByRG_RA(String repoGroupId,
String repoArtifactId)
throws NoSuchProductEntryException
repoGroupId - the repo group IDrepoArtifactId - the repo artifact ID
NoSuchProductEntryException
public static int countByRG_RA(String repoGroupId,
String repoArtifactId)
repoGroupId - the repo group IDrepoArtifactId - the repo artifact ID
public static void cacheResult(SCProductEntry scProductEntry)
scProductEntry - the s c product entrypublic static void cacheResult(List<SCProductEntry> scProductEntries)
scProductEntries - the s c product entriespublic static SCProductEntry create(long productEntryId)
productEntryId - the primary key for the new s c product entry
public static SCProductEntry remove(long productEntryId)
throws NoSuchProductEntryException
productEntryId - the primary key of the s c product entry
NoSuchProductEntryException - if a s c product entry with the primary key could not be foundpublic static SCProductEntry updateImpl(SCProductEntry scProductEntry)
public static SCProductEntry findByPrimaryKey(long productEntryId)
throws NoSuchProductEntryException
NoSuchProductEntryException if it could not be found.
productEntryId - the primary key of the s c product entry
NoSuchProductEntryException - if a s c product entry with the primary key could not be foundpublic static SCProductEntry fetchByPrimaryKey(long productEntryId)
null if it could not be found.
productEntryId - the primary key of the s c product entry
null if a s c product entry with the primary key could not be foundpublic static Map<Serializable,SCProductEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<SCProductEntry> findAll()
public static List<SCProductEntry> 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 SCProductEntryModelImpl. 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 entriesend - the upper bound of the range of s c product entries (not inclusive)
public static List<SCProductEntry> findAll(int start,
int end,
OrderByComparator<SCProductEntry> 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 SCProductEntryModelImpl. 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 entriesend - the upper bound of the range of s c product entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static List<SCProductEntry> findAll(int start,
int end,
OrderByComparator<SCProductEntry> 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 SCProductEntryModelImpl. 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 entriesend - the upper bound of the range of s c product entries (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[] getSCLicensePrimaryKeys(long pk)
pk - the primary key of the s c product entry
public static List<SCLicense> getSCLicenses(long pk)
pk - the primary key of the s c product entry
public static List<SCLicense> getSCLicenses(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 SCProductEntryModelImpl. 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 entrystart - the lower bound of the range of s c product entriesend - the upper bound of the range of s c product entries (not inclusive)
public static List<SCLicense> getSCLicenses(long pk,
int start,
int end,
OrderByComparator<SCLicense> 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 SCProductEntryModelImpl. 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 entrystart - the lower bound of the range of s c product entriesend - the upper bound of the range of s c product entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static int getSCLicensesSize(long pk)
pk - the primary key of the s c product entry
public static boolean containsSCLicense(long pk,
long scLicensePK)
true if the s c license is associated with the s c product entry.
pk - the primary key of the s c product entryscLicensePK - the primary key of the s c license
true if the s c license is associated with the s c product entry; false otherwisepublic static boolean containsSCLicenses(long pk)
true if the s c product entry has any s c licenses associated with it.
pk - the primary key of the s c product entry to check for associations with s c licenses
true if the s c product entry has any s c licenses associated with it; false otherwise
public static void addSCLicense(long pk,
long scLicensePK)
pk - the primary key of the s c product entryscLicensePK - the primary key of the s c license
public static void addSCLicense(long pk,
SCLicense scLicense)
pk - the primary key of the s c product entryscLicense - the s c license
public static void addSCLicenses(long pk,
long[] scLicensePKs)
pk - the primary key of the s c product entryscLicensePKs - the primary keys of the s c licenses
public static void addSCLicenses(long pk,
List<SCLicense> scLicenses)
pk - the primary key of the s c product entryscLicenses - the s c licensespublic static void clearSCLicenses(long pk)
pk - the primary key of the s c product entry to clear the associated s c licenses from
public static void removeSCLicense(long pk,
long scLicensePK)
pk - the primary key of the s c product entryscLicensePK - the primary key of the s c license
public static void removeSCLicense(long pk,
SCLicense scLicense)
pk - the primary key of the s c product entryscLicense - the s c license
public static void removeSCLicenses(long pk,
long[] scLicensePKs)
pk - the primary key of the s c product entryscLicensePKs - the primary keys of the s c licenses
public static void removeSCLicenses(long pk,
List<SCLicense> scLicenses)
pk - the primary key of the s c product entryscLicenses - the s c licenses
public static void setSCLicenses(long pk,
long[] scLicensePKs)
pk - the primary key of the s c product entryscLicensePKs - the primary keys of the s c licenses to be associated with the s c product entry
public static void setSCLicenses(long pk,
List<SCLicense> scLicenses)
pk - the primary key of the s c product entryscLicenses - the s c licenses to be associated with the s c product entrypublic static Set<String> getBadColumnNames()
public static SCProductEntryPersistence getPersistence()
@Deprecated public void setPersistence(SCProductEntryPersistence persistence)
|
Liferay 7.0-ce-a2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||