Liferay 7.0-ce-b4

com.liferay.portal.service.base
Class ContactLocalServiceBaseImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portal.service.base.ContactLocalServiceBaseImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, ContactLocalService, PersistedModelLocalService
Direct Known Subclasses:
ContactLocalServiceImpl

@ProviderType
public abstract class ContactLocalServiceBaseImpl
extends BaseLocalServiceImpl
implements ContactLocalService, IdentifiableOSGiService

Provides the base implementation for the contact local service.

This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in ContactLocalServiceImpl.

See Also:
ContactLocalServiceImpl, ContactLocalServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
protected  AddressLocalService addressLocalService
           
protected  AddressPersistence addressPersistence
           
protected  ContactLocalService contactLocalService
           
protected  ContactPersistence contactPersistence
           
protected  CounterLocalService counterLocalService
           
protected  EmailAddressLocalService emailAddressLocalService
           
protected  EmailAddressPersistence emailAddressPersistence
           
protected  OrganizationFinder organizationFinder
           
protected  OrganizationLocalService organizationLocalService
           
protected  OrganizationPersistence organizationPersistence
           
protected  PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
           
protected  PhoneLocalService phoneLocalService
           
protected  PhonePersistence phonePersistence
           
protected  UserFinder userFinder
           
protected  UserLocalService userLocalService
           
protected  UserPersistence userPersistence
           
protected  WebsiteLocalService websiteLocalService
           
protected  WebsitePersistence websitePersistence
           
 
Constructor Summary
ContactLocalServiceBaseImpl()
           
 
Method Summary
 Contact addContact(Contact contact)
          Adds the contact to the database.
 void afterPropertiesSet()
           
 Contact createContact(long contactId)
          Creates a new contact with the primary key.
 Contact deleteContact(Contact contact)
          Deletes the contact from the database.
 Contact deleteContact(long contactId)
          Deletes the contact with the primary key from the database.
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 void destroy()
           
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 Contact fetchContact(long contactId)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 AddressLocalService getAddressLocalService()
          Returns the address local service.
 AddressPersistence getAddressPersistence()
          Returns the address persistence.
 Contact getContact(long contactId)
          Returns the contact with the primary key.
 ContactLocalService getContactLocalService()
          Returns the contact local service.
 ContactPersistence getContactPersistence()
          Returns the contact persistence.
 List<Contact> getContacts(int start, int end)
          Returns a range of all the contacts.
 int getContactsCount()
          Returns the number of contacts.
 CounterLocalService getCounterLocalService()
          Returns the counter local service.
 EmailAddressLocalService getEmailAddressLocalService()
          Returns the email address local service.
 EmailAddressPersistence getEmailAddressPersistence()
          Returns the email address persistence.
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
protected  Class<?> getModelClass()
           
protected  String getModelClassName()
           
 OrganizationFinder getOrganizationFinder()
          Returns the organization finder.
 OrganizationLocalService getOrganizationLocalService()
          Returns the organization local service.
 OrganizationPersistence getOrganizationPersistence()
          Returns the organization persistence.
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 PhoneLocalService getPhoneLocalService()
          Returns the phone local service.
 PhonePersistence getPhonePersistence()
          Returns the phone persistence.
 UserFinder getUserFinder()
          Returns the user finder.
 UserLocalService getUserLocalService()
          Returns the user local service.
 UserPersistence getUserPersistence()
          Returns the user persistence.
 WebsiteLocalService getWebsiteLocalService()
          Returns the website local service.
 WebsitePersistence getWebsitePersistence()
          Returns the website persistence.
protected  void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)
           
