Liferay 7.0-ce-a3

com.liferay.portlet.softwarecatalog.service.persistence
Class SCLicenseUtil

java.lang.Object
  extended by com.liferay.portlet.softwarecatalog.service.persistence.SCLicenseUtil

@ProviderType
public class SCLicenseUtil
extends Object

The persistence utility for the s c license service. This utility wraps 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

See Also:
SCLicensePersistence, SCLicensePersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
SCLicenseUtil()
           
 
Method Summary
static void addSCProductEntries(long pk, 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(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 Map<Serializable,SCLicense> fetchByPrimaryKeys(Set<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 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 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 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 List<SCLicense> filterFindByActive(boolean active)
          Returns all the s c licenses that the user has permission to view where active = ?.
static 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 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 List<SCLicense> findAll()
          Returns all the s c licenses.
static List<SCLicense> findAll(int start, int end)
          Returns a range of all the s c licenses.
static List<SCLicense> findAll(int start, int end, OrderByComparator<SCLicense> orderByComparator)
          Returns an ordered range of all the s c licenses.
static 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 List<SCLicense> findByA_R(boolean active, boolean recommended)
          Returns all the s c licenses where active = ? and recommended = ?.
static 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 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 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 List<SCLicense> findByActive(boolean active)
          Returns all the s c licenses where active = ?.
static List<SCLicense> findByActive(boolean active, int start, int end)
          Returns a range of all the s c licenses where active = ?.
static 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 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 List<SCLicense> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<SCLicense> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<SCLicense> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<SCLicense> orderByComparator)
           
static Set<String> getBadColumnNames()
           
static SCLicensePersistence getPersistence()
           
static List<SCProductEntry> getSCProductEntries(long pk)
          Returns all the s c product entries associated with the s c license.
static 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 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, 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, 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCLicenseUtil

public SCLicenseUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(SCLicense scLicense)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<SCLicense> findWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<SCLicense> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                   int start,
                                                   int end)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<SCLicense> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                   int start,
                                                   int end,
                                                   OrderByComparator<SCLicense> orderByComparator)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static SCLicense update(SCLicense scLicense)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static SCLicense update(SCLicense scLicense,
                               ServiceContext serviceContext)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByActive

public static List<SCLicense> findByActive(boolean active)
Returns all the s c licenses where active = ?.

Parameters:
active - the active
Returns:
the matching s c licenses

findByActive

public static List<SCLicense> findByActive(boolean active,
                                           int start,
                                           int end)
Returns a range of all the s c licenses where active = ?.

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.

Parameters:
active - the active
start - the lower bound of the range of s c licenses
end - the upper bound of the range of s c licenses (not inclusive)
Returns:
the range of matching s c licenses

findByActive

public static List<SCLicense> findByActive(boolean active,
                                           int start,
                                           int end,
                                           OrderByComparator<SCLicense> orderByComparator)
Returns an ordered range of all the s c licenses where active = ?.

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.

Parameters:
active - the active
start - the lower bound of the range of s c licenses
end - the upper bound of the range of s c licenses (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching s c licenses

findByActive

public static 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 = ?.

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.

Parameters:
active - the active
start - the lower bound of the range of s c licenses
end - 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 cache
Returns:
the ordered range of matching s c licenses

findByActive_First

public static SCLicense findByActive_First(boolean active,
                                           OrderByComparator<SCLicense> orderByComparator)
                                    throws NoSuchLicenseException
Returns the first s c license in the ordered set where active = ?.

Parameters:
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching s c license
Throws:
NoSuchLicenseException - if a matching s c license could not be found

fetchByActive_First

public static SCLicense fetchByActive_First(boolean active,
                                            OrderByComparator<SCLicense> orderByComparator)
Returns the first s c license in the ordered set where active = ?.

Parameters:
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching s c license, or null if a matching s c license could not be found

findByActive_Last

public static SCLicense findByActive_Last(boolean active,
                                          OrderByComparator<SCLicense> orderByComparator)
                                   throws NoSuchLicenseException
Returns the last s c license in the ordered set where active = ?.

Parameters:
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching s c license
Throws:
NoSuchLicenseException - if a matching s c license could not be found

fetchByActive_Last

public static SCLicense fetchByActive_Last(boolean active,
                                           OrderByComparator<SCLicense> orderByComparator)
Returns the last s c license in the ordered set where active = ?.

Parameters:
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching s c license, or null if a matching s c license could not be found

findByActive_PrevAndNext

public static SCLicense[] findByActive_PrevAndNext(long licenseId,
                                                   boolean active,
                                                   OrderByComparator<SCLicense> orderByComparator)
                                            throws NoSuchLicenseException
Returns the s c licenses before and after the current s c license in the ordered set where active = ?.

Parameters:
licenseId - the primary key of the current s c license
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next s c license
Throws:
NoSuchLicenseException - if a s c license with the primary key could not be found

filterFindByActive

public static List<SCLicense> filterFindByActive(boolean active)
Returns all the s c licenses that the user has permission to view where active = ?.

Parameters:
active - the active
Returns:
the matching s c licenses that the user has permission to view

filterFindByActive

public static 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 = ?.

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.

Parameters:
active - the active
start - the lower bound of the range of s c licenses
end - the upper bound of the range of s c licenses (not inclusive)
Returns:
the range of matching s c licenses that the user has permission to view

filterFindByActive

public static 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 = ?.

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.

Parameters:
active - the active
start - the lower bound of the range of s c licenses
end - the upper bound of the range of s c licenses (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching s c licenses that the user has permission to view

filterFindByActive_PrevAndNext

public static SCLicense[] filterFindByActive_PrevAndNext(long licenseId,
                                                         boolean active,
                                                         OrderByComparator<SCLicense> orderByComparator)
                                                  throws NoSuchLicenseException
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 = ?.

Parameters:
licenseId - the primary key of the current s c license
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next s c license
Throws:
NoSuchLicenseException - if a s c license with the primary key could not be found

removeByActive

public static void removeByActive(boolean active)
Removes all the s c licenses where active = ? from the database.

Parameters:
active - the active

countByActive

public static int countByActive(boolean active)
Returns the number of s c licenses where active = ?.

Parameters:
active - the active
Returns:
the number of matching s c licenses

filterCountByActive

public static int filterCountByActive(boolean active)
Returns the number of s c licenses that the user has permission to view where active = ?.

Parameters:
active - the active
Returns:
the number of matching s c licenses that the user has permission to view

findByA_R

public static List<SCLicense> findByA_R(boolean active,
                                        boolean recommended)
Returns all the s c licenses where active = ? and recommended = ?.

Parameters:
active - the active
recommended - the recommended
Returns:
the matching s c licenses

findByA_R

public static 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 = ?.

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.

Parameters:
active - the active
recommended - the recommended
start - the lower bound of the range of s c licenses
end - the upper bound of the range of s c licenses (not inclusive)
Returns:
the range of matching s c licenses

findByA_R

public static 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 = ?.

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.

Parameters:
active - the active
recommended - the recommended
start - the lower bound of the range of s c licenses
end - the upper bound of the range of s c licenses (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching s c licenses

findByA_R

public static 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 = ?.

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.

Parameters:
active - the active
recommended - the recommended
start - the lower bound of the range of s c licenses
end - 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 cache
Returns:
the ordered range of matching s c licenses

findByA_R_First

public static SCLicense findByA_R_First(boolean active,
                                        boolean recommended,
                                        OrderByComparator<SCLicense> orderByComparator)
                                 throws NoSuchLicenseException
Returns the first s c license in the ordered set where active = ? and recommended = ?.

Parameters:
active - the active
recommended - the recommended
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching s c license
Throws:
NoSuchLicenseException - if a matching s c license could not be found

fetchByA_R_First

public 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 = ?.

Parameters:
active - the active
recommended - the recommended
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching s c license, or null if a matching s c license could not be found

findByA_R_Last

public static SCLicense findByA_R_Last(boolean active,
                                       boolean recommended,
                                       OrderByComparator<SCLicense> orderByComparator)
                                throws NoSuchLicenseException
Returns the last s c license in the ordered set where active = ? and recommended = ?.

Parameters:
active - the active
recommended - the recommended
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching s c license
Throws:
NoSuchLicenseException - if a matching s c license could not be found

fetchByA_R_Last

public 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 = ?.

Parameters:
active - the active
recommended - the recommended
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching s c license, or null if a matching s c license could not be found

findByA_R_PrevAndNext

public static SCLicense[] findByA_R_PrevAndNext(long licenseId,
                                                boolean active,
                                                boolean recommended,
                                                OrderByComparator<SCLicense> orderByComparator)
                                         throws NoSuchLicenseException
Returns the s c licenses before and after the current s c license in the ordered set where active = ? and recommended = ?.

Parameters:
licenseId - the primary key of the current s c license
active - the active
recommended - the recommended
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next s c license
Throws:
NoSuchLicenseException - if a s c license with the primary key could not be found

filterFindByA_R

public static 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 = ?.

Parameters:
active - the active
recommended - the recommended
Returns:
the matching s c licenses that the user has permission to view

filterFindByA_R

public static 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 = ?.

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.

Parameters:
active - the active
recommended - the recommended
start - the lower bound of the range of s c licenses
end - the upper bound of the range of s c licenses (not inclusive)
Returns:
the range of matching s c licenses that the user has permission to view

filterFindByA_R

public static 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 = ?.

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.

Parameters:
active - the active
recommended - the recommended
start - the lower bound of the range of s c licenses
end - the upper bound of the range of s c licenses (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching s c licenses that the user has permission to view

filterFindByA_R_PrevAndNext

public static SCLicense[] filterFindByA_R_PrevAndNext(long licenseId,
                                                      boolean active,
                                                      boolean recommended,
                                                      OrderByComparator<SCLicense> orderByComparator)
                                               throws NoSuchLicenseException
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 = ?.

Parameters:
licenseId - the primary key of the current s c license
active - the active
recommended - the recommended
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next s c license
Throws:
NoSuchLicenseException - if a s c license with the primary key could not be found

removeByA_R

public static void removeByA_R(boolean active,
                               boolean recommended)
Removes all the s c licenses where active = ? and recommended = ? from the database.

Parameters:
active - the active
recommended - the recommended

countByA_R

public static int countByA_R(boolean active,
                             boolean recommended)
Returns the number of s c licenses where active = ? and recommended = ?.

Parameters:
active - the active
recommended - the recommended
Returns:
the number of matching s c licenses

filterCountByA_R

public 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 = ?.

Parameters:
active - the active
recommended - the recommended
Returns:
the number of matching s c licenses that the user has permission to view

cacheResult

public static void cacheResult(SCLicense scLicense)
Caches the s c license in the entity cache if it is enabled.

Parameters:
scLicense - the s c license

cacheResult

public static void cacheResult(List<SCLicense> scLicenses)
Caches the s c licenses in the entity cache if it is enabled.

Parameters:
scLicenses - the s c licenses

create

public static SCLicense create(long licenseId)
Creates a new s c license with the primary key. Does not add the s c license to the database.

Parameters:
licenseId - the primary key for the new s c license
Returns:
the new s c license

remove

public static SCLicense remove(long licenseId)
                        throws NoSuchLicenseException
Removes the s c license with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
licenseId - the primary key of the s c license
Returns:
the s c license that was removed
Throws:
NoSuchLicenseException - if a s c license with the primary key could not be found

updateImpl

public static SCLicense updateImpl(SCLicense scLicense)

findByPrimaryKey

public static SCLicense findByPrimaryKey(long licenseId)
                                  throws NoSuchLicenseException
Returns the s c license with the primary key or throws a NoSuchLicenseException if it could not be found.

Parameters:
licenseId - the primary key of the s c license
Returns:
the s c license
Throws:
NoSuchLicenseException - if a s c license with the primary key could not be found

fetchByPrimaryKey

public static SCLicense fetchByPrimaryKey(long licenseId)
Returns the s c license with the primary key or returns null if it could not be found.

Parameters:
licenseId - the primary key of the s c license
Returns:
the s c license, or null if a s c license with the primary key could not be found

fetchByPrimaryKeys

public static Map<Serializable,SCLicense> fetchByPrimaryKeys(Set<Serializable> primaryKeys)

findAll

public static List<SCLicense> findAll()
Returns all the s c licenses.

Returns:
the s c licenses

findAll

public static List<SCLicense> findAll(int start,
                                      int end)
Returns a range of all the s c licenses.

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.

Parameters:
start - the lower bound of the range of s c licenses
end - the upper bound of the range of s c licenses (not inclusive)
Returns:
the range of s c licenses

findAll

public static List<SCLicense> findAll(int start,
                                      int end,
                                      OrderByComparator<SCLicense> orderByComparator)
Returns an ordered range of all the s c licenses.

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.

Parameters:
start - the lower bound of the range of s c licenses
end - the upper bound of the range of s c licenses (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of s c licenses

findAll

public static List<SCLicense> findAll(int start,
                                      int end,
                                      OrderByComparator<SCLicense> orderByComparator,
                                      boolean retrieveFromCache)
Returns an ordered range of all the s c licenses.

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.

Parameters:
start - the lower bound of the range of s c licenses
end - 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 cache
Returns:
the ordered range of s c licenses

removeAll

public static void removeAll()
Removes all the s c licenses from the database.


countAll

public static int countAll()
Returns the number of s c licenses.

Returns:
the number of s c licenses

getSCProductEntryPrimaryKeys

public static long[] getSCProductEntryPrimaryKeys(long pk)
Returns the primaryKeys of s c product entries associated with the s c license.

Parameters:
pk - the primary key of the s c license
Returns:
long[] of the primaryKeys of s c product entries associated with the s c license

getSCProductEntries

public static List<SCProductEntry> getSCProductEntries(long pk)
Returns all the s c product entries associated with the s c license.

Parameters:
pk - the primary key of the s c license
Returns:
the s c product entries associated with the s c license

getSCProductEntries

public static 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.

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.

Parameters:
pk - the primary key of the s c license
start - the lower bound of the range of s c licenses
end - the upper bound of the range of s c licenses (not inclusive)
Returns:
the range of s c product entries associated with the s c license

getSCProductEntries

public static 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.

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.

Parameters:
pk - the primary key of the s c license
start - the lower bound of the range of s c licenses
end - the upper bound of the range of s c licenses (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of s c product entries associated with the s c license

getSCProductEntriesSize

public static int getSCProductEntriesSize(long pk)
Returns the number of s c product entries associated with the s c license.

Parameters:
pk - the primary key of the s c license
Returns:
the number of s c product entries associated with the s c license

containsSCProductEntry

public static boolean containsSCProductEntry(long pk,
                                             long scProductEntryPK)
Returns true if the s c product entry is associated with the s c license.

Parameters:
pk - the primary key of the s c license
scProductEntryPK - the primary key of the s c product entry
Returns:
true if the s c product entry is associated with the s c license; false otherwise

containsSCProductEntries

public static boolean containsSCProductEntries(long pk)
Returns true if the s c license has any s c product entries associated with it.

Parameters:
pk - the primary key of the s c license to check for associations with s c product entries
Returns:
true if the s c license has any s c product entries associated with it; false otherwise

addSCProductEntry

public static void addSCProductEntry(long pk,
                                     long scProductEntryPK)
Adds an association between the s c license and the s c product entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c license
scProductEntryPK - the primary key of the s c product entry

addSCProductEntry

public static void addSCProductEntry(long pk,
                                     SCProductEntry scProductEntry)
Adds an association between the s c license and the s c product entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c license
scProductEntry - the s c product entry

addSCProductEntries

public static void addSCProductEntries(long pk,
                                       long[] scProductEntryPKs)
Adds an association between the s c license and the s c product entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c license
scProductEntryPKs - the primary keys of the s c product entries

addSCProductEntries

public static void addSCProductEntries(long pk,
                                       List<SCProductEntry> scProductEntries)
Adds an association between the s c license and the s c product entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c license
scProductEntries - the s c product entries

clearSCProductEntries

public static void clearSCProductEntries(long pk)
Clears all associations between the s c license and its s c product entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c license to clear the associated s c product entries from

removeSCProductEntry

public static void removeSCProductEntry(long pk,
                                        long scProductEntryPK)
Removes the association between the s c license and the s c product entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c license
scProductEntryPK - the primary key of the s c product entry

removeSCProductEntry

public static void removeSCProductEntry(long pk,
                                        SCProductEntry scProductEntry)
Removes the association between the s c license and the s c product entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c license
scProductEntry - the s c product entry

removeSCProductEntries

public static void removeSCProductEntries(long pk,
                                          long[] scProductEntryPKs)
Removes the association between the s c license and the s c product entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c license
scProductEntryPKs - the primary keys of the s c product entries

removeSCProductEntries

public static void removeSCProductEntries(long pk,
                                          List<SCProductEntry> scProductEntries)
Removes the association between the s c license and the s c product entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c license
scProductEntries - the s c product entries

setSCProductEntries

public 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. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c license
scProductEntryPKs - the primary keys of the s c product entries to be associated with the s c license

setSCProductEntries

public static void setSCProductEntries(long pk,
                                       List<SCProductEntry> scProductEntries)
Sets the s c product entries associated with the s c license, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Parameters:
pk - the primary key of the s c license
scProductEntries - the s c product entries to be associated with the s c license

getBadColumnNames

public static Set<String> getBadColumnNames()

getPersistence

public static SCLicensePersistence getPersistence()

setPersistence

@Deprecated
public void setPersistence(SCLicensePersistence persistence)
Deprecated. As of 6.2.0


Liferay 7.0-ce-a3