Liferay 7.0-ce-b4

com.liferay.portal.service.base
Class CompanyLocalServiceBaseImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portal.service.base.CompanyLocalServiceBaseImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, CompanyLocalService, PersistedModelLocalService
Direct Known Subclasses:
CompanyLocalServiceImpl

@ProviderType
public abstract class CompanyLocalServiceBaseImpl
extends BaseLocalServiceImpl
implements CompanyLocalService, IdentifiableOSGiService

Provides the base implementation for the company 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 CompanyLocalServiceImpl.

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

Field Summary
protected  AccountLocalService accountLocalService
           
protected  AccountPersistence accountPersistence
           
protected  CompanyLocalService companyLocalService
           
protected  CompanyPersistence companyPersistence
           
protected  ContactLocalService contactLocalService
           
protected  ContactPersistence contactPersistence
           
protected  CounterLocalService counterLocalService
           
protected  GroupFinder groupFinder
           
protected  GroupLocalService groupLocalService
           
protected  GroupPersistence groupPersistence
           
protected  ImageLocalService imageLocalService
           
protected  ImagePersistence imagePersistence
           
protected  LayoutPrototypeLocalService layoutPrototypeLocalService
           
protected  LayoutPrototypePersistence layoutPrototypePersistence
           
protected  LayoutSetLocalService layoutSetLocalService
           
protected  LayoutSetPersistence layoutSetPersistence
           
protected  LayoutSetPrototypeLocalService layoutSetPrototypeLocalService
           
protected  LayoutSetPrototypePersistence layoutSetPrototypePersistence
           
protected  OrganizationFinder organizationFinder
           
protected  OrganizationLocalService organizationLocalService
           
protected  OrganizationPersistence organizationPersistence
           
protected  PasswordPolicyFinder passwordPolicyFinder
           
protected  PasswordPolicyLocalService passwordPolicyLocalService
           
protected  PasswordPolicyPersistence passwordPolicyPersistence
           
protected  PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
           
protected  PortalPreferencesLocalService portalPreferencesLocalService
           
protected  PortalPreferencesPersistence portalPreferencesPersistence
           
protected  PortletLocalService portletLocalService
           
protected  PortletPersistence portletPersistence
           
protected  ResourceLocalService resourceLocalService
           
protected  ResourcePermissionFinder resourcePermissionFinder
           
protected  ResourcePermissionLocalService resourcePermissionLocalService
           
protected  ResourcePermissionPersistence resourcePermissionPersistence
           
protected  RoleFinder roleFinder
           
protected  RoleLocalService roleLocalService
           
protected  RolePersistence rolePersistence
           
protected  UserFinder userFinder
           
protected  UserLocalService userLocalService
           
protected  UserPersistence userPersistence
           
protected  VirtualHostLocalService virtualHostLocalService
           
