Liferay 6.0.4

com.liferay.portal.service
Class PhoneLocalServiceUtil

java.lang.Object
  extended by com.liferay.portal.service.PhoneLocalServiceUtil

public class PhoneLocalServiceUtil
extends Object

This class provides static methods for the PhoneLocalService bean. The static methods of this class calls the same methods of the bean instance. It's convenient to be able to just write one line to call a method on a bean instead of writing a lookup call and a method call.

See Also:
PhoneLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
PhoneLocalServiceUtil()
           
 
Method Summary
static Phone addPhone(long userId, String className, long classPK, String number, String extension, int typeId, boolean primary)
           
static Phone addPhone(Phone phone)
           
static Phone createPhone(long phoneId)
           
static void deletePhone(long phoneId)
           
static void deletePhone(Phone phone)
           
static void deletePhones(long companyId, String className, long classPK)
           
static List dynamicQuery(DynamicQuery dynamicQuery)
           
static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static long dynamicQueryCount(DynamicQuery dynamicQuery)
           
static Phone getPhone(long phoneId)
           
static List<Phone> getPhones()
           
static List<Phone> getPhones(int start, int end)
           
static List<Phone> getPhones(long companyId, String className, long classPK)
           
static int getPhonesCount()
           
static PhoneLocalService getService()
           
 void setService(PhoneLocalService service)
           
static Phone updatePhone(long phoneId, String number, String extension, int typeId, boolean primary)
           
static Phone updatePhone(Phone phone)
           
static Phone updatePhone(Phone phone, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhoneLocalServiceUtil

public PhoneLocalServiceUtil()
Method Detail

addPhone

public static Phone addPhone(Phone phone)
                      throws SystemException
Throws:
SystemException

createPhone

public static Phone createPhone(long phoneId)

deletePhone

public static void deletePhone(long phoneId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

deletePhone

public static void deletePhone(Phone phone)
                        throws SystemException
Throws:
SystemException

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery)
                         throws SystemException
Throws:
SystemException

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
                         throws SystemException
Throws:
SystemException

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws SystemException
Throws:
SystemException

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery)
                              throws SystemException
Throws:
SystemException

getPhone

public static Phone getPhone(long phoneId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

getPhones

public static List<Phone> getPhones(int start,
                                    int end)
                             throws SystemException
Throws:
SystemException

getPhonesCount

public static int getPhonesCount()
                          throws SystemException
Throws:
SystemException

updatePhone

public static Phone updatePhone(Phone phone)
                         throws SystemException
Throws:
SystemException

updatePhone

public static Phone updatePhone(Phone phone,
                                boolean merge)
                         throws SystemException
Throws:
SystemException

addPhone

public static Phone addPhone(long userId,
                             String className,
                             long classPK,
                             String number,
                             String extension,
                             int typeId,
                             boolean primary)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

deletePhones

public static void deletePhones(long companyId,
                                String className,
                                long classPK)
                         throws SystemException
Throws:
SystemException

getPhones

public static List<Phone> getPhones()
                             throws SystemException
Throws:
SystemException

getPhones

public static List<Phone> getPhones(long companyId,
                                    String className,
                                    long classPK)
                             throws SystemException
Throws:
SystemException

updatePhone

public static Phone updatePhone(long phoneId,
                                String number,
                                String extension,
                                int typeId,
                                boolean primary)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getService

public static PhoneLocalService getService()

setService

public void setService(PhoneLocalService service)

Liferay 6.0.4