public class AHContactLocalServiceUtil extends Object
AHContactLocalServiceImpl
and is the
primary access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.AHContactLocalService
,
AHContactLocalServiceBaseImpl
,
AHContactLocalServiceImpl
Constructor and Description |
---|
AHContactLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static AHContact |
addAHContact(AHContact ahContact)
Adds the a h contact to the database.
|
static AHContact |
addContact(String forename,
String surname,
String phone,
String fax,
String mail,
String web) |
static void |
clearService() |
static AHContact |
createAHContact(long contactId)
Creates a new a h contact with the primary key.
|
static AHContact |
deleteAHContact(AHContact ahContact)
Deletes the a h contact from the database.
|
static AHContact |
deleteAHContact(long contactId)
Deletes the a h contact with the primary key from the database.
|
static com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
static List |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static 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.
|
static 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.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query.
|
static 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.
|
static AHContact |
fetchAHContact(long contactId) |
static AHContact |
getAHContact(long contactId)
Returns the a h contact with the primary key.
|
static List<AHContact> |
getAHContacts(int start,
int end)
Returns a range of all the a h contacts.
|
static int |
getAHContactsCount()
Returns the number of a h contacts.
|
static String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
static List<AHContact> |
getByMail(String mail) |
static List<AHContact> |
getByName(String forename,
String surname) |
static com.liferay.portal.model.PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
static AHContactLocalService |
getService() |
static Object |
invokeMethod(String name,
String[] parameterTypes,
Object[] arguments) |
static void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.
|
void |
setService(AHContactLocalService service)
Deprecated.
As of 6.2.0
|
static AHContact |
updateAHContact(AHContact ahContact)
Updates the a h contact in the database or adds it if it does not yet exist.
|
public static AHContact addAHContact(AHContact ahContact) throws com.liferay.portal.kernel.exception.SystemException
ahContact
- the a h contactSystemException
- if a system exception occurredpublic static AHContact createAHContact(long contactId)
contactId
- the primary key for the new a h contactpublic static AHContact deleteAHContact(long contactId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
contactId
- the primary key of the a h contactPortalException
- if a a h contact with the primary key could not be foundSystemException
- if a system exception occurredpublic static AHContact deleteAHContact(AHContact ahContact) throws com.liferay.portal.kernel.exception.SystemException
ahContact
- the a h contactSystemException
- if a system exception occurredpublic static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
public static List dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) throws com.liferay.portal.kernel.exception.SystemException
dynamicQuery
- the dynamic querySystemException
- if a system exception occurredpublic static List 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 AHContactModelImpl
. 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)SystemException
- if a system exception occurredpublic static List 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 AHContactModelImpl
. 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
)SystemException
- if a system exception occurredpublic static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) throws com.liferay.portal.kernel.exception.SystemException
dynamicQuery
- the dynamic querySystemException
- if a system exception occurredpublic static long 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 querySystemException
- if a system exception occurredpublic static AHContact fetchAHContact(long contactId) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
public static AHContact getAHContact(long contactId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
contactId
- the primary key of the a h contactPortalException
- if a a h contact with the primary key could not be foundSystemException
- if a system exception occurredpublic static com.liferay.portal.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
public static List<AHContact> getAHContacts(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 AHContactModelImpl
. 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 contactsend
- the upper bound of the range of a h contacts (not inclusive)SystemException
- if a system exception occurredpublic static int getAHContactsCount() throws com.liferay.portal.kernel.exception.SystemException
SystemException
- if a system exception occurredpublic static AHContact updateAHContact(AHContact ahContact) throws com.liferay.portal.kernel.exception.SystemException
ahContact
- the a h contactSystemException
- if a system exception occurredpublic static String getBeanIdentifier()
public static void setBeanIdentifier(String beanIdentifier)
beanIdentifier
- the Spring bean ID for this beanpublic static Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable
Throwable
public static AHContact addContact(String forename, String surname, String phone, String fax, String mail, String web)
public static void clearService()
public static AHContactLocalService getService()
public void setService(AHContactLocalService service)
Copyright © 2016 Fraunhofer FOKUS. All rights reserved.