@ProviderType
public class SCLicenseUtil
extends java.lang.Object
com.liferay.portlet.softwarecatalog.service.persistence.impl.SCLicensePersistenceImpl 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
SCLicensePersistence,
com.liferay.portlet.softwarecatalog.service.persistence.impl.SCLicensePersistenceImpl| Constructor and Description |
|---|
SCLicenseUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addSCProductEntries(long pk,
java.util.List<SCProductEntry> scProductEntries)
Adds an association between the s c license and the s c product entries.
|
static void |
addSCProductEntries(long pk,
long[] scProductEntryPKs)
Adds an association between the s c license and the s c product entries.
|
static void |
addSCProductEntry(long pk,
long scProductEntryPK)
Adds an association between the s c license and the s c product entry.
|
static void |
addSCProductEntry(long pk,
SCProductEntry scProductEntry)
Adds an association between the s c license and the s c product entry.
|
static void |
cacheResult(java.util.List<SCLicense> scLicenses)
Caches the s c licenses in the entity cache if it is enabled.
|
static void |
cacheResult(SCLicense scLicense)
Caches the s c license in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(SCLicense scLicense) |
static void |
clearSCProductEntries(long pk)
Clears all associations between the s c license and its s c product entries.
|
static boolean |
containsSCProductEntries(long pk)
Returns
true if the s c license has any s c product entries associated with it. |
static boolean |
containsSCProductEntry(long pk,
long scProductEntryPK)
Returns
true if the s c product entry is associated with the s c license. |
static int |
countAll()
Returns the number of s c licenses.
|
static int |
countByA_R(boolean active,
boolean recommended)
Returns the number of s c licenses where active = ? and recommended = ?.
|
static int |
countByActive(boolean active)
Returns the number of s c licenses where active = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static SCLicense |
create(long licenseId)
Creates a new s c license with the primary key.
|
static SCLicense |
fetchByA_R_First(boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator)
Returns the first s c license in the ordered set where active = ? and recommended = ?.
|
static SCLicense |
fetchByA_R_Last(boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator)
Returns the last s c license in the ordered set where active = ? and recommended = ?.
|
static SCLicense |
fetchByActive_First(boolean active,
OrderByComparator<SCLicense> orderByComparator)
Returns the first s c license in the ordered set where active = ?.
|
static SCLicense |
fetchByActive_Last(boolean active,
OrderByComparator<SCLicense> orderByComparator)
Returns the last s c license in the ordered set where active = ?.
|
static SCLicense |
fetchByPrimaryKey(long licenseId)
Returns the s c license with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,SCLicense> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static int |
filterCountByA_R(boolean active,
boolean recommended)
Returns the number of s c licenses that the user has permission to view where active = ? and recommended = ?.
|
static int |
filterCountByActive(boolean active)
Returns the number of s c licenses that the user has permission to view where active = ?.
|
static SCLicense[] |
filterFindByA_R_PrevAndNext(long licenseId,
boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator)
Returns the s c licenses before and after the current s c license in the ordered set of s c licenses that the user has permission to view where active = ? and recommended = ?.
|
static java.util.List<SCLicense> |
filterFindByA_R(boolean active,
boolean recommended)
Returns all the s c licenses that the user has permission to view where active = ? and recommended = ?.
|
static java.util.List<SCLicense> |
filterFindByA_R(boolean active,
boolean recommended,
int start,
int end)
Returns a range of all the s c licenses that the user has permission to view where active = ? and recommended = ?.
|
static java.util.List<SCLicense> |
filterFindByA_R(boolean active,
boolean recommended,
int start,
int end,
OrderByComparator<SCLicense> orderByComparator)
Returns an ordered range of all the s c licenses that the user has permissions to view where active = ? and recommended = ?.
|
static SCLicense[] |
filterFindByActive_PrevAndNext(long licenseId,
boolean active,
OrderByComparator<SCLicense> orderByComparator)
Returns the s c licenses before and after the current s c license in the ordered set of s c licenses that the user has permission to view where active = ?.
|
static java.util.List<SCLicense> |
filterFindByActive(boolean active)
Returns all the s c licenses that the user has permission to view where active = ?.
|
static java.util.List<SCLicense> |
filterFindByActive(boolean active,
int start,
int end)
Returns a range of all the s c licenses that the user has permission to view where active = ?.
|
static java.util.List<SCLicense> |
filterFindByActive(boolean active,
int start,
int end,
OrderByComparator<SCLicense> orderByComparator)
Returns an ordered range of all the s c licenses that the user has permissions to view where active = ?.
|
static java.util.List<SCLicense> |
findAll()
Returns all the s c licenses.
|
static java.util.List<SCLicense> |
findAll(int start,
int end)
Returns a range of all the s c licenses.
|
static java.util.List<SCLicense> |
findAll(int start,
int end,
OrderByComparator<SCLicense> orderByComparator)
Returns an ordered range of all the s c licenses.
|
static java.util.List<SCLicense> |
findAll(int start,
int end,
OrderByComparator<SCLicense> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the s c licenses.
|
static SCLicense |
findByA_R_First(boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator)
Returns the first s c license in the ordered set where active = ? and recommended = ?.
|
static SCLicense |
findByA_R_Last(boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator)
Returns the last s c license in the ordered set where active = ? and recommended = ?.
|
static SCLicense[] |
findByA_R_PrevAndNext(long licenseId,
boolean active,
boolean recommended,
OrderByComparator<SCLicense> orderByComparator)
Returns the s c licenses before and after the current s c license in the ordered set where active = ? and recommended = ?.
|
static java.util.List<SCLicense> |
findByA_R(boolean active,
boolean recommended)
Returns all the s c licenses where active = ? and recommended = ?.
|
static java.util.List<SCLicense> |
findByA_R(boolean active,
boolean recommended,
int start,
int end)
Returns a range of all the s c licenses where active = ? and recommended = ?.
|
static java.util.List<SCLicense> |
findByA_R(boolean active,
boolean recommended,
int start,
int end,
OrderByComparator<SCLicense> orderByComparator)
Returns an ordered range of all the s c licenses where active = ? and recommended = ?.
|
static java.util.List<SCLicense> |
findByA_R(boolean active,
boolean recommended,
int start,
int end,
OrderByComparator<SCLicense> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the s c licenses where active = ? and recommended = ?.
|
static SCLicense |
findByActive_First(boolean active,
OrderByComparator<SCLicense> orderByComparator)
Returns the first s c license in the ordered set where active = ?.
|
static SCLicense |
findByActive_Last(boolean active,
OrderByComparator<SCLicense> orderByComparator)
Returns the last s c license in the ordered set where active = ?.
|
static SCLicense[] |
findByActive_PrevAndNext(long licenseId,
boolean active,
OrderByComparator<SCLicense> orderByComparator)
Returns the s c licenses before and after the current s c license in the ordered set where active = ?.
|
static java.util.List<SCLicense> |
findByActive(boolean active)
Returns all the s c licenses where active = ?.
|
static java.util.List<SCLicense> |
findByActive(boolean active,
int start,
int end)
Returns a range of all the s c licenses where active = ?.
|
static java.util.List<SCLicense> |
findByActive(boolean active,
int start,
int end,
OrderByComparator<SCLicense> orderByComparator)
Returns an ordered range of all the s c licenses where active = ?.
|
static java.util.List<SCLicense> |
findByActive(boolean active,
int start,
int end,
OrderByComparator<SCLicense> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the s c licenses where active = ?.
|
static SCLicense |
findByPrimaryKey(long licenseId)
Returns the s c license with the primary key or throws a
NoSuchLicenseException if it could not be found. |
static java.util.List<SCLicense> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static java.util.List<SCLicense> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<SCLicense> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<SCLicense> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static SCLicensePersistence |
getPersistence() |
static java.util.List<SCProductEntry> |
getSCProductEntries(long pk)
Returns all the s c product entries associated with the s c license.
|
static java.util.List<SCProductEntry> |
getSCProductEntries(long pk,
int start,
int end)
Returns a range of all the s c product entries associated with the s c license.
|
static java.util.List<SCProductEntry> |
getSCProductEntries(long pk,
int start,
int end,
OrderByComparator<SCProductEntry> orderByComparator)
Returns an ordered range of all the s c product entries associated with the s c license.
|
static int |
getSCProductEntriesSize(long pk)
Returns the number of s c product entries associated with the s c license.
|
static long[] |
getSCProductEntryPrimaryKeys(long pk)
Returns the primaryKeys of s c product entries associated with the s c license.
|
static SCLicense |
remove(long licenseId)
Removes the s c license with the primary key from the database.
|
static void |
removeAll()
Removes all the s c licenses from the database.
|
static void |
removeByA_R(boolean active,
boolean recommended)
Removes all the s c licenses where active = ? and recommended = ? from the database.
|
static void |
removeByActive(boolean active)
Removes all the s c licenses where active = ? from the database.
|
static void |
removeSCProductEntries(long pk,
java.util.List<SCProductEntry> scProductEntries)
Removes the association between the s c license and the s c product entries.
|
static void |
removeSCProductEntries(long pk,
long[] scProductEntryPKs)
Removes the association between the s c license and the s c product entries.
|
static void |
removeSCProductEntry(long pk,
long scProductEntryPK)
Removes the association between the s c license and the s c product entry.
|
static void |
removeSCProductEntry(long pk,
SCProductEntry scProductEntry)
Removes the association between the s c license and the s c product entry.
|
void |
setPersistence(SCLicensePersistence persistence)
Deprecated.
As of 6.2.0
|
static void |
setSCProductEntries(long pk,
java.util.List<SCProductEntry> scProductEntries)
Sets the s c product entries associated with the s c license, removing and adding associations as necessary.
|
static void |
setSCProductEntries(long pk,
long[] scProductEntryPKs)
Sets the s c product entries associated with the s c license, removing and adding associations as necessary.
|
static SCLicense |
update(SCLicense scLicense) |
static SCLicense |
update(SCLicense scLicense,
ServiceContext serviceContext) |
static SCLicense |
updateImpl(SCLicense scLicense) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(SCLicense scLicense)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static java.util.List<SCLicense> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static java.util.List<SCLicense> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static java.util.List<SCLicense> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<SCLicense> orderByComparator)
public static SCLicense update(SCLicense scLicense, ServiceContext serviceContext)
public static java.util.List<SCLicense> findByActive(boolean active)
active - the activepublic static java.util.List<SCLicense> findByActive(boolean active, 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 SCLicenseModelImpl. 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.
active - the activestart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)public static java.util.List<SCLicense> findByActive(boolean active, 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 SCLicenseModelImpl. 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.
active - the activestart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<SCLicense> findByActive(boolean active, int start, int end, OrderByComparator<SCLicense> 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 SCLicenseModelImpl. 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.
active - the activestart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static SCLicense findByActive_First(boolean active, OrderByComparator<SCLicense> orderByComparator) throws NoSuchLicenseException
active - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchLicenseException - if a matching s c license could not be foundpublic static SCLicense fetchByActive_First(boolean active, OrderByComparator<SCLicense> orderByComparator)
active - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching s c license could not be foundpublic static SCLicense findByActive_Last(boolean active, OrderByComparator<SCLicense> orderByComparator) throws NoSuchLicenseException
active - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchLicenseException - if a matching s c license could not be foundpublic static SCLicense fetchByActive_Last(boolean active, OrderByComparator<SCLicense> orderByComparator)
active - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching s c license could not be foundpublic static SCLicense[] findByActive_PrevAndNext(long licenseId, boolean active, OrderByComparator<SCLicense> orderByComparator) throws NoSuchLicenseException
licenseId - the primary key of the current s c licenseactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchLicenseException - if a s c license with the primary key could not be foundpublic static java.util.List<SCLicense> filterFindByActive(boolean active)
active - the activepublic static java.util.List<SCLicense> filterFindByActive(boolean active, 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 SCLicenseModelImpl. 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.
active - the activestart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)public static java.util.List<SCLicense> filterFindByActive(boolean active, 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 SCLicenseModelImpl. 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.
active - the activestart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static SCLicense[] filterFindByActive_PrevAndNext(long licenseId, boolean active, OrderByComparator<SCLicense> orderByComparator) throws NoSuchLicenseException
licenseId - the primary key of the current s c licenseactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchLicenseException - if a s c license with the primary key could not be foundpublic static void removeByActive(boolean active)
active - the activepublic static int countByActive(boolean active)
active - the activepublic static int filterCountByActive(boolean active)
active - the activepublic static java.util.List<SCLicense> findByA_R(boolean active, boolean recommended)
active - the activerecommended - the recommendedpublic static java.util.List<SCLicense> findByA_R(boolean active, boolean recommended, 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 SCLicenseModelImpl. 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.
active - the activerecommended - the recommendedstart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)public static java.util.List<SCLicense> findByA_R(boolean active, boolean recommended, 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 SCLicenseModelImpl. 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.
active - the activerecommended - the recommendedstart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<SCLicense> findByA_R(boolean active, boolean recommended, int start, int end, OrderByComparator<SCLicense> 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 SCLicenseModelImpl. 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.
active - the activerecommended - the recommendedstart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static SCLicense findByA_R_First(boolean active, boolean recommended, OrderByComparator<SCLicense> orderByComparator) throws NoSuchLicenseException
active - the activerecommended - the recommendedorderByComparator - the comparator to order the set by (optionally null)NoSuchLicenseException - if a matching s c license could not be foundpublic static SCLicense fetchByA_R_First(boolean active, boolean recommended, OrderByComparator<SCLicense> orderByComparator)
active - the activerecommended - the recommendedorderByComparator - the comparator to order the set by (optionally null)null if a matching s c license could not be foundpublic static SCLicense findByA_R_Last(boolean active, boolean recommended, OrderByComparator<SCLicense> orderByComparator) throws NoSuchLicenseException
active - the activerecommended - the recommendedorderByComparator - the comparator to order the set by (optionally null)NoSuchLicenseException - if a matching s c license could not be foundpublic static SCLicense fetchByA_R_Last(boolean active, boolean recommended, OrderByComparator<SCLicense> orderByComparator)
active - the activerecommended - the recommendedorderByComparator - the comparator to order the set by (optionally null)null if a matching s c license could not be foundpublic static SCLicense[] findByA_R_PrevAndNext(long licenseId, boolean active, boolean recommended, OrderByComparator<SCLicense> orderByComparator) throws NoSuchLicenseException
licenseId - the primary key of the current s c licenseactive - the activerecommended - the recommendedorderByComparator - the comparator to order the set by (optionally null)NoSuchLicenseException - if a s c license with the primary key could not be foundpublic static java.util.List<SCLicense> filterFindByA_R(boolean active, boolean recommended)
active - the activerecommended - the recommendedpublic static java.util.List<SCLicense> filterFindByA_R(boolean active, boolean recommended, 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 SCLicenseModelImpl. 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.
active - the activerecommended - the recommendedstart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)public static java.util.List<SCLicense> filterFindByA_R(boolean active, boolean recommended, 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 SCLicenseModelImpl. 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.
active - the activerecommended - the recommendedstart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static SCLicense[] filterFindByA_R_PrevAndNext(long licenseId, boolean active, boolean recommended, OrderByComparator<SCLicense> orderByComparator) throws NoSuchLicenseException
licenseId - the primary key of the current s c licenseactive - the activerecommended - the recommendedorderByComparator - the comparator to order the set by (optionally null)NoSuchLicenseException - if a s c license with the primary key could not be foundpublic static void removeByA_R(boolean active,
boolean recommended)
active - the activerecommended - the recommendedpublic static int countByA_R(boolean active,
boolean recommended)
active - the activerecommended - the recommendedpublic static int filterCountByA_R(boolean active,
boolean recommended)
active - the activerecommended - the recommendedpublic static void cacheResult(SCLicense scLicense)
scLicense - the s c licensepublic static void cacheResult(java.util.List<SCLicense> scLicenses)
scLicenses - the s c licensespublic static SCLicense create(long licenseId)
licenseId - the primary key for the new s c licensepublic static SCLicense remove(long licenseId) throws NoSuchLicenseException
licenseId - the primary key of the s c licenseNoSuchLicenseException - if a s c license with the primary key could not be foundpublic static SCLicense findByPrimaryKey(long licenseId) throws NoSuchLicenseException
NoSuchLicenseException if it could not be found.licenseId - the primary key of the s c licenseNoSuchLicenseException - if a s c license with the primary key could not be foundpublic static SCLicense fetchByPrimaryKey(long licenseId)
null if it could not be found.licenseId - the primary key of the s c licensenull if a s c license with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,SCLicense> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<SCLicense> findAll()
public static java.util.List<SCLicense> 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 SCLicenseModelImpl. 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 licensesend - the upper bound of the range of s c licenses (not inclusive)public static java.util.List<SCLicense> findAll(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 SCLicenseModelImpl. 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 licensesend - the upper bound of the range of s c licenses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<SCLicense> findAll(int start, int end, OrderByComparator<SCLicense> 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 SCLicenseModelImpl. 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 licensesend - the upper bound of the range of s c licenses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static long[] getSCProductEntryPrimaryKeys(long pk)
pk - the primary key of the s c licensepublic static java.util.List<SCProductEntry> getSCProductEntries(long pk)
pk - the primary key of the s c licensepublic static java.util.List<SCProductEntry> getSCProductEntries(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 SCLicenseModelImpl. 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 licensestart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)public static java.util.List<SCProductEntry> getSCProductEntries(long pk, 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 SCLicenseModelImpl. 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 licensestart - the lower bound of the range of s c licensesend - the upper bound of the range of s c licenses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static int getSCProductEntriesSize(long pk)
pk - the primary key of the s c licensepublic static boolean containsSCProductEntry(long pk,
long scProductEntryPK)
true if the s c product entry is associated with the s c license.pk - the primary key of the s c licensescProductEntryPK - the primary key of the s c product entrytrue if the s c product entry is associated with the s c license; false otherwisepublic static boolean containsSCProductEntries(long pk)
true if the s c license has any s c product entries associated with it.pk - the primary key of the s c license to check for associations with s c product entriestrue if the s c license has any s c product entries associated with it; false otherwisepublic static void addSCProductEntry(long pk,
long scProductEntryPK)
pk - the primary key of the s c licensescProductEntryPK - the primary key of the s c product entrypublic static void addSCProductEntry(long pk,
SCProductEntry scProductEntry)
pk - the primary key of the s c licensescProductEntry - the s c product entrypublic static void addSCProductEntries(long pk,
long[] scProductEntryPKs)
pk - the primary key of the s c licensescProductEntryPKs - the primary keys of the s c product entriespublic static void addSCProductEntries(long pk,
java.util.List<SCProductEntry> scProductEntries)
pk - the primary key of the s c licensescProductEntries - the s c product entriespublic static void clearSCProductEntries(long pk)
pk - the primary key of the s c license to clear the associated s c product entries frompublic static void removeSCProductEntry(long pk,
long scProductEntryPK)
pk - the primary key of the s c licensescProductEntryPK - the primary key of the s c product entrypublic static void removeSCProductEntry(long pk,
SCProductEntry scProductEntry)
pk - the primary key of the s c licensescProductEntry - the s c product entrypublic static void removeSCProductEntries(long pk,
long[] scProductEntryPKs)
pk - the primary key of the s c licensescProductEntryPKs - the primary keys of the s c product entriespublic static void removeSCProductEntries(long pk,
java.util.List<SCProductEntry> scProductEntries)
pk - the primary key of the s c licensescProductEntries - the s c product entriespublic static void setSCProductEntries(long pk,
long[] scProductEntryPKs)
pk - the primary key of the s c licensescProductEntryPKs - the primary keys of the s c product entries to be associated with the s c licensepublic static void setSCProductEntries(long pk,
java.util.List<SCProductEntry> scProductEntries)
pk - the primary key of the s c licensescProductEntries - the s c product entries to be associated with the s c licensepublic static java.util.Set<java.lang.String> getBadColumnNames()
public static SCLicensePersistence getPersistence()
@Deprecated public void setPersistence(SCLicensePersistence persistence)