protected  VirtualHostPersistence virtualHostPersistence
           
 
Constructor Summary
CompanyLocalServiceBaseImpl()
           
 
Method Summary
 Company addCompany(Company company)
          Adds the company to the database.
 void afterPropertiesSet()
           
 Company createCompany(long companyId)
          Creates a new company with the primary key.
 Company deleteCompany(Company company)
          Deletes the company from the database.
 Company deleteCompany(long companyId)
          Deletes the company 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.
 Company fetchCompany(long companyId)
           
 AccountLocalService getAccountLocalService()
          Returns the account local service.
 AccountPersistence getAccountPersistence()
          Returns the account persistence.
 ActionableDynamicQuery getActionableDynamicQuery()
           
 List<Company> getCompanies(int start, int end)
          Returns a range of all the companies.
 int getCompaniesCount()
          Returns the number of companies.
 Company getCompany(long companyId)
          Returns the company with the primary key.
 CompanyLocalService getCompanyLocalService()
          Returns the company local service.
 CompanyPersistence getCompanyPersistence()
          Returns the company persistence.
 ContactLocalService getContactLocalService()
          Returns the contact local service.
 ContactPersistence getContactPersistence()
          Returns the contact persistence.
 CounterLocalService getCounterLocalService()
          Returns the counter local service.
 GroupFinder getGroupFinder()
          Returns the group finder.
 GroupLocalService getGroupLocalService()
          Returns the group local service.
 GroupPersistence getGroupPersistence()
          Returns the group persistence.
 ImageLocalService getImageLocalService()
          Returns the image local service.
 ImagePersistence getImagePersistence()
          Returns the image persistence.
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 LayoutPrototypeLocalService getLayoutPrototypeLocalService()
          Returns the layout prototype local service.
 LayoutPrototypePersistence getLayoutPrototypePersistence()
          Returns the layout prototype persistence.
 LayoutSetLocalService getLayoutSetLocalService()
          Returns the layout set local service.
 LayoutSetPersistence getLayoutSetPersistence()
          Returns the layout set persistence.
 LayoutSetPrototypeLocalService getLayoutSetPrototypeLocalService()
          Returns the layout set prototype local service.
 LayoutSetPrototypePersistence getLayoutSetPrototypePersistence()
          Returns the layout set prototype persistence.
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.
 PasswordPolicyFinder getPasswordPolicyFinder()
          Returns the password policy finder.
 PasswordPolicyLocalService getPasswordPolicyLocalService()
          Returns the password policy local service.
 PasswordPolicyPersistence getPasswordPolicyPersistence()
          Returns the password policy persistence.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 PortalPreferencesLocalService getPortalPreferencesLocalService()
          Returns the portal preferences local service.
 PortalPreferencesPersistence getPortalPreferencesPersistence()
          Returns the portal preferences persistence.
 PortletLocalService getPortletLocalService()
          Returns the portlet local service.
 PortletPersistence getPortletPersistence()
          Returns the portlet persistence.
 ResourceLocalService getResourceLocalService()
          Returns the resource local service.
 ResourcePermissionFinder getResourcePermissionFinder()
          Returns the resource permission finder.
 ResourcePermissionLocalService getResourcePermissionLocalService()
          Returns the resource permission local service.
 ResourcePermissionPersistence getResourcePermissionPersistence()
          Returns the resource permission persistence.
 RoleFinder getRoleFinder()
          Returns the role finder.
 RoleLocalService getRoleLocalService()
          Returns the role local service.
 RolePersistence getRolePersistence()
          Returns the role persistence.
 UserFinder getUserFinder()
          Returns the user finder.
 UserLocalService getUserLocalService()
          Returns the user local service.
 UserPersistence getUserPersistence()
          Returns the user persistence.
 VirtualHostLocalService getVirtualHostLocalService()
          Returns the virtual host local service.
 VirtualHostPersistence getVirtualHostPersistence()
          Returns the virtual host persistence.
protected  void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)
           
protected  void runSQL(String sql)
          Performs a SQL query.
 void setAccountLocalService(AccountLocalService accountLocalService)
          Sets the account local service.
 void setAccountPersistence(AccountPersistence accountPersistence)
          Sets the account persistence.
 void setCompanyLocalService(CompanyLocalService companyLocalService)
          Sets the company local service.
 void setCompanyPersistence(CompanyPersistence companyPersistence)
          Sets the company 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 setGroupFinder(GroupFinder groupFinder)
          Sets the group finder.
 void setGroupLocalService(GroupLocalService groupLocalService)
          Sets the group local service.
 void setGroupPersistence(GroupPersistence groupPersistence)
          Sets the group persistence.
 void setImageLocalService(ImageLocalService imageLocalService)
          Sets the image local service.
 void setImagePersistence(ImagePersistence imagePersistence)
          Sets the image persistence.
 void setLayoutPrototypeLocalService(LayoutPrototypeLocalService layoutPrototypeLocalService)
          Sets the layout prototype local service.
 void setLayoutPrototypePersistence(LayoutPrototypePersistence layoutPrototypePersistence)
          Sets the layout prototype persistence.
 void setLayoutSetLocalService(LayoutSetLocalService layoutSetLocalService)
          Sets the layout set local service.
 void setLayoutSetPersistence(LayoutSetPersistence layoutSetPersistence)
          Sets the layout set persistence.
 void setLayoutSetPrototypeLocalService(LayoutSetPrototypeLocalService layoutSetPrototypeLocalService)
          Sets the layout set prototype local service.
 void setLayoutSetPrototypePersistence(LayoutSetPrototypePersistence layoutSetPrototypePersistence)
          Sets the layout set prototype 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 setPasswordPolicyFinder(PasswordPolicyFinder passwordPolicyFinder)
          Sets the password policy finder.
 void setPasswordPolicyLocalService(PasswordPolicyLocalService passwordPolicyLocalService)
          Sets the password policy local service.
 void setPasswordPolicyPersistence(PasswordPolicyPersistence passwordPolicyPersistence)
          Sets the password policy persistence.
 void setPortalPreferencesLocalService(PortalPreferencesLocalService portalPreferencesLocalService)
          Sets the portal preferences local service.
 void setPortalPreferencesPersistence(PortalPreferencesPersistence portalPreferencesPersistence)
          Sets the portal preferences persistence.
 void setPortletLocalService(PortletLocalService portletLocalService)
          Sets the portlet local service.
 void setPortletPersistence(PortletPersistence portletPersistence)
          Sets the portlet persistence.
 void setResourceLocalService(ResourceLocalService resourceLocalService)
          Sets the resource local service.
 void setResourcePermissionFinder(ResourcePermissionFinder resourcePermissionFinder)
          Sets the resource permission finder.
 void setResourcePermissionLocalService(ResourcePermissionLocalService resourcePermissionLocalService)
          Sets the resource permission local service.
 void setResourcePermissionPersistence(ResourcePermissionPersistence resourcePermissionPersistence)
          Sets the resource permission persistence.
 void setRoleFinder(RoleFinder roleFinder)
          Sets the role finder.
 void setRoleLocalService(RoleLocalService roleLocalService)
          Sets the role local service.
 void setRolePersistence(RolePersistence rolePersistence)
          Sets the role 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 setVirtualHostLocalService(VirtualHostLocalService virtualHostLocalService)
          Sets the virtual host local service.
 void setVirtualHostPersistence(VirtualHostPersistence virtualHostPersistence)
          Sets the virtual host persistence.
 Company updateCompany(Company company)
          Updates the company 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.CompanyLocalService
addCompany, checkCompany, checkCompany, checkCompanyKey, deleteLogo, fetchCompanyById, fetchCompanyByVirtualHost, getCompanies, getCompanies, getCompanies, getCompaniesCount, getCompanyById, getCompanyByLogoId, getCompanyByMx, getCompanyByVirtualHost, getCompanyByWebId, getCompanyIdByUserId, removePreferences, search, search, updateCompany, updateCompany, updateCompany, updateDisplay, updateLogo, updateLogo, updateLogo, updatePreferences, updateSecurity
 

Field Detail

companyLocalService

@BeanReference(type=CompanyLocalService.class)
protected CompanyLocalService companyLocalService

companyPersistence

@BeanReference(type=CompanyPersistence.class)
protected CompanyPersistence companyPersistence

counterLocalService

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

accountLocalService

@BeanReference(type=AccountLocalService.class)
protected AccountLocalService accountLocalService

accountPersistence

@BeanReference(type=AccountPersistence.class)
protected AccountPersistence accountPersistence

contactLocalService

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

contactPersistence

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

groupLocalService

@BeanReference(type=GroupLocalService.class)
protected GroupLocalService groupLocalService

groupPersistence

@BeanReference(type=GroupPersistence.class)
protected GroupPersistence groupPersistence

groupFinder

@BeanReference(type=GroupFinder.class)
protected GroupFinder groupFinder

imageLocalService

@BeanReference(type=ImageLocalService.class)
protected ImageLocalService imageLocalService

imagePersistence

@BeanReference(type=ImagePersistence.class)
protected ImagePersistence imagePersistence

layoutPrototypeLocalService

@BeanReference(type=LayoutPrototypeLocalService.class)
protected LayoutPrototypeLocalService layoutPrototypeLocalService

layoutPrototypePersistence

@BeanReference(type=LayoutPrototypePersistence.class)
protected LayoutPrototypePersistence layoutPrototypePersistence

layoutSetLocalService

@BeanReference(type=LayoutSetLocalService.class)
protected LayoutSetLocalService layoutSetLocalService

layoutSetPersistence

@BeanReference(type=LayoutSetPersistence.class)
protected LayoutSetPersistence layoutSetPersistence

layoutSetPrototypeLocalService

@BeanReference(type=LayoutSetPrototypeLocalService.class)
protected LayoutSetPrototypeLocalService layoutSetPrototypeLocalService

layoutSetPrototypePersistence

@BeanReference(type=LayoutSetPrototypePersistence.class)
protected LayoutSetPrototypePersistence layoutSetPrototypePersistence

organizationLocalService

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

organizationPersistence

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

organizationFinder

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

passwordPolicyLocalService

@BeanReference(type=PasswordPolicyLocalService.class)
protected PasswordPolicyLocalService passwordPolicyLocalService

passwordPolicyPersistence

@BeanReference(type=PasswordPolicyPersistence.class)
protected PasswordPolicyPersistence passwordPolicyPersistence

passwordPolicyFinder

@BeanReference(type=PasswordPolicyFinder.class)
protected PasswordPolicyFinder passwordPolicyFinder

portalPreferencesLocalService

@BeanReference(type=PortalPreferencesLocalService.class)
protected PortalPreferencesLocalService portalPreferencesLocalService

portalPreferencesPersistence

@BeanReference(type=PortalPreferencesPersistence.class)
protected PortalPreferencesPersistence portalPreferencesPersistence

portletLocalService

@BeanReference(type=PortletLocalService.class)
protected PortletLocalService portletLocalService

portletPersistence

@BeanReference(type=PortletPersistence.class)
protected PortletPersistence portletPersistence

resourceLocalService

@BeanReference(type=ResourceLocalService.class)
protected ResourceLocalService resourceLocalService

resourcePermissionLocalService

@BeanReference(type=ResourcePermissionLocalService.class)
protected ResourcePermissionLocalService resourcePermissionLocalService

resourcePermissionPersistence

@BeanReference(type=ResourcePermissionPersistence.class)
protected ResourcePermissionPersistence resourcePermissionPersistence

resourcePermissionFinder

@BeanReference(type=ResourcePermissionFinder.class)
protected ResourcePermissionFinder resourcePermissionFinder

roleLocalService

@BeanReference(type=RoleLocalService.class)
protected RoleLocalService roleLocalService

rolePersistence

@BeanReference(type=RolePersistence.class)
protected RolePersistence rolePersistence

roleFinder

@BeanReference(type=RoleFinder.class)
protected RoleFinder roleFinder

userLocalService

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

userPersistence

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

userFinder

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

virtualHostLocalService

@BeanReference(type=VirtualHostLocalService.class)
protected VirtualHostLocalService virtualHostLocalService

virtualHostPersistence

@BeanReference(type=VirtualHostPersistence.class)
protected VirtualHostPersistence virtualHostPersistence

persistedModelLocalServiceRegistry

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

CompanyLocalServiceBaseImpl

public CompanyLocalServiceBaseImpl()
Method Detail

addCompany

@Indexable(type=REINDEX)
public Company addCompany(Company company)
Adds the company to the database. Also notifies the appropriate model listeners.

Specified by:
addCompany in interface CompanyLocalService
Parameters:
company - the company
Returns:
the company that was added

createCompany

public Company createCompany(long companyId)
Creates a new company with the primary key. Does not add the company to the database.

Specified by:
createCompany in interface CompanyLocalService
Parameters:
companyId - the primary key for the new company
Returns:
the new company

deleteCompany

@Indexable(type=DELETE)
public Company deleteCompany(long companyId)
                      throws PortalException
Deletes the company with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteCompany in interface CompanyLocalService
Parameters:
companyId - the primary key of the company
Returns:
the company that was removed
Throws:
PortalException - if a company with the primary key could not be found

deleteCompany

@Indexable(type=DELETE)
public Company deleteCompany(Company company)
                      throws PortalException