protected  void runSQL(String sql)
          Performs a SQL query.
 void setAddressLocalService(AddressLocalService addressLocalService)
          Sets the address local service.
 void setAddressPersistence(AddressPersistence addressPersistence)
          Sets the address persistence.
 void setContactLocalService(ContactLocalService contactLocalService)
          Sets the contact local service.
 void setContactPersistence(ContactPersistence contactPersistence)
          Sets the contact persistence.
 void setCounterLocalService(CounterLocalService counterLocalService)
          Sets the counter local service.
 void setEmailAddressLocalService(EmailAddressLocalService emailAddressLocalService)
          Sets the email address local service.
 void setEmailAddressPersistence(EmailAddressPersistence emailAddressPersistence)
          Sets the email address persistence.
 void setOrganizationFinder(OrganizationFinder organizationFinder)
          Sets the organization finder.
 void setOrganizationLocalService(OrganizationLocalService organizationLocalService)
          Sets the organization local service.
 void setOrganizationPersistence(OrganizationPersistence organizationPersistence)
          Sets the organization persistence.
 void setPhoneLocalService(PhoneLocalService phoneLocalService)
          Sets the phone local service.
 void setPhonePersistence(PhonePersistence phonePersistence)
          Sets the phone persistence.
 void setUserFinder(UserFinder userFinder)
          Sets the user finder.
 void setUserLocalService(UserLocalService userLocalService)
          Sets the user local service.
 void setUserPersistence(UserPersistence userPersistence)
          Sets the user persistence.
 void setWebsiteLocalService(WebsiteLocalService websiteLocalService)
          Sets the website local service.
 void setWebsitePersistence(WebsitePersistence websitePersistence)
          Sets the website persistence.
 Contact updateContact(Contact contact)
          Updates the contact in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.ContactLocalService
addContact, getContacts, getContactsCount, updateContact
 

Field Detail

contactLocalService

@BeanReference(type=ContactLocalService.class)
protected ContactLocalService contactLocalService

contactPersistence

@BeanReference(type=ContactPersistence.class)
protected ContactPersistence contactPersistence

counterLocalService

@BeanReference(type=CounterLocalService.class)
protected CounterLocalService counterLocalService

addressLocalService

@BeanReference(type=AddressLocalService.class)
protected AddressLocalService addressLocalService

addressPersistence

@BeanReference(type=AddressPersistence.class)
protected AddressPersistence addressPersistence

emailAddressLocalService

@BeanReference(type=EmailAddressLocalService.class)
protected EmailAddressLocalService emailAddressLocalService

emailAddressPersistence

@BeanReference(type=EmailAddressPersistence.class)
protected EmailAddressPersistence emailAddressPersistence

organizationLocalService

@BeanReference(type=OrganizationLocalService.class)
protected OrganizationLocalService organizationLocalService

organizationPersistence

@BeanReference(type=OrganizationPersistence.class)
protected OrganizationPersistence organizationPersistence

organizationFinder

@BeanReference(type=OrganizationFinder.class)
protected OrganizationFinder organizationFinder

phoneLocalService

@BeanReference(type=PhoneLocalService.class)
protected PhoneLocalService phoneLocalService

phonePersistence

@BeanReference(type=PhonePersistence.class)
protected PhonePersistence phonePersistence

userLocalService

@BeanReference(type=UserLocalService.class)
protected UserLocalService userLocalService

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

userFinder

@BeanReference(type=UserFinder.class)
protected UserFinder userFinder

websiteLocalService

@BeanReference(type=WebsiteLocalService.class)
protected WebsiteLocalService websiteLocalService

websitePersistence

@BeanReference(type=WebsitePersistence.class)
protected WebsitePersistence websitePersistence

persistedModelLocalServiceRegistry

@BeanReference(type=PersistedModelLocalServiceRegistry.class)
protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
Constructor Detail

ContactLocalServiceBaseImpl

public ContactLocalServiceBaseImpl()
Method Detail

addContact

@Indexable(type=REINDEX)
public Contact addContact(Contact contact)
Adds the contact to the database. Also notifies the appropriate model listeners.

Specified by:
addContact in interface ContactLocalService
Parameters:
contact - the contact
Returns:
the contact that was added

createContact

public Contact createContact(long contactId)
Creates a new contact with the primary key. Does not add the contact to the database.

