Liferay 6.0.5

com.liferay.portal.service.persistence
Interface ServiceComponentPersistence

All Superinterfaces:
BasePersistence<ServiceComponent>
All Known Implementing Classes:
ServiceComponentPersistenceImpl

public interface ServiceComponentPersistence
extends BasePersistence<ServiceComponent>

The persistence interface for the service component service.

Never modify or reference this interface directly. Always use ServiceComponentUtil to access the service component persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface.

Caching information and settings can be found in portal.properties

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

Method Summary
 void cacheResult(List<ServiceComponent> serviceComponents)
          Caches the service components in the entity cache if it is enabled.
 void cacheResult(ServiceComponent serviceComponent)
          Caches the service component in the entity cache if it is enabled.
 int countAll()
          Counts all the service components.
 int countByBNS_BNU(String buildNamespace, long buildNumber)
          Counts all the service components where buildNamespace = ? and buildNumber = ?.
 int countByBuildNamespace(String buildNamespace)
          Counts all the service components where buildNamespace = ?.
 ServiceComponent create(long serviceComponentId)
          Creates a new service component with the primary key.
 ServiceComponent fetchByBNS_BNU(String buildNamespace, long buildNumber)
          Finds the service component where buildNamespace = ? and buildNumber = ? or returns null if it could not be found.
 ServiceComponent fetchByBNS_BNU(String buildNamespace, long buildNumber, boolean retrieveFromCache)
          Finds the service component where buildNamespace = ? and buildNumber = ? or returns null if it could not be found, optionally using the finder cache.
 ServiceComponent fetchByPrimaryKey(long serviceComponentId)
          Finds the service component with the primary key or returns null if it could not be found.
 List<ServiceComponent> findAll()
          Finds all the service components.
 List<ServiceComponent> findAll(int start, int end)
          Finds a range of all the service components.
 List<ServiceComponent> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the service components.
 ServiceComponent findByBNS_BNU(String buildNamespace, long buildNumber)
          Finds the service component where buildNamespace = ? and buildNumber = ? or throws a NoSuchServiceComponentException if it could not be found.
 ServiceComponent findByBuildNamespace_First(String buildNamespace, OrderByComparator orderByComparator)
          Finds the first service component in the ordered set where buildNamespace = ?.
 ServiceComponent findByBuildNamespace_Last(String buildNamespace, OrderByComparator orderByComparator)
          Finds the last service component in the ordered set where buildNamespace = ?.
 ServiceComponent[] findByBuildNamespace_PrevAndNext(long serviceComponentId, String buildNamespace, OrderByComparator orderByComparator)
          Finds the service components before and after the current service component in the ordered set where buildNamespace = ?.
 List<ServiceComponent> findByBuildNamespace(String buildNamespace)
          Finds all the service components where buildNamespace = ?.
 List<ServiceComponent> findByBuildNamespace(String buildNamespace, int start, int end)
          Finds a range of all the service components where buildNamespace = ?.
 List<ServiceComponent> findByBuildNamespace(String buildNamespace, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the service components where buildNamespace = ?.
 ServiceComponent findByPrimaryKey(long serviceComponentId)
          Finds the service component with the primary key or throws a NoSuchServiceComponentException if it could not be found.
 ServiceComponent remove(long serviceComponentId)
          Removes the service component with the primary key from the database.
 void removeAll()
          Removes all the service components from the database.
 void removeByBNS_BNU(String buildNamespace, long buildNumber)
          Removes the service component where buildNamespace = ? and buildNumber = ? from the database.
 void removeByBuildNamespace(String buildNamespace)
          Removes all the service components where buildNamespace = ? from the database.
 ServiceComponent updateImpl(ServiceComponent serviceComponent, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

void cacheResult(ServiceComponent serviceComponent)
Caches the service component in the entity cache if it is enabled.

Parameters:
serviceComponent - the service component to cache

cacheResult

void cacheResult(List<ServiceComponent> serviceComponents)
Caches the service components in the entity cache if it is enabled.

Parameters:
serviceComponents - the service components to cache

create

ServiceComponent create(long serviceComponentId)
Creates a new service component with the primary key. Does not add the service component to the database.

Parameters:
serviceComponentId - the primary key for the new service component
Returns:
the new service component

remove

ServiceComponent remove(long serviceComponentId)
                        throws NoSuchServiceComponentException,
                               SystemException
Removes the service component with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
serviceComponentId - the primary key of the service component to remove
Returns:
the service component that was removed
Throws:
NoSuchServiceComponentException - if a service component with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

ServiceComponent updateImpl(ServiceComponent serviceComponent,
                            boolean merge)
                            throws SystemException
Throws:
SystemException

findByPrimaryKey

ServiceComponent findByPrimaryKey(long serviceComponentId)
                                  throws NoSuchServiceComponentException,
                                         SystemException
Finds the service component with the primary key or throws a NoSuchServiceComponentException if it could not be found.

Parameters:
serviceComponentId - the primary key of the service component to find
Returns:
the service component
Throws:
NoSuchServiceComponentException - if a service component with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

ServiceComponent fetchByPrimaryKey(long serviceComponentId)
                                   throws SystemException
Finds the service component with the primary key or returns null if it could not be found.

Parameters:
serviceComponentId - the primary key of the service component to find
Returns:
the service component, or null if a service component with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByBuildNamespace

List<ServiceComponent> findByBuildNamespace(String buildNamespace)
                                            throws SystemException
Finds all the service components where buildNamespace = ?.

Parameters:
buildNamespace - the build namespace to search with
Returns:
the matching service components
Throws:
SystemException - if a system exception occurred

findByBuildNamespace

List<ServiceComponent> findByBuildNamespace(String buildNamespace,
                                            int start,
                                            int end)
                                            throws SystemException
Finds a range of all the service components where buildNamespace = ?.

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.

Parameters:
buildNamespace - the build namespace to search with
start - the lower bound of the range of service components to return
end - the upper bound of the range of service components to return (not inclusive)
Returns:
the range of matching service components
Throws:
SystemException - if a system exception occurred

findByBuildNamespace

List<ServiceComponent> findByBuildNamespace(String buildNamespace,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                            throws SystemException
Finds an ordered range of all the service components where buildNamespace = ?.

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.

Parameters:
buildNamespace - the build namespace to search with
start - the lower bound of the range of service components to return
end - the upper bound of the range of service components to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching service components
Throws:
SystemException - if a system exception occurred

findByBuildNamespace_First

ServiceComponent findByBuildNamespace_First(String buildNamespace,
                                            OrderByComparator orderByComparator)
                                            throws NoSuchServiceComponentException,
                                                   SystemException
Finds the first service component in the ordered set where buildNamespace = ?.

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.

Parameters:
buildNamespace - the build namespace to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching service component
Throws:
NoSuchServiceComponentException - if a matching service component could not be found
SystemException - if a system exception occurred

findByBuildNamespace_Last

ServiceComponent findByBuildNamespace_Last(String buildNamespace,
                                           OrderByComparator orderByComparator)
                                           throws NoSuchServiceComponentException,
                                                  SystemException
Finds the last service component in the ordered set where buildNamespace = ?.

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.

Parameters:
buildNamespace - the build namespace to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching service component
Throws:
NoSuchServiceComponentException - if a matching service component could not be found
SystemException - if a system exception occurred

findByBuildNamespace_PrevAndNext

ServiceComponent[] findByBuildNamespace_PrevAndNext(long serviceComponentId,
                                                    String buildNamespace,
                                                    OrderByComparator orderByComparator)
                                                    throws NoSuchServiceComponentException,
                                                           SystemException
Finds the service components before and after the current service component in the ordered set where buildNamespace = ?.

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.

Parameters:
serviceComponentId - the primary key of the current service component
buildNamespace - the build namespace to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next service component
Throws:
NoSuchServiceComponentException - if a service component with the primary key could not be found
SystemException - if a system exception occurred

findByBNS_BNU

ServiceComponent findByBNS_BNU(String buildNamespace,
                               long buildNumber)
                               throws NoSuchServiceComponentException,
                                      SystemException
Finds the service component where buildNamespace = ? and buildNumber = ? or throws a NoSuchServiceComponentException if it could not be found.

Parameters:
buildNamespace - the build namespace to search with
buildNumber - the build number to search with
Returns:
the matching service component
Throws:
NoSuchServiceComponentException - if a matching service component could not be found
SystemException - if a system exception occurred

fetchByBNS_BNU

ServiceComponent fetchByBNS_BNU(String buildNamespace,
                                long buildNumber)
                                throws SystemException
Finds the service component where buildNamespace = ? and buildNumber = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
buildNamespace - the build namespace to search with
buildNumber - the build number to search with
Returns:
the matching service component, or null if a matching service component could not be found
Throws:
SystemException - if a system exception occurred

fetchByBNS_BNU

ServiceComponent fetchByBNS_BNU(String buildNamespace,
                                long buildNumber,
                                boolean retrieveFromCache)
                                throws SystemException
Finds the service component where buildNamespace = ? and buildNumber = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
buildNamespace - the build namespace to search with
buildNumber - the build number to search with
Returns:
the matching service component, or null if a matching service component could not be found
Throws:
SystemException - if a system exception occurred

findAll

List<ServiceComponent> findAll()
                               throws SystemException
Finds all the service components.

Returns:
the service components
Throws:
SystemException - if a system exception occurred

findAll

List<ServiceComponent> findAll(int start,
                               int end)
                               throws SystemException
Finds a range of all the service components.

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.

Parameters:
start - the lower bound of the range of service components to return
end - the upper bound of the range of service components to return (not inclusive)
Returns:
the range of service components
Throws:
SystemException - if a system exception occurred

findAll

List<ServiceComponent> findAll(int start,
                               int end,
                               OrderByComparator orderByComparator)
                               throws SystemException
Finds an ordered range of all the service components.

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.

Parameters:
start - the lower bound of the range of service components to return
end - the upper bound of the range of service components to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of service components
Throws:
SystemException - if a system exception occurred

removeByBuildNamespace

void removeByBuildNamespace(String buildNamespace)
                            throws SystemException
Removes all the service components where buildNamespace = ? from the database.

Parameters:
buildNamespace - the build namespace to search with
Throws:
SystemException - if a system exception occurred

removeByBNS_BNU

void removeByBNS_BNU(String buildNamespace,
                     long buildNumber)
                     throws NoSuchServiceComponentException,
                            SystemException
Removes the service component where buildNamespace = ? and buildNumber = ? from the database.

Parameters:
buildNamespace - the build namespace to search with
buildNumber - the build number to search with
Throws:
SystemException - if a system exception occurred
NoSuchServiceComponentException

removeAll

void removeAll()
               throws SystemException
Removes all the service components from the database.

Throws:
SystemException - if a system exception occurred

countByBuildNamespace

int countByBuildNamespace(String buildNamespace)
                          throws SystemException
Counts all the service components where buildNamespace = ?.

Parameters:
buildNamespace - the build namespace to search with
Returns:
the number of matching service components
Throws:
SystemException - if a system exception occurred

countByBNS_BNU

int countByBNS_BNU(String buildNamespace,
                   long buildNumber)
                   throws SystemException
Counts all the service components where buildNamespace = ? and buildNumber = ?.

Parameters:
buildNamespace - the build namespace to search with
buildNumber - the build number to search with
Returns:
the number of matching service components
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Counts all the service components.

Returns:
the number of service components
Throws:
SystemException - if a system exception occurred

Liferay 6.0.5