@Transactional(isolation=PORTAL,
rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface AHAddrLocalService
extends com.liferay.portal.service.BaseLocalService, com.liferay.portal.service.InvokableLocalService, com.liferay.portal.service.PersistedModelLocalService
AHAddrLocalServiceUtil
,
AHAddrLocalServiceBaseImpl
,
AHAddrLocalServiceImpl
Modifier and Type | Method and Description |
---|---|
AHAddr |
addAddress(String street,
String number,
Float lat,
Float lon,
long regionId) |
AHAddr |
addAHAddr(AHAddr ahAddr)
Adds the a h addr to the database.
|
AHAddr |
createAHAddr(long addrId)
Creates a new a h addr with the primary key.
|
AHAddr |
deleteAHAddr(AHAddr ahAddr)
Deletes the a h addr from the database.
|
AHAddr |
deleteAHAddr(long addrId)
Deletes the a h addr 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.
|
AHAddr |
fetchAHAddr(long addrId) |
List<AHAddr> |
findAddressesForRegion(long regionId) |
AHAddr |
getAddress(String street,
String number,
long regionId) |
AHAddr |
getAHAddr(long addrId)
Returns the a h addr with the primary key.
|
List<AHAddr> |
getAHAddrs(int start,
int end)
Returns a range of all the a h addrs.
|
int |
getAHAddrsCount()
Returns the number of a h addrs.
|
String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
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.
|
AHAddr |
updateAHAddr(AHAddr ahAddr)
Updates the a h addr in the database or adds it if it does not yet exist.
|
AHAddr |
updateCoords(long addrId,
Float lat,
Float lon) |
@Indexable(type=REINDEX) AHAddr addAHAddr(AHAddr ahAddr) throws com.liferay.portal.kernel.exception.SystemException
ahAddr
- the a h addrcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurredAHAddr createAHAddr(long addrId)
addrId
- the primary key for the new a h addr@Indexable(type=DELETE) AHAddr deleteAHAddr(long addrId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
addrId
- the primary key of the a h addrcom.liferay.portal.kernel.exception.PortalException
- if a a h addr with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException
- if a system exception occurred@Indexable(type=DELETE) AHAddr deleteAHAddr(AHAddr ahAddr) throws com.liferay.portal.kernel.exception.SystemException
ahAddr
- the a h addrcom.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 AHAddrModelImpl
. 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 AHAddrModelImpl
. 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) AHAddr fetchAHAddr(long addrId) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) AHAddr getAHAddr(long addrId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
addrId
- the primary key of the a h addrcom.liferay.portal.kernel.exception.PortalException
- if a a h addr 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<AHAddr> getAHAddrs(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 AHAddrModelImpl
. 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 addrsend
- the upper bound of the range of a h addrs (not inclusive)com.liferay.portal.kernel.exception.SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) int getAHAddrsCount() throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
- if a system exception occurred@Indexable(type=REINDEX) AHAddr updateAHAddr(AHAddr ahAddr) throws com.liferay.portal.kernel.exception.SystemException
ahAddr
- the a h addrcom.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) AHAddr getAddress(String street, String number, long regionId)
Copyright © 2016 Fraunhofer FOKUS. All rights reserved.