|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ProviderType public interface ServiceComponentPersistence
The persistence interface for the service component service.
Caching information and settings can be found in portal.properties
ServiceComponentPersistenceImpl
,
ServiceComponentUtil
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()
Returns the number of service components. |
int |
countByBNS_BNU(String buildNamespace,
long buildNumber)
Returns the number of service components where buildNamespace = ? and buildNumber = ?. |
int |
countByBuildNamespace(String buildNamespace)
Returns the number of service components where buildNamespace = ?. |
ServiceComponent |
create(long serviceComponentId)
Creates a new service component with the primary key. |
ServiceComponent |
fetchByBNS_BNU(String buildNamespace,
long buildNumber)
Returns 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)
Returns the service component where buildNamespace = ? and buildNumber = ? or returns null if it could not be found, optionally using the finder cache. |
ServiceComponent |
fetchByBuildNamespace_First(String buildNamespace,
OrderByComparator orderByComparator)
Returns the first service component in the ordered set where buildNamespace = ?. |
ServiceComponent |
fetchByBuildNamespace_Last(String buildNamespace,
OrderByComparator orderByComparator)
Returns the last service component in the ordered set where buildNamespace = ?. |
ServiceComponent |
fetchByPrimaryKey(long serviceComponentId)
Returns the service component with the primary key or returns null if it could not be found. |
List<ServiceComponent> |
findAll()
Returns all the service components. |
List<ServiceComponent> |
findAll(int start,
int end)
Returns a range of all the service components. |
List<ServiceComponent> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the service components. |
ServiceComponent |
findByBNS_BNU(String buildNamespace,
long buildNumber)
Returns the service component where buildNamespace = ? and buildNumber = ? or throws a NoSuchServiceComponentException if it could not be found. |
ServiceComponent |
findByBuildNamespace_First(String buildNamespace,
OrderByComparator orderByComparator)
Returns the first service component in the ordered set where buildNamespace = ?. |
ServiceComponent |
findByBuildNamespace_Last(String buildNamespace,
OrderByComparator orderByComparator)
Returns the last service component in the ordered set where buildNamespace = ?. |
ServiceComponent[] |
findByBuildNamespace_PrevAndNext(long serviceComponentId,
String buildNamespace,
OrderByComparator orderByComparator)
Returns the service components before and after the current service component in the ordered set where buildNamespace = ?. |
List<ServiceComponent> |
findByBuildNamespace(String buildNamespace)
Returns all the service components where buildNamespace = ?. |
List<ServiceComponent> |
findByBuildNamespace(String buildNamespace,
int start,
int end)
Returns a range of all the service components where buildNamespace = ?. |
List<ServiceComponent> |
findByBuildNamespace(String buildNamespace,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the service components where buildNamespace = ?. |
ServiceComponent |
findByPrimaryKey(long serviceComponentId)
Returns 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. |
ServiceComponent |
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)
|
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
---|
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update |
Method Detail |
---|
List<ServiceComponent> findByBuildNamespace(String buildNamespace) throws SystemException
buildNamespace
- the build namespace
SystemException
- if a system exception occurredList<ServiceComponent> findByBuildNamespace(String buildNamespace, int start, int end) throws SystemException
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 ServiceComponentModelImpl
. 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.
buildNamespace
- the build namespacestart
- the lower bound of the range of service componentsend
- the upper bound of the range of service components (not inclusive)
SystemException
- if a system exception occurredList<ServiceComponent> findByBuildNamespace(String buildNamespace, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 ServiceComponentModelImpl
. 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.
buildNamespace
- the build namespacestart
- the lower bound of the range of service componentsend
- the upper bound of the range of service components (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredServiceComponent findByBuildNamespace_First(String buildNamespace, OrderByComparator orderByComparator) throws NoSuchServiceComponentException, SystemException
buildNamespace
- the build namespaceorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchServiceComponentException
- if a matching service component could not be found
SystemException
- if a system exception occurredServiceComponent fetchByBuildNamespace_First(String buildNamespace, OrderByComparator orderByComparator) throws SystemException
buildNamespace
- the build namespaceorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching service component could not be found
SystemException
- if a system exception occurredServiceComponent findByBuildNamespace_Last(String buildNamespace, OrderByComparator orderByComparator) throws NoSuchServiceComponentException, SystemException
buildNamespace
- the build namespaceorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchServiceComponentException
- if a matching service component could not be found
SystemException
- if a system exception occurredServiceComponent fetchByBuildNamespace_Last(String buildNamespace, OrderByComparator orderByComparator) throws SystemException
buildNamespace
- the build namespaceorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching service component could not be found
SystemException
- if a system exception occurredServiceComponent[] findByBuildNamespace_PrevAndNext(long serviceComponentId, String buildNamespace, OrderByComparator orderByComparator) throws NoSuchServiceComponentException, SystemException
serviceComponentId
- the primary key of the current service componentbuildNamespace
- the build namespaceorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchServiceComponentException
- if a service component with the primary key could not be found
SystemException
- if a system exception occurredvoid removeByBuildNamespace(String buildNamespace) throws SystemException
buildNamespace
- the build namespace
SystemException
- if a system exception occurredint countByBuildNamespace(String buildNamespace) throws SystemException
buildNamespace
- the build namespace
SystemException
- if a system exception occurredServiceComponent findByBNS_BNU(String buildNamespace, long buildNumber) throws NoSuchServiceComponentException, SystemException
NoSuchServiceComponentException
if it could not be found.
buildNamespace
- the build namespacebuildNumber
- the build number
NoSuchServiceComponentException
- if a matching service component could not be found
SystemException
- if a system exception occurredServiceComponent fetchByBNS_BNU(String buildNamespace, long buildNumber) throws SystemException
null
if it could not be found. Uses the finder cache.
buildNamespace
- the build namespacebuildNumber
- the build number
null
if a matching service component could not be found
SystemException
- if a system exception occurredServiceComponent fetchByBNS_BNU(String buildNamespace, long buildNumber, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
buildNamespace
- the build namespacebuildNumber
- the build numberretrieveFromCache
- whether to use the finder cache
null
if a matching service component could not be found
SystemException
- if a system exception occurredServiceComponent removeByBNS_BNU(String buildNamespace, long buildNumber) throws NoSuchServiceComponentException, SystemException
buildNamespace
- the build namespacebuildNumber
- the build number
SystemException
- if a system exception occurred
NoSuchServiceComponentException
int countByBNS_BNU(String buildNamespace, long buildNumber) throws SystemException
buildNamespace
- the build namespacebuildNumber
- the build number
SystemException
- if a system exception occurredvoid cacheResult(ServiceComponent serviceComponent)
serviceComponent
- the service componentvoid cacheResult(List<ServiceComponent> serviceComponents)
serviceComponents
- the service componentsServiceComponent create(long serviceComponentId)
serviceComponentId
- the primary key for the new service component
ServiceComponent remove(long serviceComponentId) throws NoSuchServiceComponentException, SystemException
serviceComponentId
- the primary key of the service component
NoSuchServiceComponentException
- if a service component with the primary key could not be found
SystemException
- if a system exception occurredServiceComponent updateImpl(ServiceComponent serviceComponent) throws SystemException
SystemException
ServiceComponent findByPrimaryKey(long serviceComponentId) throws NoSuchServiceComponentException, SystemException
NoSuchServiceComponentException
if it could not be found.
serviceComponentId
- the primary key of the service component
NoSuchServiceComponentException
- if a service component with the primary key could not be found
SystemException
- if a system exception occurredServiceComponent fetchByPrimaryKey(long serviceComponentId) throws SystemException
null
if it could not be found.
serviceComponentId
- the primary key of the service component
null
if a service component with the primary key could not be found
SystemException
- if a system exception occurredList<ServiceComponent> findAll() throws SystemException
SystemException
- if a system exception occurredList<ServiceComponent> findAll(int start, int end) throws SystemException
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 ServiceComponentModelImpl
. 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.
start
- the lower bound of the range of service componentsend
- the upper bound of the range of service components (not inclusive)
SystemException
- if a system exception occurredList<ServiceComponent> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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 ServiceComponentModelImpl
. 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.
start
- the lower bound of the range of service componentsend
- the upper bound of the range of service components (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredvoid removeAll() throws SystemException
SystemException
- if a system exception occurredint countAll() throws SystemException
SystemException
- if a system exception occurred
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |