|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portal.service.base.ContactLocalServiceBaseImpl
@ProviderType public abstract class ContactLocalServiceBaseImpl
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.
ContactLocalServiceImpl,
ContactLocalServiceUtil| 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()
|
|
|
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
|
|
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
|
|
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 |
|---|
@BeanReference(type=ContactLocalService.class) protected ContactLocalService contactLocalService
@BeanReference(type=ContactPersistence.class) protected ContactPersistence contactPersistence
@BeanReference(type=CounterLocalService.class) protected CounterLocalService counterLocalService
@BeanReference(type=AddressLocalService.class) protected AddressLocalService addressLocalService
@BeanReference(type=AddressPersistence.class) protected AddressPersistence addressPersistence
@BeanReference(type=EmailAddressLocalService.class) protected EmailAddressLocalService emailAddressLocalService
@BeanReference(type=EmailAddressPersistence.class) protected EmailAddressPersistence emailAddressPersistence
@BeanReference(type=OrganizationLocalService.class) protected OrganizationLocalService organizationLocalService
@BeanReference(type=OrganizationPersistence.class) protected OrganizationPersistence organizationPersistence
@BeanReference(type=OrganizationFinder.class) protected OrganizationFinder organizationFinder
@BeanReference(type=PhoneLocalService.class) protected PhoneLocalService phoneLocalService
@BeanReference(type=PhonePersistence.class) protected PhonePersistence phonePersistence
@BeanReference(type=UserLocalService.class) protected UserLocalService userLocalService
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
@BeanReference(type=UserFinder.class) protected UserFinder userFinder
@BeanReference(type=WebsiteLocalService.class) protected WebsiteLocalService websiteLocalService
@BeanReference(type=WebsitePersistence.class) protected WebsitePersistence websitePersistence
@BeanReference(type=PersistedModelLocalServiceRegistry.class) protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
| Constructor Detail |
|---|
public ContactLocalServiceBaseImpl()
| Method Detail |
|---|
@Indexable(type=REINDEX) public Contact addContact(Contact contact)
addContact in interface ContactLocalServicecontact - the contact
public Contact createContact(long contactId)
createContact in interface ContactLocalServicecontactId - the primary key for the new contact
@Indexable(type=DELETE)
public Contact deleteContact(long contactId)
throws PortalException
deleteContact in interface ContactLocalServicecontactId - the primary key of the contact
PortalException - if a contact with the primary key could not be found@Indexable(type=DELETE) public Contact deleteContact(Contact contact)
deleteContact in interface ContactLocalServicecontact - the contact
public DynamicQuery dynamicQuery()
dynamicQuery in interface ContactLocalServicepublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery in interface ContactLocalServicedynamicQuery - the dynamic query
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
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.
dynamicQuery in interface ContactLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
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.
dynamicQuery in interface ContactLocalServicedynamicQuery - 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)
public long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQueryCount in interface ContactLocalServicedynamicQuery - the dynamic query
public long dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
dynamicQueryCount in interface ContactLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the query
public Contact fetchContact(long contactId)
fetchContact in interface ContactLocalService
public Contact getContact(long contactId)
throws PortalException
getContact in interface ContactLocalServicecontactId - the primary key of the contact
PortalException - if a contact with the primary key could not be foundpublic ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface ContactLocalServicepublic IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface ContactLocalServiceprotected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)
public PersistedModel deletePersistedModel(PersistedModel persistedModel)
throws PortalException
deletePersistedModel in interface ContactLocalServicedeletePersistedModel in interface PersistedModelLocalServicePortalException
public PersistedModel getPersistedModel(Serializable primaryKeyObj)
throws PortalException
getPersistedModel in interface ContactLocalServicegetPersistedModel in interface PersistedModelLocalServicePortalException
public List<Contact> getContacts(int start,
int end)
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.
getContacts in interface ContactLocalServicestart - the lower bound of the range of contactsend - the upper bound of the range of contacts (not inclusive)
public int getContactsCount()
getContactsCount in interface ContactLocalService@Indexable(type=REINDEX) public Contact updateContact(Contact contact)
updateContact in interface ContactLocalServicecontact - the contact
public ContactLocalService getContactLocalService()
public void setContactLocalService(ContactLocalService contactLocalService)
contactLocalService - the contact local servicepublic ContactPersistence getContactPersistence()
public void setContactPersistence(ContactPersistence contactPersistence)
contactPersistence - the contact persistencepublic CounterLocalService getCounterLocalService()
public void setCounterLocalService(CounterLocalService counterLocalService)
counterLocalService - the counter local servicepublic AddressLocalService getAddressLocalService()
public void setAddressLocalService(AddressLocalService addressLocalService)
addressLocalService - the address local servicepublic AddressPersistence getAddressPersistence()
public void setAddressPersistence(AddressPersistence addressPersistence)
addressPersistence - the address persistencepublic EmailAddressLocalService getEmailAddressLocalService()
public void setEmailAddressLocalService(EmailAddressLocalService emailAddressLocalService)
emailAddressLocalService - the email address local servicepublic EmailAddressPersistence getEmailAddressPersistence()
public void setEmailAddressPersistence(EmailAddressPersistence emailAddressPersistence)
emailAddressPersistence - the email address persistencepublic OrganizationLocalService getOrganizationLocalService()
public void setOrganizationLocalService(OrganizationLocalService organizationLocalService)
organizationLocalService - the organization local servicepublic OrganizationPersistence getOrganizationPersistence()
public void setOrganizationPersistence(OrganizationPersistence organizationPersistence)
organizationPersistence - the organization persistencepublic OrganizationFinder getOrganizationFinder()
public void setOrganizationFinder(OrganizationFinder organizationFinder)
organizationFinder - the organization finderpublic PhoneLocalService getPhoneLocalService()
public void setPhoneLocalService(PhoneLocalService phoneLocalService)
phoneLocalService - the phone local servicepublic PhonePersistence getPhonePersistence()
public void setPhonePersistence(PhonePersistence phonePersistence)
phonePersistence - the phone persistencepublic UserLocalService getUserLocalService()
public void setUserLocalService(UserLocalService userLocalService)
userLocalService - the user local servicepublic UserPersistence getUserPersistence()
public void setUserPersistence(UserPersistence userPersistence)
userPersistence - the user persistencepublic UserFinder getUserFinder()
public void setUserFinder(UserFinder userFinder)
userFinder - the user finderpublic WebsiteLocalService getWebsiteLocalService()
public void setWebsiteLocalService(WebsiteLocalService websiteLocalService)
websiteLocalService - the website local servicepublic WebsitePersistence getWebsitePersistence()
public void setWebsitePersistence(WebsitePersistence websitePersistence)
websitePersistence - the website persistencepublic void afterPropertiesSet()
public void destroy()
public String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface IdentifiableOSGiServicegetOSGiServiceIdentifier in interface ContactLocalServiceprotected Class<?> getModelClass()
protected String getModelClassName()
protected void runSQL(String sql)
sql - the sql query
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||