Liferay 6.0.5

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

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

public class SCLicensePersistenceImpl
extends BasePersistenceImpl<SCLicense>
implements SCLicensePersistence

The persistence implementation for the s c license service.

Never modify or reference this class directly. Always use SCLicenseUtil to access the s c license persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

See Also:
SCLicensePersistence, SCLicenseUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is 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 String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_CONTAINS_SCPRODUCTENTRY
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_A_R
           
static FinderPath FINDER_PATH_COUNT_BY_ACTIVE
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_A_R
           
static FinderPath FINDER_PATH_FIND_BY_ACTIVE
           
static FinderPath FINDER_PATH_GET_SCPRODUCTENTRIES
           
static FinderPath FINDER_PATH_GET_SCPRODUCTENTRIES_SIZE
           
protected  SCLicensePersistenceImpl.RemoveSCProductEntry removeSCProductEntry
           
protected  ResourcePersistence resourcePersistence
           
protected  SCFrameworkVersionPersistence scFrameworkVersionPersistence
           
protected  SCLicensePersistence scLicensePersistence
           
protected  SCProductEntryPersistence scProductEntryPersistence
           
protected  SCProductScreenshotPersistence scProductScreenshotPersistence
           
protected  SCProductVersionPersistence scProductVersionPersistence
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, 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, List<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, 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(List<SCLicense> scLicenses)
          Caches the s c licenses in the entity cache if it is enabled.
 void cacheResult(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(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)
          Determines whether the s c license has any s c product entries associated with it.
 boolean containsSCProductEntry(long pk, long scProductEntryPK)
          Determines whether the s c product entry is associated with the s c license.
 int countAll()
          Counts all the s c licenses.
 int countByA_R(boolean active, boolean recommended)
          Counts all the s c licenses where active = ? and recommended = ?.
 int countByActive(boolean active)
          Counts all the s c licenses where active = ?.
 SCLicense create(long licenseId)
          Creates a new s c license with the primary key.
 SCLicense fetchByPrimaryKey(long licenseId)
          Finds the s c license with the primary key or returns null if it could not be found.
 SCLicense fetchByPrimaryKey(Serializable primaryKey)
          Finds the s c license with the primary key or returns null if it could not be found.
 List<SCLicense> findAll()
          Finds all the s c licenses.
 List<SCLicense> findAll(int start, int end)
          Finds a range of all the s c licenses.
 List<SCLicense> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c licenses.
 SCLicense findByA_R_First(boolean active, boolean recommended, OrderByComparator orderByComparator)
          Finds the first s c license in the ordered set where active = ? and recommended = ?.
 SCLicense findByA_R_Last(boolean active, boolean recommended, OrderByComparator orderByComparator)
          Finds the last s c license in the ordered set where active = ? and recommended = ?.
 SCLicense[] findByA_R_PrevAndNext(long licenseId, boolean active, boolean recommended, OrderByComparator orderByComparator)
          Finds the s c licenses before and after the current s c license in the ordered set where active = ? and recommended = ?.
 List<SCLicense> findByA_R(boolean active, boolean recommended)
          Finds all the s c licenses where active = ? and recommended = ?.
 List<SCLicense> findByA_R(boolean active, boolean recommended, int start, int end)
          Finds a range of all the s c licenses where active = ? and recommended = ?.
 List<SCLicense> findByA_R(boolean active, boolean recommended, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c licenses where active = ? and recommended = ?.
 SCLicense findByActive_First(boolean active, OrderByComparator orderByComparator)
          Finds the first s c license in the ordered set where active = ?.
 SCLicense findByActive_Last(boolean active, OrderByComparator orderByComparator)
          Finds the last s c license in the ordered set where active = ?.
 SCLicense[] findByActive_PrevAndNext(long licenseId, boolean active, OrderByComparator orderByComparator)
          Finds the s c licenses before and after the current s c license in the ordered set where active = ?.
 List<SCLicense> findByActive(boolean active)
          Finds all the s c licenses where active = ?.
 List<SCLicense> findByActive(boolean active, int start, int end)
          Finds a range of all the s c licenses where active = ?.
 List<SCLicense> findByActive(boolean active, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c licenses where active = ?.
 SCLicense findByPrimaryKey(long licenseId)
          Finds the s c license with the primary key or throws a NoSuchLicenseException if it could not be found.
 SCLicense findByPrimaryKey(Serializable primaryKey)
          Finds the s c license with the primary key or throws a NoSuchModelException if it could not be found.
protected  SCLicense getByA_R_PrevAndNext(Session session, SCLicense scLicense, boolean active, boolean recommended, OrderByComparator orderByComparator, boolean previous)
           
protected  SCLicense getByActive_PrevAndNext(Session session, SCLicense scLicense, boolean active, OrderByComparator orderByComparator, boolean previous)
           
 List<SCProductEntry> getSCProductEntries(long pk)
          Gets all the s c product entries associated with the s c license.
 List<SCProductEntry> getSCProductEntries(long pk, int start, int end)
          Gets a range of all the s c product entries associated with the s c license.
 List<SCProductEntry> getSCProductEntries(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the s c product entries associated with the s c license.
 int getSCProductEntriesSize(long pk)
          Gets the number of s c product entries associated with the s c license.
 SCLicense remove(long licenseId)
          Removes the s c license with the primary key from the database.
 SCLicense remove(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  SCLicense removeImpl(SCLicense scLicense)
          Removes the model instance from the database.
 void removeSCProductEntries(long pk, List<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, SCProductEntry scProductEntry)
          Removes the association between the s c license and the s c product entry.
 void setSCProductEntries(long pk, List<SCProductEntry> scProductEntries)
          Sets the s c product entries associated with the s c license, removing and adding associations as necessary.
 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  SCLicense toUnwrappedModel(SCLicense scLicense)
           
 SCLicense updateImpl(SCLicense scLicense, boolean merge)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, 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
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_ACTIVE

public static final FinderPath FINDER_PATH_FIND_BY_ACTIVE

FINDER_PATH_COUNT_BY_ACTIVE

public static final FinderPath FINDER_PATH_COUNT_BY_ACTIVE

FINDER_PATH_FIND_BY_A_R

public static final FinderPath FINDER_PATH_FIND_BY_A_R

FINDER_PATH_COUNT_BY_A_R

public static final FinderPath FINDER_PATH_COUNT_BY_A_R

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_GET_SCPRODUCTENTRIES

public static final FinderPath FINDER_PATH_GET_SCPRODUCTENTRIES

FINDER_PATH_GET_SCPRODUCTENTRIES_SIZE

public static final FinderPath FINDER_PATH_GET_SCPRODUCTENTRIES_SIZE

FINDER_PATH_CONTAINS_SCPRODUCTENTRY

public static final FinderPath FINDER_PATH_CONTAINS_SCPRODUCTENTRY

scLicensePersistence

@BeanReference(type=SCLicensePersistence.class)
protected SCLicensePersistence scLicensePersistence

scFrameworkVersionPersistence

@BeanReference(type=SCFrameworkVersionPersistence.class)
protected SCFrameworkVersionPersistence scFrameworkVersionPersistence

scProductEntryPersistence

@BeanReference(type=SCProductEntryPersistence.class)
protected SCProductEntryPersistence scProductEntryPersistence

scProductScreenshotPersistence

@BeanReference(type=SCProductScreenshotPersistence.class)
protected SCProductScreenshotPersistence scProductScreenshotPersistence

scProductVersionPersistence

@BeanReference(type=SCProductVersionPersistence.class)
protected SCProductVersionPersistence scProductVersionPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected 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(SCLicense scLicense)
Caches the s c license in the entity cache if it is enabled.

Specified by:
cacheResult in interface SCLicensePersistence
Parameters:
scLicense - the s c license to cache

cacheResult

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

Specified by:
cacheResult in interface SCLicensePersistence
Parameters:
scLicenses - the s c licenses to cache

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 BasePersistence<SCLicense>
Overrides:
clearCache in class BasePersistenceImpl<SCLicense>

clearCache

public void clearCache(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 BasePersistence<SCLicense>
Overrides:
clearCache in class BasePersistenceImpl<SCLicense>
Parameters:
scLicense - the instance of this model to clear the cache for

create

public 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 SCLicensePersistence
Parameters:
licenseId - the primary key for the new s c license
Returns:
the new s c license

remove

public SCLicense remove(Serializable primaryKey)
                 throws NoSuchModelException,
                        SystemException
Removes the s c license with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<SCLicense>
Overrides:
remove in class BasePersistenceImpl<SCLicense>
Parameters:
primaryKey - the primary key of the s c license to remove
Returns:
the s c license that was removed
Throws:
NoSuchModelException - if a s c license with the primary key could not be found
SystemException - if a system exception occurred

remove

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

Specified by:
remove in interface SCLicensePersistence
Parameters:
licenseId - the primary key of the s c license to remove
Returns:
the s c license that was removed
Throws:
NoSuchLicenseException - if a s c license with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

protected SCLicense removeImpl(SCLicense scLicense)
                        throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<SCLicense>
Parameters:
scLicense - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public SCLicense updateImpl(SCLicense scLicense,
                            boolean merge)
                     throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface SCLicensePersistence
Overrides:
updateImpl in class BasePersistenceImpl<SCLicense>
Parameters:
scLicense - the model instance to update
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected SCLicense toUnwrappedModel(SCLicense scLicense)

findByPrimaryKey

public SCLicense findByPrimaryKey(Serializable primaryKey)
                           throws NoSuchModelException,
                                  SystemException
Finds the s c license with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<SCLicense>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<SCLicense>
Parameters:
primaryKey - the primary key of the s c license to find
Returns:
the s c license
Throws:
NoSuchModelException - if a s c license with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

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

Specified by:
findByPrimaryKey in interface SCLicensePersistence
Parameters:
licenseId - the primary key of the s c license to find
Returns:
the s c license
Throws:
NoSuchLicenseException - if a s c license with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public SCLicense fetchByPrimaryKey(Serializable primaryKey)
                            throws SystemException
Finds the s c license with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<SCLicense>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<SCLicense>
Parameters:
primaryKey - the primary key of the s c license to find
Returns:
the s c license, or null if a s c license with the primary key could not be found
Throws:
SystemException - if a system exception occurred

fetchByPrimaryKey

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

Specified by:
fetchByPrimaryKey in interface SCLicensePersistence
Parameters:
licenseId - the primary key of the s c license to find
Returns:
the s c license, or null if a s c license with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByActive

public List<SCLicense> findByActive(boolean active)
                             throws SystemException
Finds all the s c licenses where active = ?.

Specified by:
findByActive in interface SCLicensePersistence
Parameters:
active - the active to search with
Returns:
the matching s c licenses
Throws:
SystemException - if a system exception occurred

findByActive

public List<SCLicense> findByActive(boolean active,
                                    int start,
                                    int end)
                             throws SystemException
Finds 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 SCLicensePersistence
Parameters:
active - the active to search with
start - the lower bound of the range of s c licenses to return
end - the upper bound of the range of s c licenses to return (not inclusive)
Returns:
the range of matching s c licenses
Throws:
SystemException - if a system exception occurred

findByActive

public List<SCLicense> findByActive(boolean active,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Finds 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 SCLicensePersistence
Parameters:
active - the active to search with
start - the lower bound of the range of s c licenses to return
end - the upper bound of the range of s c licenses to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching s c licenses
Throws:
SystemException - if a system exception occurred

findByActive_First

public SCLicense findByActive_First(boolean active,
                                    OrderByComparator orderByComparator)
                             throws NoSuchLicenseException,
                                    SystemException
Finds 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 SCLicensePersistence
Parameters:
active - the active to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching s c license
Throws:
NoSuchLicenseException - if a matching s c license could not be found
SystemException - if a system exception occurred

findByActive_Last

public SCLicense findByActive_Last(boolean active,
                                   OrderByComparator orderByComparator)
                            throws NoSuchLicenseException,
                                   SystemException
Finds 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 SCLicensePersistence
Parameters:
active - the active to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching s c license
Throws:
NoSuchLicenseException - if a matching s c license could not be found
SystemException - if a system exception occurred

findByActive_PrevAndNext

public SCLicense[] findByActive_PrevAndNext(long licenseId,
                                            boolean active,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchLicenseException,
                                            SystemException
Finds 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 SCLicensePersistence
Parameters:
licenseId - the primary key of the current s c license
active - the active to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next s c license
Throws:
NoSuchLicenseException - if a s c license with the primary key could not be found
SystemException - if a system exception occurred

getByActive_PrevAndNext

protected SCLicense getByActive_PrevAndNext(Session session,
                                            SCLicense scLicense,
                                            boolean active,
                                            OrderByComparator orderByComparator,
                                            boolean previous)

findByA_R

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

Specified by:
findByA_R in interface SCLicensePersistence
Parameters:
active - the active to search with
recommended - the recommended to search with
Returns:
the matching s c licenses
Throws:
SystemException - if a system exception occurred

findByA_R

public List<SCLicense> findByA_R(boolean active,
                                 boolean recommended,
                                 int start,
                                 int end)
                          throws SystemException
Finds 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 SCLicensePersistence
Parameters:
active - the active to search with
recommended - the recommended to search with
start - the lower bound of the range of s c licenses to return
end - the upper bound of the range of s c licenses to return (not inclusive)
Returns:
the range of matching s c licenses
Throws:
SystemException - if a system exception occurred

findByA_R

public List<SCLicense> findByA_R(boolean active,
                                 boolean recommended,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Finds 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 SCLicensePersistence
Parameters:
active - the active to search with
recommended - the recommended to search with
start - the lower bound of the range of s c licenses to return
end - the upper bound of the range of s c licenses to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching s c licenses
Throws:
SystemException - if a system exception occurred

findByA_R_First

public SCLicense findByA_R_First(boolean active,
                                 boolean recommended,
                                 OrderByComparator orderByComparator)
                          throws NoSuchLicenseException,
                                 SystemException
Finds 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 SCLicensePersistence
Parameters:
active - the active to search with
recommended - the recommended to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching s c license
Throws:
NoSuchLicenseException - if a matching s c license could not be found
SystemException - if a system exception occurred

findByA_R_Last

public SCLicense findByA_R_Last(boolean active,
                                boolean recommended,
                                OrderByComparator orderByComparator)
                         throws NoSuchLicenseException,
                                SystemException
Finds 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 SCLicensePersistence
Parameters:
active - the active to search with
recommended - the recommended to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching s c license
Throws:
NoSuchLicenseException - if a matching s c license could not be found
SystemException - if a system exception occurred

findByA_R_PrevAndNext

public SCLicense[] findByA_R_PrevAndNext(long licenseId,
                                         boolean active,
                                         boolean recommended,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchLicenseException,
                                         SystemException
Finds 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 SCLicensePersistence
Parameters:
licenseId - the primary key of the current s c license
active - the active to search with
recommended - the recommended to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next s c license
Throws:
NoSuchLicenseException - if a s c license with the primary key could not be found
SystemException - if a system exception occurred

getByA_R_PrevAndNext

protected SCLicense getByA_R_PrevAndNext(Session session,
                                         SCLicense scLicense,
                                         boolean active,
                                         boolean recommended,
                                         OrderByComparator orderByComparator,
                                         boolean previous)

findAll

public List<SCLicense> findAll()
                        throws SystemException
Finds all the s c licenses.

Specified by:
findAll in interface SCLicensePersistence
Returns:
the s c licenses
Throws:
SystemException - if a system exception occurred

findAll

public List<SCLicense> findAll(int start,
                               int end)
                        throws SystemException
Finds 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 SCLicensePersistence
Parameters:
start - the lower bound of the range of s c licenses to return
end - the upper bound of the range of s c licenses to return (not inclusive)
Returns:
the range of s c licenses
Throws:
SystemException - if a system exception occurred

findAll

public List<SCLicense> findAll(int start,
                               int end,
                               OrderByComparator orderByComparator)
                        throws SystemException
Finds 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 SCLicensePersistence
Parameters:
start - the lower bound of the range of s c licenses to return
end - the upper bound of the range of s c licenses to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of s c licenses
Throws:
SystemException - if a system exception occurred

removeByActive

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

Specified by:
removeByActive in interface SCLicensePersistence
Parameters:
active - the active to search with
Throws:
SystemException - if a system exception occurred

removeByA_R

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

Specified by:
removeByA_R in interface SCLicensePersistence
Parameters:
active - the active to search with
recommended - the recommended to search with
Throws:
SystemException - if a system exception occurred

removeAll

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

Specified by:
removeAll in interface SCLicensePersistence
Throws:
SystemException - if a system exception occurred

countByActive

public int countByActive(boolean active)
                  throws SystemException
Counts all the s c licenses where active = ?.

Specified by:
countByActive in interface SCLicensePersistence
Parameters:
active - the active to search with
Returns:
the number of matching s c licenses
Throws:
SystemException - if a system exception occurred

countByA_R

public int countByA_R(boolean active,
                      boolean recommended)
               throws SystemException
Counts all the s c licenses where active = ? and recommended = ?.

Specified by:
countByA_R in interface SCLicensePersistence
Parameters:
active - the active to search with
recommended - the recommended to search with
Returns:
the number of matching s c licenses
Throws:
SystemException - if a system exception occurred

countAll

public int countAll()
             throws SystemException
Counts all the s c licenses.

Specified by:
countAll in interface SCLicensePersistence
Returns:
the number of s c licenses
Throws:
SystemException - if a system exception occurred

getSCProductEntries

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

Specified by:
getSCProductEntries in interface SCLicensePersistence
Parameters:
pk - the primary key of the s c license to get the associated s c product entries for
Returns:
the s c product entries associated with the s c license
Throws:
SystemException - if a system exception occurred

getSCProductEntries

public List<SCProductEntry> getSCProductEntries(long pk,
                                                int start,
                                                int end)
                                         throws SystemException
Gets 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 SCLicensePersistence
Parameters:
pk - the primary key of the s c license to get the associated s c product entries for
start - the lower bound of the range of s c licenses to return
end - the upper bound of the range of s c licenses to return (not inclusive)
Returns:
the range of s c product entries associated with the s c license
Throws:
SystemException - if a system exception occurred

getSCProductEntries

public List<SCProductEntry> getSCProductEntries(long pk,
                                                int start,
                                                int end,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Gets 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 SCLicensePersistence
Parameters:
pk - the primary key of the s c license to get the associated s c product entries for
start - the lower bound of the range of s c licenses to return
end - the upper bound of the range of s c licenses to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of s c product entries associated with the s c license
Throws:
SystemException - if a system exception occurred

getSCProductEntriesSize

public int getSCProductEntriesSize(long pk)
                            throws SystemException
Gets the number of s c product entries associated with the s c license.

Specified by:
getSCProductEntriesSize in interface SCLicensePersistence
Parameters:
pk - the primary key of the s c license to get the number of associated s c product entries for
Returns:
the number of s c product entries associated with the s c license
Throws:
SystemException - if a system exception occurred

containsSCProductEntry

public boolean containsSCProductEntry(long pk,
                                      long scProductEntryPK)
                               throws SystemException
Determines whether the s c product entry is associated with the s c license.

Specified by:
containsSCProductEntry in interface SCLicensePersistence
Parameters:
pk - the primary key of the s c license
scProductEntryPK - the primary key of the s c product entry
Returns:
whether the s c product entry is associated with the s c license
Throws:
SystemException - if a system exception occurred

containsSCProductEntries

public boolean containsSCProductEntries(long pk)
                                 throws SystemException
Determines whether the s c license has any s c product entries associated with it.

Specified by:
containsSCProductEntries in interface SCLicensePersistence
Parameters:
pk - the primary key of the s c license to check for associations with s c product entries
Returns:
whether the s c license has any s c product entries associated with it
Throws:
SystemException - if a system exception occurred

addSCProductEntry

public void addSCProductEntry(long pk,
                              long scProductEntryPK)
                       throws 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 SCLicensePersistence
Parameters:
pk - the primary key of the s c license
scProductEntryPK - the primary key of the s c product entry
Throws:
SystemException - if a system exception occurred

addSCProductEntry

public void addSCProductEntry(long pk,
                              SCProductEntry scProductEntry)
                       throws 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 SCLicensePersistence
Parameters:
pk - the primary key of the s c license
scProductEntry - the s c product entry
Throws:
SystemException - if a system exception occurred

addSCProductEntries

public void addSCProductEntries(long pk,
                                long[] scProductEntryPKs)
                         throws 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 SCLicensePersistence
Parameters:
pk - the primary key of the s c license
scProductEntryPKs - the primary keys of the s c product entries
Throws:
SystemException - if a system exception occurred

addSCProductEntries

public void addSCProductEntries(long pk,
                                List<SCProductEntry> scProductEntries)
                         throws 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 SCLicensePersistence
Parameters:
pk - the primary key of the s c license
scProductEntries - the s c product entries
Throws:
SystemException - if a system exception occurred

clearSCProductEntries

public void clearSCProductEntries(long pk)
                           throws 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 SCLicensePersistence
Parameters:
pk - the primary key of the s c license to clear the associated s c product entries from
Throws:
SystemException - if a system exception occurred

removeSCProductEntry

public void removeSCProductEntry(long pk,
                                 long scProductEntryPK)
                          throws 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 SCLicensePersistence
Parameters:
pk - the primary key of the s c license
scProductEntryPK - the primary key of the s c product entry
Throws:
SystemException - if a system exception occurred

removeSCProductEntry

public void removeSCProductEntry(long pk,
                                 SCProductEntry scProductEntry)
                          throws 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 SCLicensePersistence
Parameters:
pk - the primary key of the s c license
scProductEntry - the s c product entry
Throws:
SystemException - if a system exception occurred

removeSCProductEntries

public void removeSCProductEntries(long pk,
                                   long[] scProductEntryPKs)
                            throws 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 SCLicensePersistence
Parameters:
pk - the primary key of the s c license
scProductEntryPKs - the primary keys of the s c product entries
Throws:
SystemException - if a system exception occurred

removeSCProductEntries

public void removeSCProductEntries(long pk,
                                   List<SCProductEntry> scProductEntries)
                            throws 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 SCLicensePersistence
Parameters:
pk - the primary key of the s c license
scProductEntries - the s c product entries
Throws:
SystemException - if a system exception occurred

setSCProductEntries

public void setSCProductEntries(long pk,
                                long[] scProductEntryPKs)
                         throws 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 SCLicensePersistence
Parameters:
pk - the primary key of the s c license to set the associations for
scProductEntryPKs - the primary keys of the s c product entries to be associated with the s c license
Throws:
SystemException - if a system exception occurred

setSCProductEntries

public void setSCProductEntries(long pk,
                                List<SCProductEntry> scProductEntries)
                         throws 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 SCLicensePersistence
Parameters:
pk - the primary key of the s c license to set the associations for
scProductEntries - the s c product entries to be associated with the s c license
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

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


Liferay 6.0.5