com.liferay.portlet.softwarecatalog.service.persistence
Class SCProductEntryUtil
java.lang.Object
com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryUtil
public class SCProductEntryUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static void |
addSCLicense(long pk,
long scLicensePK)
|
static void |
addSCLicense(long pk,
SCLicense scLicense)
|
static void |
addSCLicenses(long pk,
java.util.List<SCLicense> scLicenses)
|
static void |
addSCLicenses(long pk,
long[] scLicensePKs)
|
static void |
clearSCLicenses(long pk)
|
static boolean |
containsSCLicense(long pk,
long scLicensePK)
|
static boolean |
containsSCLicenses(long pk)
|
static int |
countAll()
|
static int |
countByCompanyId(long companyId)
|
static int |
countByG_U(long groupId,
long userId)
|
static int |
countByGroupId(long groupId)
|
static int |
countByRG_RA(java.lang.String repoGroupId,
java.lang.String repoArtifactId)
|
static SCProductEntry |
create(long productEntryId)
|
static SCProductEntry |
fetchByPrimaryKey(long productEntryId)
|
static SCProductEntry |
fetchByRG_RA(java.lang.String repoGroupId,
java.lang.String repoArtifactId)
|
static java.util.List<SCProductEntry> |
findAll()
|
static java.util.List<SCProductEntry> |
findAll(int start,
int end)
|
static java.util.List<SCProductEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static SCProductEntry |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static SCProductEntry |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static SCProductEntry[] |
findByCompanyId_PrevAndNext(long productEntryId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<SCProductEntry> |
findByCompanyId(long companyId)
|
static java.util.List<SCProductEntry> |
findByCompanyId(long companyId,
int start,
int end)
|
static java.util.List<SCProductEntry> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static SCProductEntry |
findByG_U_First(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static SCProductEntry |
findByG_U_Last(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static SCProductEntry[] |
findByG_U_PrevAndNext(long productEntryId,
long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<SCProductEntry> |
findByG_U(long groupId,
long userId)
|
static java.util.List<SCProductEntry> |
findByG_U(long groupId,
long userId,
int start,
int end)
|
static java.util.List<SCProductEntry> |
findByG_U(long groupId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static SCProductEntry |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static SCProductEntry |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static SCProductEntry[] |
findByGroupId_PrevAndNext(long productEntryId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<SCProductEntry> |
findByGroupId(long groupId)
|
static java.util.List<SCProductEntry> |
findByGroupId(long groupId,
int start,
int end)
|
static java.util.List<SCProductEntry> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static SCProductEntry |
findByPrimaryKey(long productEntryId)
|
static SCProductEntry |
findByRG_RA(java.lang.String repoGroupId,
java.lang.String repoArtifactId)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static SCProductEntryPersistence |
getPersistence()
|
static java.util.List<SCLicense> |
getSCLicenses(long pk)
|
static java.util.List<SCLicense> |
getSCLicenses(long pk,
int start,
int end)
|
static java.util.List<SCLicense> |
getSCLicenses(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static int |
getSCLicensesSize(long pk)
|
static SCProductEntry |
remove(long productEntryId)
|
static SCProductEntry |
remove(SCProductEntry scProductEntry)
|
static void |
removeAll()
|
static void |
removeByCompanyId(long companyId)
|
static void |
removeByG_U(long groupId,
long userId)
|
static void |
removeByGroupId(long groupId)
|
static void |
removeByRG_RA(java.lang.String repoGroupId,
java.lang.String repoArtifactId)
|
static void |
removeSCLicense(long pk,
long scLicensePK)
|
static void |
removeSCLicense(long pk,
SCLicense scLicense)
|
static void |
removeSCLicenses(long pk,
java.util.List<SCLicense> scLicenses)
|
static void |
removeSCLicenses(long pk,
long[] scLicensePKs)
|
void |
setPersistence(SCProductEntryPersistence persistence)
|
static void |
setSCLicenses(long pk,
java.util.List<SCLicense> scLicenses)
|
static void |
setSCLicenses(long pk,
long[] scLicensePKs)
|
static SCProductEntry |
update(SCProductEntry scProductEntry)
Deprecated. Use update(SCProductEntry scProductEntry, boolean merge) . |
static SCProductEntry |
update(SCProductEntry scProductEntry,
boolean merge)
Add, update, or merge, the entity. |
static SCProductEntry |
updateImpl(SCProductEntry scProductEntry,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCProductEntryUtil
public SCProductEntryUtil()
create
public static SCProductEntry create(long productEntryId)
remove
public static SCProductEntry remove(long productEntryId)
throws com.liferay.portal.SystemException,
NoSuchProductEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
remove
public static SCProductEntry remove(SCProductEntry scProductEntry)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static SCProductEntry update(SCProductEntry scProductEntry)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(SCProductEntry scProductEntry, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static SCProductEntry update(SCProductEntry scProductEntry,
boolean merge)
throws com.liferay.portal.SystemException
- Add, update, or merge, the entity. This method also calls the model
listeners to trigger the proper events associated with adding, deleting,
or updating an entity.
- Parameters:
scProductEntry
- the entity to add, update, or mergemerge
- boolean value for whether to merge the entity. The
default value is false. Setting merge to true is more
expensive and should only be true when scProductEntry is
transient. See LEP-5473 for a detailed discussion of this
method.
- Returns:
- true if the portlet can be displayed via Ajax
- Throws:
com.liferay.portal.SystemException
updateImpl
public static SCProductEntry updateImpl(SCProductEntry scProductEntry,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static SCProductEntry findByPrimaryKey(long productEntryId)
throws com.liferay.portal.SystemException,
NoSuchProductEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
fetchByPrimaryKey
public static SCProductEntry fetchByPrimaryKey(long productEntryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
public static java.util.List<SCProductEntry> findByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
public static java.util.List<SCProductEntry> findByGroupId(long groupId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
public static java.util.List<SCProductEntry> findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId_First
public static SCProductEntry findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchProductEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
findByGroupId_Last
public static SCProductEntry findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchProductEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
findByGroupId_PrevAndNext
public static SCProductEntry[] findByGroupId_PrevAndNext(long productEntryId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchProductEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
findByCompanyId
public static java.util.List<SCProductEntry> findByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
public static java.util.List<SCProductEntry> findByCompanyId(long companyId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
public static java.util.List<SCProductEntry> findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId_First
public static SCProductEntry findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchProductEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
findByCompanyId_Last
public static SCProductEntry findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchProductEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
findByCompanyId_PrevAndNext
public static SCProductEntry[] findByCompanyId_PrevAndNext(long productEntryId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchProductEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
findByG_U
public static java.util.List<SCProductEntry> findByG_U(long groupId,
long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_U
public static java.util.List<SCProductEntry> findByG_U(long groupId,
long userId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_U
public static java.util.List<SCProductEntry> findByG_U(long groupId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_U_First
public static SCProductEntry findByG_U_First(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchProductEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
findByG_U_Last
public static SCProductEntry findByG_U_Last(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchProductEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
findByG_U_PrevAndNext
public static SCProductEntry[] findByG_U_PrevAndNext(long productEntryId,
long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchProductEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
findByRG_RA
public static SCProductEntry findByRG_RA(java.lang.String repoGroupId,
java.lang.String repoArtifactId)
throws com.liferay.portal.SystemException,
NoSuchProductEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
fetchByRG_RA
public static SCProductEntry fetchByRG_RA(java.lang.String repoGroupId,
java.lang.String repoArtifactId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<SCProductEntry> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<SCProductEntry> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<SCProductEntry> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByGroupId
public static void removeByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByCompanyId
public static void removeByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByG_U
public static void removeByG_U(long groupId,
long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByRG_RA
public static void removeByRG_RA(java.lang.String repoGroupId,
java.lang.String repoArtifactId)
throws com.liferay.portal.SystemException,
NoSuchProductEntryException
- Throws:
com.liferay.portal.SystemException
NoSuchProductEntryException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByGroupId
public static int countByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByCompanyId
public static int countByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByG_U
public static int countByG_U(long groupId,
long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByRG_RA
public static int countByRG_RA(java.lang.String repoGroupId,
java.lang.String repoArtifactId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
public static int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getSCLicenses
public static java.util.List<SCLicense> getSCLicenses(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getSCLicenses
public static java.util.List<SCLicense> getSCLicenses(long pk,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getSCLicenses
public static java.util.List<SCLicense> getSCLicenses(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getSCLicensesSize
public static int getSCLicensesSize(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsSCLicense
public static boolean containsSCLicense(long pk,
long scLicensePK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsSCLicenses
public static boolean containsSCLicenses(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addSCLicense
public static void addSCLicense(long pk,
long scLicensePK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addSCLicense
public static void addSCLicense(long pk,
SCLicense scLicense)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addSCLicenses
public static void addSCLicenses(long pk,
long[] scLicensePKs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addSCLicenses
public static void addSCLicenses(long pk,
java.util.List<SCLicense> scLicenses)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
clearSCLicenses
public static void clearSCLicenses(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeSCLicense
public static void removeSCLicense(long pk,
long scLicensePK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeSCLicense
public static void removeSCLicense(long pk,
SCLicense scLicense)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeSCLicenses
public static void removeSCLicenses(long pk,
long[] scLicensePKs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeSCLicenses
public static void removeSCLicenses(long pk,
java.util.List<SCLicense> scLicenses)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setSCLicenses
public static void setSCLicenses(long pk,
long[] scLicensePKs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setSCLicenses
public static void setSCLicenses(long pk,
java.util.List<SCLicense> scLicenses)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPersistence
public static SCProductEntryPersistence getPersistence()
setPersistence
public void setPersistence(SCProductEntryPersistence persistence)