Specified by:
createContact in interface ContactLocalService
Parameters:
contactId - the primary key for the new contact
Returns:
the new contact

deleteContact

@Indexable(type=DELETE)
public Contact deleteContact(long contactId)
                      throws PortalException
Deletes the contact with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteContact in interface ContactLocalService
Parameters:
contactId - the primary key of the contact
Returns:
the contact that was removed
Throws:
PortalException - if a contact with the primary key could not be found

deleteContact

@Indexable(type=DELETE)
public Contact deleteContact(Contact contact)
Deletes the contact from the database. Also notifies the appropriate model listeners.

Specified by:
deleteContact in interface ContactLocalService
Parameters:
contact - the contact
Returns:
the contact that was removed

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface ContactLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface ContactLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
Performs a dynamic query on the database and returns a range of the matching rows.

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 ContactModelImpl. 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.

Specified by:
dynamicQuery in interface ContactLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.

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 ContactModelImpl. 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.

Specified by:
dynamicQuery in interface ContactLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface ContactLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface ContactLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchContact

public Contact fetchContact(long contactId)
Specified by:
fetchContact in interface ContactLocalService

getContact

public Contact getContact(long contactId)
                   throws PortalException
Returns the contact with the primary key.

Specified by:
getContact in interface ContactLocalService
Parameters:
contactId - the primary key of the contact
Returns:
the contact
Throws:
PortalException - if a contact with the primary key could not be found

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface ContactLocalService

getIndexableActionableDynamicQuery

public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
Specified by:
getIndexableActionableDynamicQuery in interface ContactLocalService

initActionableDynamicQuery

protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface ContactLocalService
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Throws:
PortalException

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface ContactLocalService
Specified by:
getPersistedModel in interface PersistedModelLocalService
Throws:
PortalException

getContacts

public List<Contact> getContacts(int start,
                                 int end)
Returns a range of all the contacts.

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 ContactModelImpl. 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.

Specified by:
getContacts in interface ContactLocalService
Parameters:
start - the lower bound of the range of contacts
end - the upper bound of the range of contacts (not inclusive)
Returns:
the range of contacts

getContactsCount

public int getContactsCount()
Returns the number of contacts.

Specified by:
getContactsCount in interface ContactLocalService
Returns:
the number of contacts

updateContact

@Indexable(type=REINDEX)
public Contact updateContact(Contact contact)
Updates the contact in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateContact in interface ContactLocalService
Parameters:
contact - the contact
Returns:
the contact that was updated

getContactLocalService

public ContactLocalService getContactLocalService()
Returns the contact local service.

Returns:
the contact local service

setContactLocalService

public void setContactLocalService(ContactLocalService contactLocalService)
Sets the contact local service.

Parameters:
contactLocalService - the contact local service

getContactPersistence

public ContactPersistence getContactPersistence()
Returns the contact persistence.

Returns:
the contact persistence

setContactPersistence

public void setContactPersistence(ContactPersistence contactPersistence)
Sets the contact persistence.

Parameters:
contactPersistence - the contact persistence

getCounterLocalService

public CounterLocalService getCounterLocalService()
Returns the counter local service.

Returns:
the counter local service

setCounterLocalService

public void setCounterLocalService(CounterLocalService counterLocalService)
Sets the counter local service.

Parameters:
counterLocalService - the counter local service

getAddressLocalService

public AddressLocalService getAddressLocalService()
Returns the address local service.

Returns:
the address local service

setAddressLocalService

public void setAddressLocalService(AddressLocalService addressLocalService)
Sets the address local service.

Parameters:
addressLocalService - the address local service

getAddressPersistence

public AddressPersistence getAddressPersistence()
Returns the address persistence.

Returns:
the address persistence

setAddressPersistence

public void setAddressPersistence(AddressPersistence addressPersistence)
Sets the address persistence.

Parameters:
addressPersistence - the address persistence

getEmailAddressLocalService

public EmailAddressLocalService getEmailAddressLocalService()
Returns the email address local service.