Deletes the company from the database. Also notifies the appropriate model listeners.

Specified by:
deleteCompany in interface CompanyLocalService
Parameters:
company - the company
Returns:
the company that was removed
Throws:
PortalException

dynamicQuery

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

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 CompanyLocalService
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 CompanyModelImpl. 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 CompanyLocalService
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 CompanyModelImpl. 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 CompanyLocalService
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 CompanyLocalService
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 CompanyLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchCompany

public Company fetchCompany(long companyId)
Specified by:
fetchCompany in interface CompanyLocalService

getCompany

public Company getCompany(long companyId)
                   throws PortalException
Returns the company with the primary key.

Specified by:
getCompany in interface CompanyLocalService
Parameters:
companyId - the primary key of the company
Returns:
the company
Throws:
PortalException - if a company with the primary key could not be found

getActionableDynamicQuery

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

getIndexableActionableDynamicQuery

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

initActionableDynamicQuery

protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)

deletePersistedModel

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

getPersistedModel

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

getCompanies

public List<Company> getCompanies(int start,
                                  int end)
Returns a range of all the companies.

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 CompanyModelImpl. 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:
getCompanies in interface CompanyLocalService
Parameters:
start - the lower bound of the range of companies
end - the upper bound of the range of companies (not inclusive)
Returns:
the range of companies

getCompaniesCount

public int getCompaniesCount()
Returns the number of companies.

Specified by:
getCompaniesCount in interface CompanyLocalService
Returns:
the number of companies

updateCompany

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

Specified by:
updateCompany in interface CompanyLocalService
Parameters:
company - the company
Returns:
the company that was updated

getCompanyLocalService

public CompanyLocalService getCompanyLocalService()
Returns the company local service.

Returns:
the company local service

setCompanyLocalService

public void setCompanyLocalService(CompanyLocalService companyLocalService)
Sets the company local service.

Parameters:
companyLocalService - the company local service

getCompanyPersistence

public CompanyPersistence getCompanyPersistence()
Returns the company persistence.

Returns:
the company persistence

setCompanyPersistence

public void setCompanyPersistence(CompanyPersistence companyPersistence)
Sets the company persistence.

Parameters:
companyPersistence - the company 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

getAccountLocalService

public AccountLocalService getAccountLocalService()
Returns the account local service.

Returns:
the account local service

setAccountLocalService

public void setAccountLocalService(AccountLocalService accountLocalService)
Sets the account local service.

Parameters:
accountLocalService - the account local service

getAccountPersistence

public AccountPersistence getAccountPersistence()
Returns the account persistence.

Returns:
the account persistence

setAccountPersistence

public void setAccountPersistence(AccountPersistence accountPersistence)
Sets the account persistence.

Parameters:
accountPersistence - the account persistence

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

getGroupLocalService

public GroupLocalService getGroupLocalService()
Returns the group local service.

Returns:
the group local service

setGroupLocalService

public void setGroupLocalService(GroupLocalService groupLocalService)
Sets the group local service.

Parameters:
groupLocalService - the group local service

getGroupPersistence

public GroupPersistence getGroupPersistence()
Returns the group persistence.

Returns:
the group persistence

setGroupPersistence

public void setGroupPersistence(GroupPersistence groupPersistence)
Sets the group persistence.

Parameters:
groupPersistence - the group persistence

getGroupFinder

public GroupFinder getGroupFinder()
Returns the group finder.

Returns:
the group finder

setGroupFinder

public void setGroupFinder(GroupFinder groupFinder)
Sets the group finder.

Parameters:
groupFinder - the group finder

getImageLocalService

public ImageLocalService getImageLocalService()
Returns the image local service.

Returns:
the image local service

setImageLocalService

public void setImageLocalService(ImageLocalService imageLocalService)
Sets the image local service.

Parameters:
imageLocalService - the image local service

getImagePersistence

public ImagePersistence getImagePersistence()
Returns the image persistence.

Returns:
the image persistence

setImagePersistence

public void setImagePersistence(ImagePersistence imagePersistence)
Sets the image persistence.

