|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.ServiceComponentUtil
public class ServiceComponentUtil
The persistence utility for the service component service.
Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regnerate this class.
ServiceComponentPersistence,
ServiceComponentPersistenceImpl| Constructor Summary | |
|---|---|
ServiceComponentUtil()
|
|
| Method Summary | |
|---|---|
static void |
cacheResult(List<ServiceComponent> serviceComponents)
Caches the service components in the entity cache if it is enabled. |
static void |
cacheResult(ServiceComponent serviceComponent)
Caches the service component in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(ServiceComponent serviceComponent)
|
static int |
countAll()
Counts all the service components. |
static int |
countByBNS_BNU(String buildNamespace,
long buildNumber)
Counts all the service components where buildNamespace = ? and buildNumber = ?. |
static int |
countByBuildNamespace(String buildNamespace)
Counts all the service components where buildNamespace = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static ServiceComponent |
create(long serviceComponentId)
Creates a new service component with the primary key. |
static ServiceComponent |
fetchByBNS_BNU(String buildNamespace,
long buildNumber)
Finds the service component where buildNamespace = ? and buildNumber = ? or returns null if it could not be found. |
static 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. |
static ServiceComponent |
fetchByPrimaryKey(long serviceComponentId)
Finds the service component with the primary key or returns null if it could not be found. |
static List<ServiceComponent> |
findAll()
Finds all the service components. |
static List<ServiceComponent> |
findAll(int start,
int end)
Finds a range of all the service components. |
static List<ServiceComponent> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the service components. |
static 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. |
static ServiceComponent |
findByBuildNamespace_First(String buildNamespace,
OrderByComparator orderByComparator)
Finds the first service component in the ordered set where buildNamespace = ?. |
static ServiceComponent |
findByBuildNamespace_Last(String buildNamespace,
OrderByComparator orderByComparator)
Finds the last service component in the ordered set where buildNamespace = ?. |
static 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 = ?. |
static List<ServiceComponent> |
findByBuildNamespace(String buildNamespace)
Finds all the service components where buildNamespace = ?. |
static List<ServiceComponent> |
findByBuildNamespace(String buildNamespace,
int start,
int end)
Finds a range of all the service components where buildNamespace = ?. |
static List<ServiceComponent> |
findByBuildNamespace(String buildNamespace,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the service components where buildNamespace = ?. |
static ServiceComponent |
findByPrimaryKey(long serviceComponentId)
Finds the service component with the primary key or throws a NoSuchServiceComponentException if it could not be found. |
static List<ServiceComponent> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<ServiceComponent> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<ServiceComponent> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static ServiceComponentPersistence |
getPersistence()
|
static ServiceComponent |
remove(long serviceComponentId)
Removes the service component with the primary key from the database. |
static ServiceComponent |
remove(ServiceComponent serviceComponent)
|
static void |
removeAll()
Removes all the service components from the database. |
static void |
removeByBNS_BNU(String buildNamespace,
long buildNumber)
Removes the service component where buildNamespace = ? and buildNumber = ? from the database. |
static void |
removeByBuildNamespace(String buildNamespace)
Removes all the service components where buildNamespace = ? from the database. |
void |
setPersistence(ServiceComponentPersistence persistence)
|
static ServiceComponent |
update(ServiceComponent serviceComponent,
boolean merge)
|
static ServiceComponent |
update(ServiceComponent serviceComponent,
boolean merge,
ServiceContext serviceContext)
|
static ServiceComponent |
updateImpl(ServiceComponent serviceComponent,
boolean merge)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceComponentUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(ServiceComponent serviceComponent)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<ServiceComponent> findWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<ServiceComponent> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<ServiceComponent> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ServiceComponent remove(ServiceComponent serviceComponent)
throws SystemException
SystemExceptionBasePersistence.remove(com.liferay.portal.model.BaseModel)
public static ServiceComponent update(ServiceComponent serviceComponent,
boolean merge)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static ServiceComponent update(ServiceComponent serviceComponent,
boolean merge,
ServiceContext serviceContext)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)public static void cacheResult(ServiceComponent serviceComponent)
serviceComponent - the service component to cachepublic static void cacheResult(List<ServiceComponent> serviceComponents)
serviceComponents - the service components to cachepublic static ServiceComponent create(long serviceComponentId)
serviceComponentId - the primary key for the new service component
public static ServiceComponent remove(long serviceComponentId)
throws NoSuchServiceComponentException,
SystemException
serviceComponentId - the primary key of the service component to remove
NoSuchServiceComponentException - if a service component with the primary key could not be found
SystemException - if a system exception occurred
public static ServiceComponent updateImpl(ServiceComponent serviceComponent,
boolean merge)
throws SystemException
SystemException
public static ServiceComponent findByPrimaryKey(long serviceComponentId)
throws NoSuchServiceComponentException,
SystemException
NoSuchServiceComponentException if it could not be found.
serviceComponentId - the primary key of the service component to find
NoSuchServiceComponentException - if a service component with the primary key could not be found
SystemException - if a system exception occurred
public static ServiceComponent fetchByPrimaryKey(long serviceComponentId)
throws SystemException
null if it could not be found.
serviceComponentId - the primary key of the service component to find
null if a service component with the primary key could not be found
SystemException - if a system exception occurred
public static List<ServiceComponent> findByBuildNamespace(String buildNamespace)
throws SystemException
buildNamespace - the build namespace to search with
SystemException - if a system exception occurred
public static List<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.
buildNamespace - the build namespace to search withstart - the lower bound of the range of service components to returnend - the upper bound of the range of service components to return (not inclusive)
SystemException - if a system exception occurred
public static List<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.
buildNamespace - the build namespace to search withstart - the lower bound of the range of service components to returnend - the upper bound of the range of service components to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static ServiceComponent findByBuildNamespace_First(String buildNamespace,
OrderByComparator orderByComparator)
throws NoSuchServiceComponentException,
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.
buildNamespace - the build namespace to search withorderByComparator - the comparator to order the set by
NoSuchServiceComponentException - if a matching service component could not be found
SystemException - if a system exception occurred
public static ServiceComponent findByBuildNamespace_Last(String buildNamespace,
OrderByComparator orderByComparator)
throws NoSuchServiceComponentException,
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.
buildNamespace - the build namespace to search withorderByComparator - the comparator to order the set by
NoSuchServiceComponentException - if a matching service component could not be found
SystemException - if a system exception occurred
public static ServiceComponent[] findByBuildNamespace_PrevAndNext(long serviceComponentId,
String buildNamespace,
OrderByComparator orderByComparator)
throws NoSuchServiceComponentException,
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.
serviceComponentId - the primary key of the current service componentbuildNamespace - the build namespace to search withorderByComparator - the comparator to order the set by
NoSuchServiceComponentException - if a service component with the primary key could not be found
SystemException - if a system exception occurred
public static ServiceComponent findByBNS_BNU(String buildNamespace,
long buildNumber)
throws NoSuchServiceComponentException,
SystemException
NoSuchServiceComponentException if it could not be found.
buildNamespace - the build namespace to search withbuildNumber - the build number to search with
NoSuchServiceComponentException - if a matching service component could not be found
SystemException - if a system exception occurred
public static ServiceComponent fetchByBNS_BNU(String buildNamespace,
long buildNumber)
throws SystemException
null if it could not be found. Uses the finder cache.
buildNamespace - the build namespace to search withbuildNumber - the build number to search with
null if a matching service component could not be found
SystemException - if a system exception occurred
public static ServiceComponent 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 namespace to search withbuildNumber - the build number to search with
null if a matching service component could not be found
SystemException - if a system exception occurred
public static List<ServiceComponent> findAll()
throws SystemException
SystemException - if a system exception occurred
public static List<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.
start - the lower bound of the range of service components to returnend - the upper bound of the range of service components to return (not inclusive)
SystemException - if a system exception occurred
public static List<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.
start - the lower bound of the range of service components to returnend - the upper bound of the range of service components to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static void removeByBuildNamespace(String buildNamespace)
throws SystemException
buildNamespace - the build namespace to search with
SystemException - if a system exception occurred
public static void removeByBNS_BNU(String buildNamespace,
long buildNumber)
throws NoSuchServiceComponentException,
SystemException
buildNamespace - the build namespace to search withbuildNumber - the build number to search with
SystemException - if a system exception occurred
NoSuchServiceComponentException
public static void removeAll()
throws SystemException
SystemException - if a system exception occurred
public static int countByBuildNamespace(String buildNamespace)
throws SystemException
buildNamespace - the build namespace to search with
SystemException - if a system exception occurred
public static int countByBNS_BNU(String buildNamespace,
long buildNumber)
throws SystemException
buildNamespace - the build namespace to search withbuildNumber - the build number to search with
SystemException - if a system exception occurred
public static int countAll()
throws SystemException
SystemException - if a system exception occurredpublic static ServiceComponentPersistence getPersistence()
public void setPersistence(ServiceComponentPersistence persistence)
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||