|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.softwarecatalog.service.persistence.SCLicenseUtil
public class SCLicenseUtil
The persistence utility for the s c license service.
Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regnerate this class.
SCLicensePersistence,
SCLicensePersistenceImpl| 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)
Determines whether the s c license has any s c product entries associated with it. |
static boolean |
containsSCProductEntry(long pk,
long scProductEntryPK)
Determines whether the s c product entry is associated with the s c license. |
static int |
countAll()
Counts all the s c licenses. |
static int |
countByA_R(boolean active,
boolean recommended)
Counts all the s c licenses where active = ? and recommended = ?. |
static int |
countByActive(boolean active)
Counts all the s c licenses where active = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static SCLicense |
create(long licenseId)
Creates a new s c license with the primary key. |
static SCLicense |
fetchByPrimaryKey(long licenseId)
Finds the s c license with the primary key or returns null if it could not be found. |
static List<SCLicense> |
findAll()
Finds all the s c licenses. |
static List<SCLicense> |
findAll(int start,
int end)
Finds a range of all the s c licenses. |
static List<SCLicense> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the s c licenses. |
static SCLicense |
findByA_R_First(boolean active,
boolean recommended,
OrderByComparator orderByComparator)
Finds the first s c license in the ordered set where active = ? and recommended = ?. |
static SCLicense |
findByA_R_Last(boolean active,
boolean recommended,
OrderByComparator orderByComparator)
Finds 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 orderByComparator)
Finds 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)
Finds all the s c licenses where active = ? and recommended = ?. |
static List<SCLicense> |
findByA_R(boolean active,
boolean recommended,
int start,
int end)
Finds 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 orderByComparator)
Finds an ordered range of all the s c licenses where active = ? and recommended = ?. |
static SCLicense |
findByActive_First(boolean active,
OrderByComparator orderByComparator)
Finds the first s c license in the ordered set where active = ?. |
static SCLicense |
findByActive_Last(boolean active,
OrderByComparator orderByComparator)
Finds the last s c license in the ordered set where active = ?. |
static SCLicense[] |
findByActive_PrevAndNext(long licenseId,
boolean active,
OrderByComparator orderByComparator)
Finds the s c licenses before and after the current s c license in the ordered set where active = ?. |
static List<SCLicense> |
findByActive(boolean active)
Finds all the s c licenses where active = ?. |
static List<SCLicense> |
findByActive(boolean active,
int start,
int end)
Finds a range of all the s c licenses where active = ?. |
static List<SCLicense> |
findByActive(boolean active,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the s c licenses where active = ?. |
static SCLicense |
findByPrimaryKey(long licenseId)
Finds 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 orderByComparator)
|
static SCLicensePersistence |
getPersistence()
|
static List<SCProductEntry> |
getSCProductEntries(long pk)
Gets all the s c product entries associated with the s c license. |
static List<SCProductEntry> |
getSCProductEntries(long pk,
int start,
int end)
Gets 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 orderByComparator)
Gets an ordered range of all the s c product entries associated with the s c license. |
static int |
getSCProductEntriesSize(long pk)
Gets the number 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 SCLicense |
remove(SCLicense scLicense)
|
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)
|
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,
boolean merge)
|
static SCLicense |
update(SCLicense scLicense,
boolean merge,
ServiceContext serviceContext)
|
static SCLicense |
updateImpl(SCLicense scLicense,
boolean merge)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SCLicenseUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(SCLicense scLicense)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<SCLicense> findWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<SCLicense> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<SCLicense> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static SCLicense remove(SCLicense scLicense)
throws SystemException
SystemExceptionBasePersistence.remove(com.liferay.portal.model.BaseModel)
public static SCLicense update(SCLicense scLicense,
boolean merge)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static SCLicense update(SCLicense scLicense,
boolean merge,
ServiceContext serviceContext)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)public static void cacheResult(SCLicense scLicense)
scLicense - the s c license to cachepublic static void cacheResult(List<SCLicense> scLicenses)
scLicenses - the s c licenses to cachepublic static SCLicense create(long licenseId)
licenseId - the primary key for the new s c license
public static SCLicense remove(long licenseId)
throws SystemException,
NoSuchLicenseException
licenseId - the primary key of the s c license to remove
NoSuchLicenseException - if a s c license with the primary key could not be found
SystemException - if a system exception occurred
public static SCLicense updateImpl(SCLicense scLicense,
boolean merge)
throws SystemException
SystemException
public static SCLicense findByPrimaryKey(long licenseId)
throws SystemException,
NoSuchLicenseException
NoSuchLicenseException if it could not be found.
licenseId - the primary key of the s c license to find
NoSuchLicenseException - if a s c license with the primary key could not be found
SystemException - if a system exception occurred
public static SCLicense fetchByPrimaryKey(long licenseId)
throws SystemException
null if it could not be found.
licenseId - the primary key of the s c license to find
null if a s c license with the primary key could not be found
SystemException - if a system exception occurred
public static List<SCLicense> findByActive(boolean active)
throws SystemException
active - the active to search with
SystemException - if a system exception occurred
public static List<SCLicense> findByActive(boolean active,
int start,
int end)
throws SystemException
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.
active - the active to search withstart - the lower bound of the range of s c licenses to returnend - the upper bound of the range of s c licenses to return (not inclusive)
SystemException - if a system exception occurred
public static List<SCLicense> findByActive(boolean active,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
active - the active to search withstart - the lower bound of the range of s c licenses to returnend - the upper bound of the range of s c licenses to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static SCLicense findByActive_First(boolean active,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchLicenseException
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.
active - the active to search withorderByComparator - the comparator to order the set by
NoSuchLicenseException - if a matching s c license could not be found
SystemException - if a system exception occurred
public static SCLicense findByActive_Last(boolean active,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchLicenseException
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.
active - the active to search withorderByComparator - the comparator to order the set by
NoSuchLicenseException - if a matching s c license could not be found
SystemException - if a system exception occurred
public static SCLicense[] findByActive_PrevAndNext(long licenseId,
boolean active,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchLicenseException
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.
licenseId - the primary key of the current s c licenseactive - the active to search withorderByComparator - the comparator to order the set by
NoSuchLicenseException - if a s c license with the primary key could not be found
SystemException - if a system exception occurred
public static List<SCLicense> findByA_R(boolean active,
boolean recommended)
throws SystemException
active - the active to search withrecommended - the recommended to search with
SystemException - if a system exception occurred
public static List<SCLicense> findByA_R(boolean active,
boolean recommended,
int start,
int end)
throws SystemException
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.
active - the active to search withrecommended - the recommended to search withstart - the lower bound of the range of s c licenses to returnend - the upper bound of the range of s c licenses to return (not inclusive)
SystemException - if a system exception occurred
public static List<SCLicense> findByA_R(boolean active,
boolean recommended,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
active - the active to search withrecommended - the recommended to search withstart - the lower bound of the range of s c licenses to returnend - the upper bound of the range of s c licenses to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static SCLicense findByA_R_First(boolean active,
boolean recommended,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchLicenseException
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.
active - the active to search withrecommended - the recommended to search withorderByComparator - the comparator to order the set by
NoSuchLicenseException - if a matching s c license could not be found
SystemException - if a system exception occurred
public static SCLicense findByA_R_Last(boolean active,
boolean recommended,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchLicenseException
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.
active - the active to search withrecommended - the recommended to search withorderByComparator - the comparator to order the set by
NoSuchLicenseException - if a matching s c license could not be found
SystemException - if a system exception occurred
public static SCLicense[] findByA_R_PrevAndNext(long licenseId,
boolean active,
boolean recommended,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchLicenseException
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.
licenseId - the primary key of the current s c licenseactive - the active to search withrecommended - the recommended to search withorderByComparator - the comparator to order the set by
NoSuchLicenseException - if a s c license with the primary key could not be found
SystemException - if a system exception occurred
public static List<SCLicense> findAll()
throws SystemException
SystemException - if a system exception occurred
public static List<SCLicense> findAll(int start,
int end)
throws SystemException
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.
start - the lower bound of the range of s c licenses to returnend - the upper bound of the range of s c licenses to return (not inclusive)
SystemException - if a system exception occurred
public static List<SCLicense> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
start - the lower bound of the range of s c licenses to returnend - the upper bound of the range of s c licenses to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static void removeByActive(boolean active)
throws SystemException
active - the active to search with
SystemException - if a system exception occurred
public static void removeByA_R(boolean active,
boolean recommended)
throws SystemException
active - the active to search withrecommended - the recommended to search with
SystemException - if a system exception occurred
public static void removeAll()
throws SystemException
SystemException - if a system exception occurred
public static int countByActive(boolean active)
throws SystemException
active - the active to search with
SystemException - if a system exception occurred
public static int countByA_R(boolean active,
boolean recommended)
throws SystemException
active - the active to search withrecommended - the recommended to search with
SystemException - if a system exception occurred
public static int countAll()
throws SystemException
SystemException - if a system exception occurred
public static List<SCProductEntry> getSCProductEntries(long pk)
throws SystemException
pk - the primary key of the s c license to get the associated s c product entries for
SystemException - if a system exception occurred
public static List<SCProductEntry> getSCProductEntries(long pk,
int start,
int end)
throws SystemException
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.
pk - the primary key of the s c license to get the associated s c product entries forstart - the lower bound of the range of s c licenses to returnend - the upper bound of the range of s c licenses to return (not inclusive)
SystemException - if a system exception occurred
public static List<SCProductEntry> getSCProductEntries(long pk,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
pk - the primary key of the s c license to get the associated s c product entries forstart - the lower bound of the range of s c licenses to returnend - the upper bound of the range of s c licenses to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static int getSCProductEntriesSize(long pk)
throws SystemException
pk - the primary key of the s c license to get the number of associated s c product entries for
SystemException - if a system exception occurred
public static boolean containsSCProductEntry(long pk,
long scProductEntryPK)
throws SystemException
pk - the primary key of the s c licensescProductEntryPK - the primary key of the s c product entry
SystemException - if a system exception occurred
public static boolean containsSCProductEntries(long pk)
throws SystemException
pk - the primary key of the s c license to check for associations with s c product entries
SystemException - if a system exception occurred
public static void addSCProductEntry(long pk,
long scProductEntryPK)
throws SystemException
pk - the primary key of the s c licensescProductEntryPK - the primary key of the s c product entry
SystemException - if a system exception occurred
public static void addSCProductEntry(long pk,
SCProductEntry scProductEntry)
throws SystemException
pk - the primary key of the s c licensescProductEntry - the s c product entry
SystemException - if a system exception occurred
public static void addSCProductEntries(long pk,
long[] scProductEntryPKs)
throws SystemException
pk - the primary key of the s c licensescProductEntryPKs - the primary keys of the s c product entries
SystemException - if a system exception occurred
public static void addSCProductEntries(long pk,
List<SCProductEntry> scProductEntries)
throws SystemException
pk - the primary key of the s c licensescProductEntries - the s c product entries
SystemException - if a system exception occurred
public static void clearSCProductEntries(long pk)
throws SystemException
pk - the primary key of the s c license to clear the associated s c product entries from
SystemException - if a system exception occurred
public static void removeSCProductEntry(long pk,
long scProductEntryPK)
throws SystemException
pk - the primary key of the s c licensescProductEntryPK - the primary key of the s c product entry
SystemException - if a system exception occurred
public static void removeSCProductEntry(long pk,
SCProductEntry scProductEntry)
throws SystemException
pk - the primary key of the s c licensescProductEntry - the s c product entry
SystemException - if a system exception occurred
public static void removeSCProductEntries(long pk,
long[] scProductEntryPKs)
throws SystemException
pk - the primary key of the s c licensescProductEntryPKs - the primary keys of the s c product entries
SystemException - if a system exception occurred
public static void removeSCProductEntries(long pk,
List<SCProductEntry> scProductEntries)
throws SystemException
pk - the primary key of the s c licensescProductEntries - the s c product entries
SystemException - if a system exception occurred
public static void setSCProductEntries(long pk,
long[] scProductEntryPKs)
throws SystemException
pk - the primary key of the s c license to set the associations forscProductEntryPKs - the primary keys of the s c product entries to be associated with the s c license
SystemException - if a system exception occurred
public static void setSCProductEntries(long pk,
List<SCProductEntry> scProductEntries)
throws SystemException
pk - the primary key of the s c license to set the associations forscProductEntries - the s c product entries to be associated with the s c license
SystemException - if a system exception occurredpublic static SCLicensePersistence getPersistence()
public void setPersistence(SCLicensePersistence persistence)
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||