Parameters:
imagePersistence - the image persistence

getLayoutPrototypeLocalService

public LayoutPrototypeLocalService getLayoutPrototypeLocalService()
Returns the layout prototype local service.

Returns:
the layout prototype local service

setLayoutPrototypeLocalService

public void setLayoutPrototypeLocalService(LayoutPrototypeLocalService layoutPrototypeLocalService)
Sets the layout prototype local service.

Parameters:
layoutPrototypeLocalService - the layout prototype local service

getLayoutPrototypePersistence

public LayoutPrototypePersistence getLayoutPrototypePersistence()
Returns the layout prototype persistence.

Returns:
the layout prototype persistence

setLayoutPrototypePersistence

public void setLayoutPrototypePersistence(LayoutPrototypePersistence layoutPrototypePersistence)
Sets the layout prototype persistence.

Parameters:
layoutPrototypePersistence - the layout prototype persistence

getLayoutSetLocalService

public LayoutSetLocalService getLayoutSetLocalService()
Returns the layout set local service.

Returns:
the layout set local service

setLayoutSetLocalService

public void setLayoutSetLocalService(LayoutSetLocalService layoutSetLocalService)
Sets the layout set local service.

Parameters:
layoutSetLocalService - the layout set local service

getLayoutSetPersistence

public LayoutSetPersistence getLayoutSetPersistence()
Returns the layout set persistence.

Returns:
the layout set persistence

setLayoutSetPersistence

public void setLayoutSetPersistence(LayoutSetPersistence layoutSetPersistence)
Sets the layout set persistence.

Parameters:
layoutSetPersistence - the layout set persistence

getLayoutSetPrototypeLocalService

public LayoutSetPrototypeLocalService getLayoutSetPrototypeLocalService()
Returns the layout set prototype local service.

Returns:
the layout set prototype local service

setLayoutSetPrototypeLocalService

public void setLayoutSetPrototypeLocalService(LayoutSetPrototypeLocalService layoutSetPrototypeLocalService)
Sets the layout set prototype local service.

Parameters:
layoutSetPrototypeLocalService - the layout set prototype local service

getLayoutSetPrototypePersistence

public LayoutSetPrototypePersistence getLayoutSetPrototypePersistence()
Returns the layout set prototype persistence.

Returns:
the layout set prototype persistence

setLayoutSetPrototypePersistence

public void setLayoutSetPrototypePersistence(LayoutSetPrototypePersistence layoutSetPrototypePersistence)
Sets the layout set prototype persistence.

Parameters:
layoutSetPrototypePersistence - the layout set prototype 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

getPasswordPolicyLocalService

public PasswordPolicyLocalService getPasswordPolicyLocalService()
Returns the password policy local service.

Returns:
the password policy local service

setPasswordPolicyLocalService

public void setPasswordPolicyLocalService(PasswordPolicyLocalService passwordPolicyLocalService)
Sets the password policy local service.

Parameters:
passwordPolicyLocalService - the password policy local service

getPasswordPolicyPersistence

public PasswordPolicyPersistence getPasswordPolicyPersistence()
Returns the password policy persistence.

Returns:
the password policy persistence

setPasswordPolicyPersistence

public void setPasswordPolicyPersistence(PasswordPolicyPersistence passwordPolicyPersistence)
Sets the password policy persistence.

Parameters:
passwordPolicyPersistence - the password policy persistence

getPasswordPolicyFinder

public PasswordPolicyFinder getPasswordPolicyFinder()
Returns the password policy finder.

Returns:
the password policy finder

setPasswordPolicyFinder

public void setPasswordPolicyFinder(PasswordPolicyFinder passwordPolicyFinder)
Sets the password policy finder.

Parameters:
passwordPolicyFinder - the password policy finder

getPortalPreferencesLocalService

public PortalPreferencesLocalService getPortalPreferencesLocalService()
Returns the portal preferences local service.

Returns:
the portal preferences local service

setPortalPreferencesLocalService

public void setPortalPreferencesLocalService(PortalPreferencesLocalService portalPreferencesLocalService)
Sets the portal preferences local service.

