Liferay 6.2-ce-ga5

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.

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 it is generated.

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
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_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_PRODUCTENTRYID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PRODUCTENTRYID
           
protected  SCFrameworkVersionPersistence scFrameworkVersionPersistence
           
protected  TableMapper<SCProductVersion,SCFrameworkVersion> scProductVersionToSCFrameworkVersionTableMapper
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
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.
protected  void cacheUniqueFindersCache(SCProductVersion scProductVersion)
           
 void clearCache()
          Clears the cache for all s c product versions.
 void clearCache(List<SCProductVersion> scProductVersions)
          Clears the cache for a List instances of this model.
 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.
protected  void clearUniqueFindersCache(SCProductVersion scProductVersion)
           
 boolean containsSCFrameworkVersion(long pk, long scFrameworkVersionPK)
          Returns true if the s c framework version is associated with the s c product version.
 boolean containsSCFrameworkVersions(long pk)
          Returns true if the s c product version has any s c framework versions associated with it.
 int countAll()
          Returns the number of s c product versions.
 int countByDirectDownloadURL(String directDownloadURL)
          Returns the number of s c product versions where directDownloadURL = ?.
 int countByProductEntryId(long productEntryId)
          Returns the number of s c product versions where productEntryId = ?.
 SCProductVersion create(long productVersionId)
          Creates a new s c product version with the primary key.
 void destroy()
           
 SCProductVersion fetchByDirectDownloadURL(String directDownloadURL)
          Returns the s c product version where directDownloadURL = ? or returns null if it could not be found.
 SCProductVersion fetchByDirectDownloadURL(String directDownloadURL, boolean retrieveFromCache)
          Returns 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)
          Returns the s c product version with the primary key or returns null if it could not be found.
 SCProductVersion fetchByPrimaryKey(Serializable primaryKey)
          Returns the s c product version with the primary key or returns null if it could not be found.
 SCProductVersion fetchByProductEntryId_First(long productEntryId, OrderByComparator orderByComparator)
          Returns the first s c product version in the ordered set where productEntryId = ?.
 SCProductVersion fetchByProductEntryId_Last(long productEntryId, OrderByComparator orderByComparator)
          Returns the last s c product version in the ordered set where productEntryId = ?.
 List<SCProductVersion> findAll()
          Returns all the s c product versions.
 List<SCProductVersion> findAll(int start, int end)
          Returns a range of all the s c product versions.
 List<SCProductVersion> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the s c product versions.
 SCProductVersion findByDirectDownloadURL(String directDownloadURL)
          Returns the s c product version where directDownloadURL = ? or throws a NoSuchProductVersionException if it could not be found.
 SCProductVersion findByPrimaryKey(long productVersionId)
          Returns the s c product version with the primary key or throws a NoSuchProductVersionException if it could not be found.
 SCProductVersion findByPrimaryKey(Serializable primaryKey)
          Returns 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)
          Returns the first s c product version in the ordered set where productEntryId = ?.
 SCProductVersion findByProductEntryId_Last(long productEntryId, OrderByComparator orderByComparator)
          Returns the last s c product version in the ordered set where productEntryId = ?.
 SCProductVersion[] findByProductEntryId_PrevAndNext(long productVersionId, long productEntryId, OrderByComparator orderByComparator)
          Returns 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)
          Returns all the s c product versions where productEntryId = ?.
 List<SCProductVersion> findByProductEntryId(long productEntryId, int start, int end)
          Returns a range of all the s c product versions where productEntryId = ?.
 List<SCProductVersion> findByProductEntryId(long productEntryId, int start, int end, OrderByComparator orderByComparator)
          Returns 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)
          Returns all the s c framework versions associated with the s c product version.
 List<SCFrameworkVersion> getSCFrameworkVersions(long pk, int start, int end)
          Returns 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)
          Returns an ordered range of all the s c framework versions associated with the s c product version.
 int getSCFrameworkVersionsSize(long pk)
          Returns 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.
 SCProductVersion 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)
          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, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_PRODUCTENTRYID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_PRODUCTENTRYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PRODUCTENTRYID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_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

scFrameworkVersionPersistence

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

scProductVersionToSCFrameworkVersionTableMapper

protected TableMapper<SCProductVersion,SCFrameworkVersion> scProductVersionToSCFrameworkVersionTableMapper
Constructor Detail

SCProductVersionPersistenceImpl

public SCProductVersionPersistenceImpl()
Method Detail

findByProductEntryId

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

