@Transactional(isolation=PORTAL,
rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface AHConfigLocalService
extends com.liferay.portal.service.BaseLocalService, com.liferay.portal.service.InvokableLocalService, com.liferay.portal.service.PersistedModelLocalService
AHConfigLocalServiceUtil
,
AHConfigLocalServiceBaseImpl
,
AHConfigLocalServiceImpl
Modifier and Type | Method and Description |
---|---|
AHConfig |
addAHConfig(AHConfig ahConfig)
Adds the a h config to the database.
|
AHConfig |
createAHConfig(String name)
Creates a new a h config with the primary key.
|
AHConfig |
deleteAHConfig(AHConfig ahConfig)
Deletes the a h config from the database.
|
AHConfig |
deleteAHConfig(String name)
Deletes the a h config with the primary key from the database.
|
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
List |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
List |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
List |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows that match the dynamic query.
|
AHConfig |
fetchAHConfig(String name) |
AHConfig |
getAHConfig(String name)
Returns the a h config with the primary key.
|
List<AHConfig> |
getAHConfigs(int start,
int end)
Returns a range of all the a h configs.
|
int |
getAHConfigsCount()
Returns the number of a h configs.
|
String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
String |
getConfig(String key,
String defaultValue) |
com.liferay.portal.model.PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
Object |
invokeMethod(String name,
String[] parameterTypes,
Object[] arguments) |
void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.
|
void |
setConfig(String key,
String value) |
AHConfig |
updateAHConfig(AHConfig ahConfig)
Updates the a h config in the database or adds it if it does not yet exist.
|
@Indexable(type=REINDEX) AHConfig addAHConfig(AHConfig ahConfig) throws com.liferay.portal.kernel.exception.SystemException
ahConfig
- the a h configcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredAHConfig createAHConfig(String name)
name
- the primary key for the new a h config@Indexable(type=DELETE) AHConfig deleteAHConfig(String name) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
name
- the primary key of the a h configcom.liferay.portal.kernel.exception.PortalException
- if a a h config with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurred@Indexable(type=DELETE) AHConfig deleteAHConfig(AHConfig ahConfig) throws com.liferay.portal.kernel.exception.SystemException
ahConfig
- the a h configcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) throws com.liferay.portal.kernel.exception.SystemException
dynamicQuery
- the dynamic querycom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredList dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) throws com.liferay.portal.kernel.exception.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 AHConfigModelImpl
. 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.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredList dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.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 AHConfigModelImpl
. 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.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurredlong dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) throws com.liferay.portal.kernel.exception.SystemException
dynamicQuery
- the dynamic querycom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredlong dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) throws com.liferay.portal.kernel.exception.SystemException
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querycom.liferay.portal.kernel.exception.SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) AHConfig fetchAHConfig(String name) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) AHConfig getAHConfig(String name) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
name
- the primary key of the a h configcom.liferay.portal.kernel.exception.PortalException
- if a a h config with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
getPersistedModel
in interface com.liferay.portal.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AHConfig> getAHConfigs(int start, int end) throws com.liferay.portal.kernel.exception.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 AHConfigModelImpl
. 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 a h configsend
- the upper bound of the range of a h configs (not inclusive)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) int getAHConfigsCount() throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
- if a system exception occurred@Indexable(type=REINDEX) AHConfig updateAHConfig(AHConfig ahConfig) throws com.liferay.portal.kernel.exception.SystemException
ahConfig
- the a h configcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredString getBeanIdentifier()
void setBeanIdentifier(String beanIdentifier)
beanIdentifier
- the Spring bean ID for this beanObject invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable
invokeMethod
in interface com.liferay.portal.service.InvokableLocalService
Throwable
@Transactional(propagation=SUPPORTS, readOnly=true) String getConfig(String key, String defaultValue)
Copyright © 2016 Fraunhofer FOKUS. All rights reserved.