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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.SCLicense>
      extended by com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.softwarecatalog.model.SCLicense>, com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence

public class SCLicensePersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.SCLicense>
implements com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence

The persistence implementation for the s c license service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
SCLicensePersistence, SCLicenseUtil
Generated:

Nested Class Summary
protected  class SCLicensePersistenceImpl.AddSCProductEntry
           
protected  class SCLicensePersistenceImpl.ClearSCProductEntries
           
protected  class SCLicensePersistenceImpl.ContainsSCProductEntry
           
protected  class SCLicensePersistenceImpl.RemoveSCProductEntry
           
 
Field Summary
protected  SCLicensePersistenceImpl.AddSCProductEntry addSCProductEntry
           
protected  SCLicensePersistenceImpl.ClearSCProductEntries clearSCProductEntries
           
protected  SCLicensePersistenceImpl.ContainsSCProductEntry containsSCProductEntry
           
static java.lang.String FINDER_CLASS_NAME_ENTITY
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_SCPRODUCTENTRY
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_A_R
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_ACTIVE
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_SCPRODUCTENTRIES
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_SCPRODUCTENTRIES_SIZE
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_A_R
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_ACTIVE
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_A_R
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVE
           
protected  SCLicensePersistenceImpl.RemoveSCProductEntry removeSCProductEntry
           
protected  com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence
           
protected  com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence scFrameworkVersionPersistence
           
protected  com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence scLicensePersistence
           
protected  com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence scProductEntryPersistence
           
protected  com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence scProductScreenshotPersistence
           
protected  com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence scProductVersionPersistence
           