Parameters:
portalPreferencesLocalService - the portal preferences local service

getPortalPreferencesPersistence

public PortalPreferencesPersistence getPortalPreferencesPersistence()
Returns the portal preferences persistence.

Returns:
the portal preferences persistence

setPortalPreferencesPersistence

public void setPortalPreferencesPersistence(PortalPreferencesPersistence portalPreferencesPersistence)
Sets the portal preferences persistence.

Parameters:
portalPreferencesPersistence - the portal preferences persistence

getPortletLocalService

public PortletLocalService getPortletLocalService()
Returns the portlet local service.

Returns:
the portlet local service

setPortletLocalService

public void setPortletLocalService(PortletLocalService portletLocalService)
Sets the portlet local service.

Parameters:
portletLocalService - the portlet local service

getPortletPersistence

public PortletPersistence getPortletPersistence()
Returns the portlet persistence.

Returns:
the portlet persistence

setPortletPersistence

public void setPortletPersistence(PortletPersistence portletPersistence)
Sets the portlet persistence.

Parameters:
portletPersistence - the portlet persistence

getResourceLocalService

public ResourceLocalService getResourceLocalService()
Returns the resource local service.

Returns:
the resource local service

setResourceLocalService

public void setResourceLocalService(ResourceLocalService resourceLocalService)
Sets the resource local service.

Parameters:
resourceLocalService - the resource local service

getResourcePermissionLocalService

public ResourcePermissionLocalService getResourcePermissionLocalService()
Returns the resource permission local service.

Returns:
the resource permission local service

setResourcePermissionLocalService

public void setResourcePermissionLocalService(ResourcePermissionLocalService resourcePermissionLocalService)
Sets the resource permission local service.

Parameters:
resourcePermissionLocalService - the resource permission local service

getResourcePermissionPersistence

public ResourcePermissionPersistence getResourcePermissionPersistence()
Returns the resource permission persistence.

Returns:
the resource permission persistence

setResourcePermissionPersistence

public void setResourcePermissionPersistence(ResourcePermissionPersistence resourcePermissionPersistence)
Sets the resource permission persistence.

Parameters:
resourcePermissionPersistence - the resource permission persistence

getResourcePermissionFinder

public ResourcePermissionFinder getResourcePermissionFinder()
Returns the resource permission finder.

Returns:
the resource permission finder

setResourcePermissionFinder

public void setResourcePermissionFinder(ResourcePermissionFinder resourcePermissionFinder)
Sets the resource permission finder.

Parameters:
resourcePermissionFinder - the resource permission finder

getRoleLocalService

public RoleLocalService getRoleLocalService()
Returns the role local service.

Returns:
the role local service

setRoleLocalService

public void setRoleLocalService(RoleLocalService roleLocalService)
Sets the role local service.

Parameters:
roleLocalService - the role local service

getRolePersistence

public RolePersistence getRolePersistence()
Returns the role persistence.

Returns:
the role persistence

setRolePersistence

public void setRolePersistence(RolePersistence rolePersistence)
Sets the role persistence.

Parameters:
rolePersistence - the role persistence

getRoleFinder

public RoleFinder getRoleFinder()
Returns the role finder.

Returns:
the role finder

setRoleFinder

public void setRoleFinder(RoleFinder roleFinder)
Sets the role finder.

Parameters:
roleFinder - the role finder

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

getVirtualHostLocalService

public VirtualHostLocalService getVirtualHostLocalService()
Returns the virtual host local service.

Returns:
the virtual host local service

setVirtualHostLocalService

public void setVirtualHostLocalService(VirtualHostLocalService virtualHostLocalService)
Sets the virtual host local service.

Parameters:
virtualHostLocalService - the virtual host local service

getVirtualHostPersistence

public VirtualHostPersistence getVirtualHostPersistence()
Returns the virtual host persistence.

Returns:
the virtual host persistence

setVirtualHostPersistence

public void setVirtualHostPersistence(VirtualHostPersistence virtualHostPersistence)
Sets the virtual host persistence.

Parameters:
virtualHostPersistence - the virtual host 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 CompanyLocalService
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