Liferay 6.0.5

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

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

public class SCProductVersionPersistenceImpl
extends BasePersistenceImpl<SCProductVersion>
implements SCProductVersionPersistence

The persistence implementation for the s c product version service.

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

Caching information and settings can be found in portal.properties

See Also:
SCProductVersionPersistence, SCProductVersionUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Nested Class Summary
protected  class SCProductVersionPersistenceImpl.AddSCFrameworkVersion
           
protected  class SCProductVersionPersistenceImpl.ClearSCFrameworkVersions
           
protected  class SCProductVersionPersistenceImpl.ContainsSCFrameworkVersion
           
protected  class SCProductVersionPersistenceImpl.RemoveSCFrameworkVersion
           
 
Field Summary
protected  SCProductVersionPersistenceImpl.AddSCFrameworkVersion addSCFrameworkVersion
           
protected  SCProductVersionPersistenceImpl.ClearSCFrameworkVersions clearSCFrameworkVersions
           
protected  SCProductVersionPersistenceImpl.ContainsSCFrameworkVersion containsSCFrameworkVersion
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_CONTAINS_SCFRAMEWORKVERSION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_DIRECTDOWNLOADURL
           
static FinderPath FINDER_PATH_COUNT_BY_PRODUCTENTRYID
           
static FinderPath FINDER_PATH_FETCH_BY_DIRECTDOWNLOADURL
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_PRODUCTENTRYID
           
static FinderPath FINDER_PATH_GET_SCFRAMEWORKVERSIONS
           
static FinderPath FINDER_PATH_GET_SCFRAMEWORKVERSIONS_SIZE
           