protected  com.liferay.portal.service.persistence.UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
SCLicensePersistenceImpl()
           
 
Method Summary
 void addSCProductEntries(long pk, java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
          Adds an association between the s c license and the s c product entries.
 void addSCProductEntries(long pk, long[] scProductEntryPKs)
          Adds an association between the s c license and the s c product entries.
 void addSCProductEntry(long pk, long scProductEntryPK)
          Adds an association between the s c license and the s c product entry.
 void addSCProductEntry(long pk, com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
          Adds an association between the s c license and the s c product entry.
 void afterPropertiesSet()
          Initializes the s c license persistence.
 void cacheResult(java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
          Caches the s c licenses in the entity cache if it is enabled.
 void cacheResult(com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
          Caches the s c license in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all s c licenses.
 void clearCache(java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
           
 void clearCache(com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
          Clears the cache for the s c license.
 void clearSCProductEntries(long pk)
          Clears all associations between the s c license and its s c product entries.
 boolean containsSCProductEntries(long pk)
          Returns true if the s c license has any s c product entries associated with it.
 boolean containsSCProductEntry(long pk, long scProductEntryPK)
          Returns true if the s c product entry is associated with the s c license.
 int countAll()
          Returns the number of s c licenses.
 int countByA_R(boolean active, boolean recommended)
          Returns the number of s c licenses where active = ? and recommended = ?.
 int countByActive(boolean active)
          Returns the number of s c licenses where active = ?.
 com.liferay.portlet.softwarecatalog.model.SCLicense create(long licenseId)
          Creates a new s c license with the primary key.
 void destroy()
           
 com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(long licenseId)
          Returns the s c license with the primary key or returns null if it could not be found.
 com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(java.io.Serializable primaryKey)
          Returns the s c license with the primary key or returns null if it could not be found.
 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 = ?.
 int filterCountByActive(boolean active)
          Returns the number of s c licenses that the user has permission to view where active = ?.
 com.liferay.portlet.softwarecatalog.model.SCLicense[] filterFindByA_R_PrevAndNext(long licenseId, boolean active, boolean recommended, com.liferay.portal.kernel.util.OrderByComparator 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 = ?.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByA_R(boolean active, boolean recommended)
          Returns all the s c licenses that the user has permission to view where active = ? and recommended = ?.
 java.util.List<com.liferay.portlet.softwarecatalog.model.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 = ?.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByA_R(boolean active, boolean recommended, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the s c licenses that the user has permissions to view where active = ? and recommended = ?.
 com.liferay.portlet.softwarecatalog.model.SCLicense[] filterFindByActive_PrevAndNext(long licenseId, boolean active, com.liferay.portal.kernel.util.OrderByComparator 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 = ?.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByActive(boolean active)
          Returns all the s c licenses that the user has permission to view where active = ?.
 java.util.List<com.liferay.portlet.softwarecatalog.model.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 = ?.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByActive(boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the s c licenses that the user has permissions to view where active = ?.
protected  com.liferay.portlet.softwarecatalog.model.SCLicense filterGetByA_R_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.softwarecatalog.model.SCLicense scLicense, boolean active, boolean recommended, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.softwarecatalog.model.SCLicense filterGetByActive_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.softwarecatalog.model.SCLicense scLicense, boolean active, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll()
          Returns all the s c licenses.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(int start, int end)
          Returns a range of all the s c licenses.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the s c licenses.
 com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First(boolean active, boolean recommended, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first s c license in the ordered set where active = ? and recommended = ?.
 com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last(boolean active, boolean recommended, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last s c license in the ordered set where active = ? and recommended = ?.
 com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext(long licenseId, boolean active, boolean recommended, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the s c licenses before and after the current s c license in the ordered set where active = ? and recommended = ?.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(boolean active, boolean recommended)
          Returns all the s c licenses where active = ? and recommended = ?.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(boolean active, boolean recommended, int start, int end)
          Returns a range of all the s c licenses where active = ? and recommended = ?.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(boolean active, boolean recommended, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the s c licenses where active = ? and recommended = ?.
 com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_First(boolean active, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first s c license in the ordered set where active = ?.
 com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last(boolean active, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last s c license in the ordered set where active = ?.
 com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext(long licenseId, boolean active, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the s c licenses before and after the current s c license in the ordered set where active = ?.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(boolean active)
          Returns all the s c licenses where active = ?.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(boolean active, int start, int end)
          Returns a range of all the s c licenses where active = ?.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the s c licenses where active = ?.
 com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(long licenseId)
          Returns the s c license with the primary key or throws a NoSuchLicenseException if it could not be found.
 com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(java.io.Serializable primaryKey)
          Returns the s c license with the primary key or throws a NoSuchModelException if it could not be found.
protected  com.liferay.portlet.softwarecatalog.model.SCLicense getByA_R_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.softwarecatalog.model.SCLicense scLicense, boolean active, boolean recommended, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.softwarecatalog.model.SCLicense getByActive_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.softwarecatalog.model.SCLicense scLicense, boolean active, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(long pk)
          Returns all the s c product entries associated with the s c license.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(long pk, int start, int end)
          Returns a range of all the s c product entries associated with the s c license.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the s c product entries associated with the s c license.
 int getSCProductEntriesSize(long pk)
          Returns the number of s c product entries associated with the s c license.
 com.liferay.portlet.softwarecatalog.model.SCLicense remove(long licenseId)
          Removes the s c license with the primary key from the database.
 com.liferay.portlet.softwarecatalog.model.SCLicense remove(java.io.Serializable primaryKey)
          Removes the s c license with the primary key from the database.
 void removeAll()
          Removes all the s c licenses from the database.
 void removeByA_R(boolean active, boolean recommended)
          Removes all the s c licenses where active = ? and recommended = ? from the database.
 void removeByActive(boolean active)
          Removes all the s c licenses where active = ? from the database.
protected  com.liferay.portlet.softwarecatalog.model.SCLicense removeImpl(com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
           
 void removeSCProductEntries(long pk, java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
          Removes the association between the s c license and the s c product entries.
 void removeSCProductEntries(long pk, long[] scProductEntryPKs)
          Removes the association between the s c license and the s c product entries.
 void removeSCProductEntry(long pk, long scProductEntryPK)
          Removes the association between the s c license and the s c product entry.
 void removeSCProductEntry(long pk, com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
          Removes the association between the s c license and the s c product entry.
 void setSCProductEntries(long pk, java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
          Sets the s c product entries associated with the s c license, removing and adding associations as necessary.
 void setSCProductEntries(long pk, long[] scProductEntryPKs)
          Sets the s c product entries associated with the s c license, removing and adding associations as necessary.
protected  com.liferay.portlet.softwarecatalog.model.SCLicense toUnwrappedModel(com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
           
 com.liferay.portlet.softwarecatalog.model.SCLicense updateImpl(com.liferay.portlet.softwarecatalog.model.SCLicense scLicense, boolean merge)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final java.lang.String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_BY_ACTIVE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_ACTIVE

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVE

FINDER_PATH_COUNT_BY_ACTIVE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_ACTIVE

FINDER_PATH_WITH_PAGINATION_FIND_BY_A_R

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_A_R

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_A_R

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_A_R

FINDER_PATH_COUNT_BY_A_R

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_A_R

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_GET_SCPRODUCTENTRIES

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_SCPRODUCTENTRIES

FINDER_PATH_GET_SCPRODUCTENTRIES_SIZE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_SCPRODUCTENTRIES_SIZE

FINDER_PATH_CONTAINS_SCPRODUCTENTRY

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_SCPRODUCTENTRY

scFrameworkVersionPersistence

@BeanReference(type=com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence.class)
protected com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence scFrameworkVersionPersistence

scLicensePersistence

@BeanReference(type=com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence.class)
protected com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence scLicensePersistence

scProductEntryPersistence

@BeanReference(type=com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence.class)
protected com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence scProductEntryPersistence

scProductScreenshotPersistence

@BeanReference(type=com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence.class)
protected com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence scProductScreenshotPersistence

scProductVersionPersistence

@BeanReference(type=com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence.class)
protected com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence scProductVersionPersistence

resourcePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourcePersistence.class)
protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserPersistence.class)
protected com.liferay.portal.service.persistence.UserPersistence userPersistence

containsSCProductEntry

protected SCLicensePersistenceImpl.ContainsSCProductEntry containsSCProductEntry

addSCProductEntry

protected SCLicensePersistenceImpl.AddSCProductEntry addSCProductEntry

clearSCProductEntries

protected SCLicensePersistenceImpl.ClearSCProductEntries clearSCProductEntries

removeSCProductEntry

protected SCLicensePersistenceImpl.RemoveSCProductEntry removeSCProductEntry
Constructor Detail

SCLicensePersistenceImpl

public SCLicensePersistenceImpl()
Method Detail

cacheResult

public void cacheResult(com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
Caches the s c license in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
scLicense - the s c license

cacheResult

public void cacheResult(java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
Caches the s c licenses in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
scLicenses - the s c licenses

clearCache

public void clearCache()
Clears the cache for all s c licenses.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.softwarecatalog.model.SCLicense>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.SCLicense>

clearCache

public void clearCache(com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
Clears the cache for the s c license.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.softwarecatalog.model.SCLicense>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.SCLicense>

clearCache

public void clearCache(java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.softwarecatalog.model.SCLicense>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.SCLicense>

create

public com.liferay.portlet.softwarecatalog.model.SCLicense create(long licenseId)
Creates a new s c license with the primary key. Does not add the s c license to the database.

Specified by:
create in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
licenseId - the primary key for the new s c license
Returns:
the new s c license

remove

public com.liferay.portlet.softwarecatalog.model.SCLicense remove(long licenseId)
                                                           throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                  com.liferay.portal.kernel.exception.SystemException
Removes the s c license with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
licenseId - the primary key of the s c license
Returns:
the s c license that was removed
Throws:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException - if a s c license with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

remove

public com.liferay.portlet.softwarecatalog.model.SCLicense remove(java.io.Serializable primaryKey)
                                                           throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                  com.liferay.portal.kernel.exception.SystemException
Removes the s c license with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.softwarecatalog.model.SCLicense>
Overrides:
remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.SCLicense>
Parameters:
primaryKey - the primary key of the s c license
Returns:
the s c license that was removed
Throws:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException - if a s c license with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeImpl

protected com.liferay.portlet.softwarecatalog.model.SCLicense removeImpl(com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
                                                                  throws com.liferay.portal.kernel.exception.SystemException
Overrides:
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.SCLicense>
Throws:
com.liferay.portal.kernel.exception.SystemException

updateImpl

public com.liferay.portlet.softwarecatalog.model.SCLicense updateImpl(com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
                                                                      boolean merge)
                                                               throws com.liferay.portal.kernel.exception.SystemException
Specified by:
updateImpl in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Overrides:
updateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.SCLicense>
Throws:
com.liferay.portal.kernel.exception.SystemException

toUnwrappedModel

protected com.liferay.portlet.softwarecatalog.model.SCLicense toUnwrappedModel(com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)

findByPrimaryKey

public com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(java.io.Serializable primaryKey)
                                                                     throws com.liferay.portal.NoSuchModelException,
                                                                            com.liferay.portal.kernel.exception.SystemException
Returns the s c license with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.softwarecatalog.model.SCLicense>
Overrides:
findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.SCLicense>
Parameters:
primaryKey - the primary key of the s c license
Returns:
the s c license
Throws:
com.liferay.portal.NoSuchModelException - if a s c license with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByPrimaryKey

public com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(long licenseId)
                                                                     throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                            com.liferay.portal.kernel.exception.SystemException
Returns the s c license with the primary key or throws a NoSuchLicenseException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
licenseId - the primary key of the s c license
Returns:
the s c license
Throws:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException - if a s c license with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(java.io.Serializable primaryKey)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns the s c license with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.softwarecatalog.model.SCLicense>
Overrides:
fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.SCLicense>
Parameters:
primaryKey - 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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(long licenseId)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns the s c license with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByActive

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(boolean active)
                                                                                 throws com.liferay.portal.kernel.exception.SystemException
Returns all the s c licenses where active = ?.

Specified by:
findByActive in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
active - the active
Returns:
the matching s c licenses
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByActive

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(boolean active,
                                                                                        int start,
                                                                                        int end)
                                                                                 throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByActive in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByActive

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(boolean active,
                                                                                        int start,
                                                                                        int end,
                                                                                        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                 throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByActive in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByActive_First

public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_First(boolean active,
                                                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                       throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                              com.liferay.portal.kernel.exception.SystemException
Returns the first s c license in the ordered set 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.

Specified by:
findByActive_First in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching s c license
Throws:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException - if a matching s c license could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByActive_Last

public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last(boolean active,
                                                                             com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                      throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                             com.liferay.portal.kernel.exception.SystemException
Returns the last s c license in the ordered set 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.

Specified by:
findByActive_Last in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching s c license
Throws:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException - if a matching s c license could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByActive_PrevAndNext

public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext(long licenseId,
                                                                                      boolean active,
                                                                                      com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                               throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                                      com.liferay.portal.kernel.exception.SystemException
Returns the s c licenses before and after the current s c license in the ordered set 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.

Specified by:
findByActive_PrevAndNext in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException - if a s c license with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByActive_PrevAndNext

protected com.liferay.portlet.softwarecatalog.model.SCLicense getByActive_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                      com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
                                                                                      boolean active,
                                                                                      com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                      boolean previous)

filterFindByActive

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByActive(boolean active)
                                                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns all the s c licenses that the user has permission to view where active = ?.

Specified by:
filterFindByActive in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
active - the active
Returns:
the matching s c licenses that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByActive

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByActive(boolean active,
                                                                                              int start,
                                                                                              int end)
                                                                                       throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
filterFindByActive in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByActive

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByActive(boolean active,
                                                                                              int start,
                                                                                              int end,
                                                                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                       throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
filterFindByActive in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByActive_PrevAndNext

public com.liferay.portlet.softwarecatalog.model.SCLicense[] filterFindByActive_PrevAndNext(long licenseId,
                                                                                            boolean active,
                                                                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                     throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                                            com.liferay.portal.kernel.exception.SystemException
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 = ?.

Specified by:
filterFindByActive_PrevAndNext in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException - if a s c license with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterGetByActive_PrevAndNext

protected com.liferay.portlet.softwarecatalog.model.SCLicense filterGetByActive_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                            com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
                                                                                            boolean active,
                                                                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                            boolean previous)

findByA_R

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(boolean active,
                                                                                     boolean recommended)
                                                                              throws com.liferay.portal.kernel.exception.SystemException
Returns all the s c licenses where active = ? and recommended = ?.

Specified by:
findByA_R in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
active - the active
recommended - the recommended
Returns:
the matching s c licenses
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByA_R

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(boolean active,
                                                                                     boolean recommended,
                                                                                     int start,
                                                                                     int end)
                                                                              throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByA_R in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByA_R

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(boolean active,
                                                                                     boolean recommended,
                                                                                     int start,
                                                                                     int end,
                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                              throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByA_R in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByA_R_First

public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First(boolean active,
                                                                           boolean recommended,
                                                                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                    throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                           com.liferay.portal.kernel.exception.SystemException
Returns the first s c license in the ordered set 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.

Specified by:
findByA_R_First in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException - if a matching s c license could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByA_R_Last

public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last(boolean active,
                                                                          boolean recommended,
                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                   throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                          com.liferay.portal.kernel.exception.SystemException
Returns the last s c license in the ordered set 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.

Specified by:
findByA_R_Last in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException - if a matching s c license could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByA_R_PrevAndNext

public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext(long licenseId,
                                                                                   boolean active,
                                                                                   boolean recommended,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                            throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                                   com.liferay.portal.kernel.exception.SystemException
Returns the s c licenses before and after the current s c license in the ordered set 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.

Specified by:
findByA_R_PrevAndNext in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException - if a s c license with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByA_R_PrevAndNext

protected com.liferay.portlet.softwarecatalog.model.SCLicense getByA_R_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                   com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
                                                                                   boolean active,
                                                                                   boolean recommended,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                   boolean previous)

filterFindByA_R

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByA_R(boolean active,
                                                                                           boolean recommended)
                                                                                    throws com.liferay.portal.kernel.exception.SystemException
Returns all the s c licenses that the user has permission to view where active = ? and recommended = ?.

Specified by:
filterFindByA_R in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
active - the active
recommended - the recommended
Returns:
the matching s c licenses that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByA_R

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByA_R(boolean active,
                                                                                           boolean recommended,
                                                                                           int start,
                                                                                           int end)
                                                                                    throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
filterFindByA_R in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByA_R

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByA_R(boolean active,
                                                                                           boolean recommended,
                                                                                           int start,
                                                                                           int end,
                                                                                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                    throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
filterFindByA_R in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByA_R_PrevAndNext

public com.liferay.portlet.softwarecatalog.model.SCLicense[] filterFindByA_R_PrevAndNext(long licenseId,
                                                                                         boolean active,
                                                                                         boolean recommended,
                                                                                         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                  throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException,
                                                                                         com.liferay.portal.kernel.exception.SystemException
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 = ?.

Specified by:
filterFindByA_R_PrevAndNext in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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:
com.liferay.portlet.softwarecatalog.NoSuchLicenseException - if a s c license with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterGetByA_R_PrevAndNext

protected com.liferay.portlet.softwarecatalog.model.SCLicense filterGetByA_R_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
                                                                                         boolean active,
                                                                                         boolean recommended,
                                                                                         com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                         boolean previous)

findAll

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll()
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Returns all the s c licenses.

Specified by:
findAll in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Returns:
the s c licenses
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(int start,
                                                                                   int end)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findAll in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(int start,
                                                                                   int end,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findAll in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByActive

public void removeByActive(boolean active)
                    throws com.liferay.portal.kernel.exception.SystemException
Removes all the s c licenses where active = ? from the database.

Specified by:
removeByActive in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
active - the active
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByA_R

public void removeByA_R(boolean active,
                        boolean recommended)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes all the s c licenses where active = ? and recommended = ? from the database.

Specified by:
removeByA_R in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
active - the active
recommended - the recommended
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeAll

public void removeAll()
               throws com.liferay.portal.kernel.exception.SystemException
Removes all the s c licenses from the database.

Specified by:
removeAll in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByActive

public int countByActive(boolean active)
                  throws com.liferay.portal.kernel.exception.SystemException
Returns the number of s c licenses where active = ?.

Specified by:
countByActive in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
active - the active
Returns:
the number of matching s c licenses
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterCountByActive

public int filterCountByActive(boolean active)
                        throws com.liferay.portal.kernel.exception.SystemException
Returns the number of s c licenses that the user has permission to view where active = ?.

Specified by:
filterCountByActive in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
active - the active
Returns:
the number of matching s c licenses that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByA_R

public int countByA_R(boolean active,
                      boolean recommended)
               throws com.liferay.portal.kernel.exception.SystemException
Returns the number of s c licenses where active = ? and recommended = ?.

Specified by:
countByA_R in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
active - the active
recommended - the recommended
Returns:
the number of matching s c licenses
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterCountByA_R

public int filterCountByA_R(boolean active,
                            boolean recommended)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns the number of s c licenses that the user has permission to view where active = ? and recommended = ?.

Specified by:
filterCountByA_R in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
active - the active
recommended - the recommended
Returns:
the number of matching s c licenses that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countAll

public int countAll()
             throws com.liferay.portal.kernel.exception.SystemException
Returns the number of s c licenses.

Specified by:
countAll in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Returns:
the number of s c licenses
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getSCProductEntries

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(long pk)
                                                                                             throws com.liferay.portal.kernel.exception.SystemException
Returns all the s c product entries associated with the s c license.

Specified by:
getSCProductEntries in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
pk - the primary key of the s c license
Returns:
the s c product entries associated with the s c license
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getSCProductEntries

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(long pk,
                                                                                                    int start,
                                                                                                    int end)
                                                                                             throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
getSCProductEntries in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getSCProductEntries

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(long pk,
                                                                                                    int start,
                                                                                                    int end,
                                                                                                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                             throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
getSCProductEntries in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getSCProductEntriesSize

public int getSCProductEntriesSize(long pk)
                            throws com.liferay.portal.kernel.exception.SystemException
Returns the number of s c product entries associated with the s c license.

Specified by:
getSCProductEntriesSize in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
pk - the primary key of the s c license
Returns:
the number of s c product entries associated with the s c license
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsSCProductEntry

public boolean containsSCProductEntry(long pk,
                                      long scProductEntryPK)
                               throws com.liferay.portal.kernel.exception.SystemException
Returns true if the s c product entry is associated with the s c license.

Specified by:
containsSCProductEntry in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsSCProductEntries

public boolean containsSCProductEntries(long pk)
                                 throws com.liferay.portal.kernel.exception.SystemException
Returns true if the s c license has any s c product entries associated with it.

Specified by:
containsSCProductEntries in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addSCProductEntry

public void addSCProductEntry(long pk,
                              long scProductEntryPK)
                       throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
addSCProductEntry in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
pk - the primary key of the s c license
scProductEntryPK - the primary key of the s c product entry
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addSCProductEntry

public void addSCProductEntry(long pk,
                              com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
                       throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
addSCProductEntry in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
pk - the primary key of the s c license
scProductEntry - the s c product entry
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addSCProductEntries

public void addSCProductEntries(long pk,
                                long[] scProductEntryPKs)
                         throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
addSCProductEntries in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
pk - the primary key of the s c license
scProductEntryPKs - the primary keys of the s c product entries
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addSCProductEntries

public void addSCProductEntries(long pk,
                                java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
                         throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
addSCProductEntries in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
pk - the primary key of the s c license
scProductEntries - the s c product entries
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

clearSCProductEntries

public void clearSCProductEntries(long pk)
                           throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
clearSCProductEntries in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
pk - the primary key of the s c license to clear the associated s c product entries from
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeSCProductEntry

public void removeSCProductEntry(long pk,
                                 long scProductEntryPK)
                          throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
removeSCProductEntry in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
pk - the primary key of the s c license
scProductEntryPK - the primary key of the s c product entry
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeSCProductEntry

public void removeSCProductEntry(long pk,
                                 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
                          throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
removeSCProductEntry in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
pk - the primary key of the s c license
scProductEntry - the s c product entry
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeSCProductEntries

public void removeSCProductEntries(long pk,
                                   long[] scProductEntryPKs)
                            throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
removeSCProductEntries in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
pk - the primary key of the s c license
scProductEntryPKs - the primary keys of the s c product entries
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeSCProductEntries

public void removeSCProductEntries(long pk,
                                   java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
                            throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
removeSCProductEntries in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
pk - the primary key of the s c license
scProductEntries - the s c product entries
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setSCProductEntries

public void setSCProductEntries(long pk,
                                long[] scProductEntryPKs)
                         throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
setSCProductEntries in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setSCProductEntries

public void setSCProductEntries(long pk,
                                java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
                         throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
setSCProductEntries in interface com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence
Parameters:
pk - the primary key of the s c license
scProductEntries - the s c product entries to be associated with the s c license
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the s c license persistence.


destroy

public void destroy()