Specified by:
findByProductEntryId in interface SCProductVersionPersistence
Parameters:
productEntryId - the product entry ID
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
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SCProductVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByProductEntryId in interface SCProductVersionPersistence
Parameters:
productEntryId - the product entry ID
start - the lower bound of the range of s c product versions
end - the upper bound of the range of s c product versions (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
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SCProductVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByProductEntryId in interface SCProductVersionPersistence
Parameters:
productEntryId - the product entry ID
start - the lower bound of the range of s c product versions
end - the upper bound of the range of s c product versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
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
Returns the first s c product version in the ordered set where productEntryId = ?.

Specified by:
findByProductEntryId_First in interface SCProductVersionPersistence
Parameters:
productEntryId - the product entry ID
orderByComparator - the comparator to order the set by (optionally null)
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

fetchByProductEntryId_First

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

Specified by:
fetchByProductEntryId_First in interface SCProductVersionPersistence
Parameters:
productEntryId - the product entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first 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

findByProductEntryId_Last

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

Specified by:
findByProductEntryId_Last in interface SCProductVersionPersistence
Parameters:
productEntryId - the product entry ID
orderByComparator - the comparator to order the set by (optionally null)
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

fetchByProductEntryId_Last

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

Specified by:
fetchByProductEntryId_Last in interface SCProductVersionPersistence
Parameters:
productEntryId - the product entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last 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

findByProductEntryId_PrevAndNext

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

Specified by:
findByProductEntryId_PrevAndNext in interface SCProductVersionPersistence
Parameters:
productVersionId - the primary key of the current s c product version
productEntryId - the product entry ID
orderByComparator - the comparator to order the set by (optionally null)
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)

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
Throws:
SystemException - if a system exception occurred

countByProductEntryId

public int countByProductEntryId(long productEntryId)
                          throws SystemException
Returns the number of s c product versions where productEntryId = ?.

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

findByDirectDownloadURL

public SCProductVersion findByDirectDownloadURL(String directDownloadURL)
                                         throws NoSuchProductVersionException,
                                                SystemException
Returns 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
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
Returns 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
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
Returns 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
retrieveFromCache - whether to use the finder cache
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

removeByDirectDownloadURL

public SCProductVersion 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
Returns:
the s c product version that was removed
Throws:
SystemException - if a system exception occurred
NoSuchProductVersionException

countByDirectDownloadURL

public int countByDirectDownloadURL(String directDownloadURL)
                             throws SystemException
Returns the number of s c product versions where directDownloadURL = ?.

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

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

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

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

clearCache

public void clearCache(List<SCProductVersion> scProductVersions)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

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

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(SCProductVersion scProductVersion)

clearUniqueFindersCache

protected void clearUniqueFindersCache(SCProductVersion scProductVersion)

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(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
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

remove

public SCProductVersion remove(Serializable primaryKey)
                        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 BasePersistence<SCProductVersion>
Overrides:
remove in class BasePersistenceImpl<SCProductVersion>
Parameters:
primaryKey - the primary key of the s c product version
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)
                            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
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 NoSuchProductVersionException,
                                         SystemException
Returns 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
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

findByPrimaryKey

public SCProductVersion findByPrimaryKey(long productVersionId)
                                  throws NoSuchProductVersionException,
                                         SystemException
Returns 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
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
Returns 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
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
Returns 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
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

findAll

public List<SCProductVersion> findAll()
                               throws SystemException
Returns 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
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SCProductVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findAll in interface SCProductVersionPersistence
Parameters:
start - the lower bound of the range of s c product versions
end - the upper bound of the range of s c product versions (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
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SCProductVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findAll in interface SCProductVersionPersistence
Parameters:
start - the lower bound of the range of s c product versions
end - the upper bound of the range of s c product versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of s c product versions
Throws:
SystemException - if a system exception occurred

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

countAll

public int countAll()
             throws SystemException
Returns the number of 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
Returns 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
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
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SCProductVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
getSCFrameworkVersions in interface SCProductVersionPersistence
Parameters:
pk - the primary key of the s c product version
start - the lower bound of the range of s c product versions
end - the upper bound of the range of s c product versions (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
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SCProductVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

containsSCFrameworkVersions

public boolean containsSCFrameworkVersions(long pk)
                                    throws SystemException
Returns true if 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:
true if the s c product version has any s c framework versions associated with it; false otherwise
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
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
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.


destroy

public void destroy()

Liferay 6.2-ce-ga5