protected  SCProductVersionPersistenceImpl.RemoveSCFrameworkVersion removeSCFrameworkVersion
           
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
SCProductVersionPersistenceImpl()
           
 
Method Summary
 void addSCFrameworkVersion(long pk, long scFrameworkVersionPK)
          Adds an association between the s c product version and the s c framework version.
 void addSCFrameworkVersion(long pk, SCFrameworkVersion scFrameworkVersion)
          Adds an association between the s c product version and the s c framework version.
 void addSCFrameworkVersions(long pk, List<SCFrameworkVersion> scFrameworkVersions)
          Adds an association between the s c product version and the s c framework versions.
 void addSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
          Adds an association between the s c product version and the s c framework versions.
 void afterPropertiesSet()
          Initializes the s c product version persistence.
 void cacheResult(List<SCProductVersion> scProductVersions)
          Caches the s c product versions in the entity cache if it is enabled.
 void cacheResult(SCProductVersion scProductVersion)
          Caches the s c product version in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all s c product versions.
 void clearCache(SCProductVersion scProductVersion)
          Clears the cache for the s c product version.
 void clearSCFrameworkVersions(long pk)
          Clears all associations between the s c product version and its s c framework versions.
 boolean containsSCFrameworkVersion(long pk, long scFrameworkVersionPK)
          Determines whether the s c framework version is associated with the s c product version.
 boolean containsSCFrameworkVersions(long pk)
          Determines whether the s c product version has any s c framework versions associated with it.
 int countAll()
          Counts all the s c product versions.
 int countByDirectDownloadURL(String directDownloadURL)
          Counts all the s c product versions where directDownloadURL = ?.
 int countByProductEntryId(long productEntryId)
          Counts all the s c product versions where productEntryId = ?.
 SCProductVersion create(long productVersionId)
          Creates a new s c product version with the primary key.
 SCProductVersion fetchByDirectDownloadURL(String directDownloadURL)
          Finds the s c product version where directDownloadURL = ? or returns null if it could not be found.
 SCProductVersion fetchByDirectDownloadURL(String directDownloadURL, boolean retrieveFromCache)
          Finds the s c product version where directDownloadURL = ? or returns null if it could not be found, optionally using the finder cache.
 SCProductVersion fetchByPrimaryKey(long productVersionId)
          Finds the s c product version with the primary key or returns null if it could not be found.
 SCProductVersion fetchByPrimaryKey(Serializable primaryKey)
          Finds the s c product version with the primary key or returns null if it could not be found.
 List<SCProductVersion> findAll()
          Finds all the s c product versions.
 List<SCProductVersion> findAll(int start, int end)
          Finds a range of all the s c product versions.
 List<SCProductVersion> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c product versions.
 SCProductVersion findByDirectDownloadURL(String directDownloadURL)
          Finds the s c product version where directDownloadURL = ? or throws a NoSuchProductVersionException if it could not be found.
 SCProductVersion findByPrimaryKey(long productVersionId)
          Finds the s c product version with the primary key or throws a NoSuchProductVersionException if it could not be found.
 SCProductVersion findByPrimaryKey(Serializable primaryKey)
          Finds the s c product version with the primary key or throws a NoSuchModelException if it could not be found.
 SCProductVersion findByProductEntryId_First(long productEntryId, OrderByComparator orderByComparator)
          Finds the first s c product version in the ordered set where productEntryId = ?.
 SCProductVersion findByProductEntryId_Last(long productEntryId, OrderByComparator orderByComparator)
          Finds the last s c product version in the ordered set where productEntryId = ?.
 SCProductVersion[] findByProductEntryId_PrevAndNext(long productVersionId, long productEntryId, OrderByComparator orderByComparator)
          Finds the s c product versions before and after the current s c product version in the ordered set where productEntryId = ?.
 List<SCProductVersion> findByProductEntryId(long productEntryId)
          Finds all the s c product versions where productEntryId = ?.
 List<SCProductVersion> findByProductEntryId(long productEntryId, int start, int end)
          Finds a range of all the s c product versions where productEntryId = ?.
 List<SCProductVersion> findByProductEntryId(long productEntryId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c product versions where productEntryId = ?.
protected  SCProductVersion getByProductEntryId_PrevAndNext(Session session, SCProductVersion scProductVersion, long productEntryId, OrderByComparator orderByComparator, boolean previous)
           
 List<SCFrameworkVersion> getSCFrameworkVersions(long pk)
          Gets all the s c framework versions associated with the s c product version.
 List<SCFrameworkVersion> getSCFrameworkVersions(long pk, int start, int end)
          Gets a range of all the s c framework versions associated with the s c product version.
 List<SCFrameworkVersion> getSCFrameworkVersions(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the s c framework versions associated with the s c product version.
 int getSCFrameworkVersionsSize(long pk)
          Gets the number of s c framework versions associated with the s c product version.
 SCProductVersion remove(long productVersionId)
          Removes the s c product version with the primary key from the database.
 SCProductVersion remove(Serializable primaryKey)
          Removes the s c product version with the primary key from the database.
 void removeAll()
          Removes all the s c product versions from the database.
 void removeByDirectDownloadURL(String directDownloadURL)
          Removes the s c product version where directDownloadURL = ? from the database.
 void removeByProductEntryId(long productEntryId)
          Removes all the s c product versions where productEntryId = ? from the database.
protected  SCProductVersion removeImpl(SCProductVersion scProductVersion)
          Removes the model instance from the database.
 void removeSCFrameworkVersion(long pk, long scFrameworkVersionPK)
          Removes the association between the s c product version and the s c framework version.
 void removeSCFrameworkVersion(long pk, SCFrameworkVersion scFrameworkVersion)
          Removes the association between the s c product version and the s c framework version.
 void removeSCFrameworkVersions(long pk, List<SCFrameworkVersion> scFrameworkVersions)
          Removes the association between the s c product version and the s c framework versions.
 void removeSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
          Removes the association between the s c product version and the s c framework versions.
 void setSCFrameworkVersions(long pk, List<SCFrameworkVersion> scFrameworkVersions)
          Sets the s c framework versions associated with the s c product version, removing and adding associations as necessary.
 void setSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
          Sets the s c framework versions associated with the s c product version, removing and adding associations as necessary.
protected  SCProductVersion toUnwrappedModel(SCProductVersion scProductVersion)
           
 SCProductVersion updateImpl(SCProductVersion scProductVersion, 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_PRODUCTENTRYID

public static final FinderPath FINDER_PATH_FIND_BY_PRODUCTENTRYID

FINDER_PATH_COUNT_BY_PRODUCTENTRYID

public static final FinderPath FINDER_PATH_COUNT_BY_PRODUCTENTRYID

FINDER_PATH_FETCH_BY_DIRECTDOWNLOADURL

public static final FinderPath FINDER_PATH_FETCH_BY_DIRECTDOWNLOADURL

FINDER_PATH_COUNT_BY_DIRECTDOWNLOADURL

public static final FinderPath FINDER_PATH_COUNT_BY_DIRECTDOWNLOADURL

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_SCFRAMEWORKVERSIONS

public static final FinderPath FINDER_PATH_GET_SCFRAMEWORKVERSIONS

FINDER_PATH_GET_SCFRAMEWORKVERSIONS_SIZE

public static final FinderPath FINDER_PATH_GET_SCFRAMEWORKVERSIONS_SIZE

FINDER_PATH_CONTAINS_SCFRAMEWORKVERSION

public static final FinderPath FINDER_PATH_CONTAINS_SCFRAMEWORKVERSION

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

containsSCFrameworkVersion

protected SCProductVersionPersistenceImpl.ContainsSCFrameworkVersion containsSCFrameworkVersion

addSCFrameworkVersion

protected SCProductVersionPersistenceImpl.AddSCFrameworkVersion addSCFrameworkVersion

clearSCFrameworkVersions

protected SCProductVersionPersistenceImpl.ClearSCFrameworkVersions clearSCFrameworkVersions

removeSCFrameworkVersion

protected SCProductVersionPersistenceImpl.RemoveSCFrameworkVersion removeSCFrameworkVersion
Constructor Detail

SCProductVersionPersistenceImpl

public SCProductVersionPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(SCProductVersion scProductVersion)
Caches the s c product version in the entity cache if it is enabled.

Specified by:
cacheResult in interface SCProductVersionPersistence
Parameters:
scProductVersion - the s c product version to cache

cacheResult

public void cacheResult(List<SCProductVersion> scProductVersions)
Caches the s c product versions in the entity cache if it is enabled.

Specified by:
cacheResult in interface SCProductVersionPersistence
Parameters:
scProductVersions - the s c product versions to cache

clearCache

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

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SCProductVersion>
Overrides:
clearCache in class BasePersistenceImpl<SCProductVersion>

clearCache

public void clearCache(SCProductVersion scProductVersion)
Clears the cache for the s c product version.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SCProductVersion>
Overrides:
clearCache in class BasePersistenceImpl<SCProductVersion>
Parameters:
scProductVersion - the instance of this model to clear the cache for

create

public SCProductVersion create(long productVersionId)
Creates a new s c product version with the primary key. Does not add the s c product version to the database.

Specified by:
create in interface SCProductVersionPersistence
Parameters:
productVersionId - the primary key for the new s c product version
Returns:
the new s c product version

remove

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

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

remove

public SCProductVersion remove(long productVersionId)
                        throws NoSuchProductVersionException,
                               SystemException
Removes the s c product version with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface SCProductVersionPersistence
Parameters:
productVersionId - the primary key of the s c product version to remove
Returns:
the s c product version that was removed
Throws:
NoSuchProductVersionException - if a s c product version with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

protected SCProductVersion removeImpl(SCProductVersion scProductVersion)
                               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<SCProductVersion>
Parameters:
scProductVersion - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public SCProductVersion updateImpl(SCProductVersion scProductVersion,
                                   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 SCProductVersionPersistence
Overrides:
updateImpl in class BasePersistenceImpl<SCProductVersion>
Parameters:
scProductVersion - 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 SCProductVersion toUnwrappedModel(SCProductVersion scProductVersion)

findByPrimaryKey

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

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

findByPrimaryKey

public SCProductVersion findByPrimaryKey(long productVersionId)
                                  throws NoSuchProductVersionException,
                                         SystemException
Finds the s c product version with the primary key or throws a NoSuchProductVersionException if it could not be found.

Specified by:
findByPrimaryKey in interface SCProductVersionPersistence
Parameters:
productVersionId - the primary key of the s c product version to find
Returns:
the s c product version
Throws:
NoSuchProductVersionException - if a s c product version with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

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

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

fetchByPrimaryKey

public SCProductVersion fetchByPrimaryKey(long productVersionId)
                                   throws SystemException
Finds the s c product version with the primary key or returns null if it could not be found.

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

findByProductEntryId

public List<SCProductVersion> findByProductEntryId(long productEntryId)
                                            throws SystemException
Finds all the s c product versions where productEntryId = ?.

Specified by:
findByProductEntryId in interface SCProductVersionPersistence
Parameters:
productEntryId - the product entry id to search with
Returns:
the matching s c product versions
Throws:
SystemException - if a system exception occurred

findByProductEntryId

public List<SCProductVersion> findByProductEntryId(long productEntryId,
                                                   int start,
                                                   int end)
                                            throws SystemException
Finds a range of all the s c product versions where productEntryId = ?.

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:
findByProductEntryId in interface SCProductVersionPersistence
Parameters:
productEntryId - the product entry id to search with
start - the lower bound of the range of s c product versions to return
end - the upper bound of the range of s c product versions to return (not inclusive)
Returns:
the range of matching s c product versions
Throws:
SystemException - if a system exception occurred

findByProductEntryId

public List<SCProductVersion> findByProductEntryId(long productEntryId,
                                                   int start,
                                                   int end,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException
Finds an ordered range of all the s c product versions where productEntryId = ?.

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:
findByProductEntryId in interface SCProductVersionPersistence
Parameters:
productEntryId - the product entry id to search with
start - the lower bound of the range of s c product versions to return
end - the upper bound of the range of s c product versions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching s c product versions
Throws:
SystemException - if a system exception occurred

findByProductEntryId_First

public SCProductVersion findByProductEntryId_First(long productEntryId,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchProductVersionException,
                                                   SystemException
Finds the first s c product version in the ordered set where productEntryId = ?.

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:
findByProductEntryId_First in interface SCProductVersionPersistence
Parameters:
productEntryId - the product entry id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching s c product version
Throws:
NoSuchProductVersionException - if a matching s c product version could not be found
SystemException - if a system exception occurred

findByProductEntryId_Last

public SCProductVersion findByProductEntryId_Last(long productEntryId,
                                                  OrderByComparator orderByComparator)
                                           throws NoSuchProductVersionException,
                                                  SystemException
Finds the last s c product version in the ordered set where productEntryId = ?.

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:
findByProductEntryId_Last in interface SCProductVersionPersistence
Parameters:
productEntryId - the product entry id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching s c product version
Throws:
NoSuchProductVersionException - if a matching s c product version could not be found
SystemException - if a system exception occurred

findByProductEntryId_PrevAndNext

public SCProductVersion[] findByProductEntryId_PrevAndNext(long productVersionId,
                                                           long productEntryId,
                                                           OrderByComparator orderByComparator)
                                                    throws NoSuchProductVersionException,
                                                           SystemException
Finds the s c product versions before and after the current s c product version in the ordered set where productEntryId = ?.

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:
findByProductEntryId_PrevAndNext in interface SCProductVersionPersistence
Parameters:
productVersionId - the primary key of the current s c product version
productEntryId - the product entry id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next s c product version
Throws:
NoSuchProductVersionException - if a s c product version with the primary key could not be found
SystemException - if a system exception occurred

getByProductEntryId_PrevAndNext

protected SCProductVersion getByProductEntryId_PrevAndNext(Session session,
                                                           SCProductVersion scProductVersion,
                                                           long productEntryId,
                                                           OrderByComparator orderByComparator,
                                                           boolean previous)

findByDirectDownloadURL

public SCProductVersion findByDirectDownloadURL(String directDownloadURL)
                                         throws NoSuchProductVersionException,
                                                SystemException
Finds the s c product version where directDownloadURL = ? or throws a NoSuchProductVersionException if it could not be found.

Specified by:
findByDirectDownloadURL in interface SCProductVersionPersistence
Parameters:
directDownloadURL - the direct download u r l to search with
Returns:
the matching s c product version
Throws:
NoSuchProductVersionException - if a matching s c product version could not be found
SystemException - if a system exception occurred

fetchByDirectDownloadURL

public SCProductVersion fetchByDirectDownloadURL(String directDownloadURL)
                                          throws SystemException
Finds the s c product version where directDownloadURL = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByDirectDownloadURL in interface SCProductVersionPersistence
Parameters:
directDownloadURL - the direct download u r l to search with
Returns:
the matching s c product version, or null if a matching s c product version could not be found
Throws:
SystemException - if a system exception occurred

fetchByDirectDownloadURL

public SCProductVersion fetchByDirectDownloadURL(String directDownloadURL,
                                                 boolean retrieveFromCache)
                                          throws SystemException
Finds the s c product version where directDownloadURL = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByDirectDownloadURL in interface SCProductVersionPersistence
Parameters:
directDownloadURL - the direct download u r l to search with
Returns:
the matching s c product version, or null if a matching s c product version could not be found
Throws:
SystemException - if a system exception occurred

findAll

public List<SCProductVersion> findAll()
                               throws SystemException
Finds all the s c product versions.

Specified by:
findAll in interface SCProductVersionPersistence
Returns:
the s c product versions
Throws:
SystemException - if a system exception occurred

findAll

public List<SCProductVersion> findAll(int start,
                                      int end)
                               throws SystemException
Finds a range of all the s c product versions.

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 SCProductVersionPersistence
Parameters:
start - the lower bound of the range of s c product versions to return
end - the upper bound of the range of s c product versions to return (not inclusive)
Returns:
the range of s c product versions
Throws:
SystemException - if a system exception occurred

findAll

public List<SCProductVersion> findAll(int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Finds an ordered range of all the s c product versions.

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 SCProductVersionPersistence
Parameters:
start - the lower bound of the range of s c product versions to return
end - the upper bound of the range of s c product versions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of s c product versions
Throws:
SystemException - if a system exception occurred

removeByProductEntryId

public void removeByProductEntryId(long productEntryId)
                            throws SystemException
Removes all the s c product versions where productEntryId = ? from the database.

Specified by:
removeByProductEntryId in interface SCProductVersionPersistence
Parameters:
productEntryId - the product entry id to search with
Throws:
SystemException - if a system exception occurred

removeByDirectDownloadURL

public void removeByDirectDownloadURL(String directDownloadURL)
                               throws NoSuchProductVersionException,
                                      SystemException
Removes the s c product version where directDownloadURL = ? from the database.

Specified by:
removeByDirectDownloadURL in interface SCProductVersionPersistence
Parameters:
directDownloadURL - the direct download u r l to search with
Throws:
SystemException - if a system exception occurred
NoSuchProductVersionException

removeAll

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

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

countByProductEntryId

public int countByProductEntryId(long productEntryId)
                          throws SystemException
Counts all the s c product versions where productEntryId = ?.

Specified by:
countByProductEntryId in interface SCProductVersionPersistence
Parameters:
productEntryId - the product entry id to search with
Returns:
the number of matching s c product versions
Throws:
SystemException - if a system exception occurred

countByDirectDownloadURL

public int countByDirectDownloadURL(String directDownloadURL)
                             throws SystemException
Counts all the s c product versions where directDownloadURL = ?.

Specified by:
countByDirectDownloadURL in interface SCProductVersionPersistence
Parameters:
directDownloadURL - the direct download u r l to search with
Returns:
the number of matching s c product versions
Throws:
SystemException - if a system exception occurred

countAll

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

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

getSCFrameworkVersions

public List<SCFrameworkVersion> getSCFrameworkVersions(long pk)
                                                throws SystemException
Gets all the s c framework versions associated with the s c product version.

Specified by:
getSCFrameworkVersions in interface SCProductVersionPersistence
Parameters:
pk - the primary key of the s c product version to get the associated s c framework versions for
Returns:
the s c framework versions associated with the s c product version
Throws:
SystemException - if a system exception occurred

getSCFrameworkVersions

public List<SCFrameworkVersion> getSCFrameworkVersions(long pk,
                                                       int start,
                                                       int end)
                                                throws SystemException
Gets a range of all the s c framework versions associated with the s c product version.

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:
getSCFrameworkVersions in interface SCProductVersionPersistence
Parameters:
pk - the primary key of the s c product version to get the associated s c framework versions for
start - the lower bound of the range of s c product versions to return
end - the upper bound of the range of s c product versions to return (not inclusive)
Returns:
the range of s c framework versions associated with the s c product version
Throws:
SystemException - if a system exception occurred

getSCFrameworkVersions

public List<SCFrameworkVersion> getSCFrameworkVersions(long pk,
                                                       int start,
                                                       int end,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException
Gets an ordered range of all the s c framework versions associated with the s c product version.

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:
getSCFrameworkVersions in interface SCProductVersionPersistence
Parameters:
pk - the primary key of the s c product version to get the associated s c framework versions for
start - the lower bound of the range of s c product versions to return
end - the upper bound of the range of s c product versions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of s c framework versions associated with the s c product version
Throws:
SystemException - if a system exception occurred

getSCFrameworkVersionsSize

public int getSCFrameworkVersionsSize(long pk)
                               throws SystemException
Gets the number of s c framework versions associated with the s c product version.

Specified by:
getSCFrameworkVersionsSize in interface SCProductVersionPersistence
Parameters:
pk - the primary key of the s c product version to get the number of associated s c framework versions for
Returns:
the number of s c framework versions associated with the s c product version
Throws:
SystemException - if a system exception occurred

containsSCFrameworkVersion

public boolean containsSCFrameworkVersion(long pk,
                                          long scFrameworkVersionPK)
                                   throws SystemException
Determines whether the s c framework version is associated with the s c product version.

Specified by:
containsSCFrameworkVersion in interface SCProductVersionPersistence
Parameters:
pk - the primary key of the s c product version
scFrameworkVersionPK - the primary key of the s c framework version
Returns:
whether the s c framework version is associated with the s c product version
Throws:
SystemException - if a system exception occurred

containsSCFrameworkVersions

public boolean containsSCFrameworkVersions(long pk)
                                    throws SystemException
Determines whether the s c product version has any s c framework versions associated with it.

Specified by:
containsSCFrameworkVersions in interface SCProductVersionPersistence
Parameters:
pk - the primary key of the s c product version to check for associations with s c framework versions
Returns:
whether the s c product version has any s c framework versions associated with it
Throws:
SystemException - if a system exception occurred

addSCFrameworkVersion

public void addSCFrameworkVersion(long pk,
                                  long scFrameworkVersionPK)
                           throws SystemException
Adds an association between the s c product version and the s c framework version. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addSCFrameworkVersion in interface SCProductVersionPersistence
Parameters:
pk - the primary key of the s c product version
scFrameworkVersionPK - the primary key of the s c framework version
Throws:
SystemException - if a system exception occurred

addSCFrameworkVersion

public void addSCFrameworkVersion(long pk,
                                  SCFrameworkVersion scFrameworkVersion)
                           throws SystemException
Adds an association between the s c product version and the s c framework version. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addSCFrameworkVersion in interface SCProductVersionPersistence
Parameters:
pk - the primary key of the s c product version
scFrameworkVersion - the s c framework version
Throws:
SystemException - if a system exception occurred

addSCFrameworkVersions

public void addSCFrameworkVersions(long pk,
                                   long[] scFrameworkVersionPKs)
                            throws SystemException
Adds an association between the s c product version and the s c framework versions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addSCFrameworkVersions in interface SCProductVersionPersistence
Parameters:
pk - the primary key of the s c product version
scFrameworkVersionPKs - the primary keys of the s c framework versions
Throws:
SystemException - if a system exception occurred

addSCFrameworkVersions

public void addSCFrameworkVersions(long pk,
                                   List<SCFrameworkVersion> scFrameworkVersions)
                            throws SystemException
Adds an association between the s c product version and the s c framework versions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addSCFrameworkVersions in interface SCProductVersionPersistence
Parameters:
pk - the primary key of the s c product version
scFrameworkVersions - the s c framework versions
Throws:
SystemException - if a system exception occurred

clearSCFrameworkVersions

public void clearSCFrameworkVersions(long pk)
                              throws SystemException
Clears all associations between the s c product version and its s c framework versions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearSCFrameworkVersions in interface SCProductVersionPersistence
Parameters:
pk - the primary key of the s c product version to clear the associated s c framework versions from
Throws:
SystemException - if a system exception occurred

removeSCFrameworkVersion

public void removeSCFrameworkVersion(long pk,
                                     long scFrameworkVersionPK)
                              throws SystemException
Removes the association between the s c product version and the s c framework version. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeSCFrameworkVersion in interface SCProductVersionPersistence
Parameters:
pk - the primary key of the s c product version
scFrameworkVersionPK - the primary key of the s c framework version
Throws:
SystemException - if a system exception occurred

removeSCFrameworkVersion

public void removeSCFrameworkVersion(long pk,
                                     SCFrameworkVersion scFrameworkVersion)
                              throws SystemException
Removes the association between the s c product version and the s c framework version. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeSCFrameworkVersion in interface SCProductVersionPersistence
Parameters:
pk - the primary key of the s c product version
scFrameworkVersion - the s c framework version
Throws:
SystemException - if a system exception occurred

removeSCFrameworkVersions

public void removeSCFrameworkVersions(long pk,
                                      long[] scFrameworkVersionPKs)
                               throws SystemException
Removes the association between the s c product version and the s c framework versions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeSCFrameworkVersions in interface SCProductVersionPersistence
Parameters:
pk - the primary key of the s c product version
scFrameworkVersionPKs - the primary keys of the s c framework versions
Throws:
SystemException - if a system exception occurred

removeSCFrameworkVersions

public void removeSCFrameworkVersions(long pk,
                                      List<SCFrameworkVersion> scFrameworkVersions)
                               throws SystemException
Removes the association between the s c product version and the s c framework versions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeSCFrameworkVersions in interface SCProductVersionPersistence
Parameters:
pk - the primary key of the s c product version
scFrameworkVersions - the s c framework versions
Throws:
SystemException - if a system exception occurred

setSCFrameworkVersions

public void setSCFrameworkVersions(long pk,
                                   long[] scFrameworkVersionPKs)
                            throws SystemException
Sets the s c framework versions associated with the s c product version, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setSCFrameworkVersions in interface SCProductVersionPersistence
Parameters:
pk - the primary key of the s c product version to set the associations for
scFrameworkVersionPKs - the primary keys of the s c framework versions to be associated with the s c product version
Throws:
SystemException - if a system exception occurred

setSCFrameworkVersions

public void setSCFrameworkVersions(long pk,
                                   List<SCFrameworkVersion> scFrameworkVersions)
                            throws SystemException
Sets the s c framework versions associated with the s c product version, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setSCFrameworkVersions in interface SCProductVersionPersistence
Parameters:
pk - the primary key of the s c product version to set the associations for
scFrameworkVersions - the s c framework versions to be associated with the s c product version
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the s c product version persistence.


Liferay 6.0.5