Returns:
the email address local service

setEmailAddressLocalService

public void setEmailAddressLocalService(EmailAddressLocalService emailAddressLocalService)
Sets the email address local service.

Parameters:
emailAddressLocalService - the email address local service

getEmailAddressPersistence

public EmailAddressPersistence getEmailAddressPersistence()
Returns the email address persistence.

Returns:
the email address persistence

setEmailAddressPersistence

public void setEmailAddressPersistence(EmailAddressPersistence emailAddressPersistence)
Sets the email address persistence.

Parameters:
emailAddressPersistence - the email address persistence

getOrganizationLocalService

public OrganizationLocalService getOrganizationLocalService()
Returns the organization local service.

Returns:
the organization local service

setOrganizationLocalService

public void setOrganizationLocalService(OrganizationLocalService organizationLocalService)
Sets the organization local service.

Parameters:
organizationLocalService - the organization local service

getOrganizationPersistence

public OrganizationPersistence getOrganizationPersistence()
Returns the organization persistence.

Returns:
the organization persistence

setOrganizationPersistence

public void setOrganizationPersistence(OrganizationPersistence organizationPersistence)
Sets the organization persistence.

Parameters:
organizationPersistence - the organization persistence

getOrganizationFinder

public OrganizationFinder getOrganizationFinder()
Returns the organization finder.

Returns:
the organization finder

setOrganizationFinder

public void setOrganizationFinder(OrganizationFinder organizationFinder)
Sets the organization finder.

Parameters:
organizationFinder - the organization finder

getPhoneLocalService

public PhoneLocalService getPhoneLocalService()
Returns the phone local service.

Returns:
the phone local service

setPhoneLocalService

public void setPhoneLocalService(PhoneLocalService phoneLocalService)
Sets the phone local service.

Parameters:
phoneLocalService - the phone local service

getPhonePersistence

public PhonePersistence getPhonePersistence()
Returns the phone persistence.

Returns:
the phone persistence

setPhonePersistence

public void setPhonePersistence(PhonePersistence phonePersistence)
Sets the phone persistence.

Parameters:
phonePersistence - the phone persistence

getUserLocalService

public UserLocalService getUserLocalService()
Returns the user local service.

Returns:
the user local service

setUserLocalService

public void setUserLocalService(UserLocalService userLocalService)
Sets the user local service.

Parameters:
userLocalService - the user local service

getUserPersistence

public UserPersistence getUserPersistence()
Returns the user persistence.

Returns:
the user persistence

setUserPersistence

public void setUserPersistence(UserPersistence userPersistence)
Sets the user persistence.

Parameters:
userPersistence - the user persistence

getUserFinder

public UserFinder getUserFinder()
Returns the user finder.

Returns:
the user finder

setUserFinder

public void setUserFinder(UserFinder userFinder)
Sets the user finder.

Parameters:
userFinder - the user finder

getWebsiteLocalService

public WebsiteLocalService getWebsiteLocalService()
Returns the website local service.

Returns:
the website local service

setWebsiteLocalService

public void setWebsiteLocalService(WebsiteLocalService websiteLocalService)
Sets the website local service.

Parameters:
websiteLocalService - the website local service

getWebsitePersistence

public WebsitePersistence getWebsitePersistence()
Returns the website persistence.

Returns:
the website persistence

setWebsitePersistence

public void setWebsitePersistence(WebsitePersistence websitePersistence)
Sets the website persistence.

Parameters:
websitePersistence - the website persistence

afterPropertiesSet

public void afterPropertiesSet()

destroy

public void destroy()

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface IdentifiableOSGiService
Specified by:
getOSGiServiceIdentifier in interface ContactLocalService
Returns:
the OSGi service identifier

getModelClass

protected Class<?> getModelClass()

getModelClassName

protected String getModelClassName()

runSQL

protected void runSQL(String sql)
Performs a SQL query.

Parameters:
sql - the sql query

Liferay 7.0-ce-b4