Liferay 7.0-ce-b4

com.liferay.portlet.expando.service.base
Class ExpandoRowLocalServiceBaseImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.expando.service.base.ExpandoRowLocalServiceBaseImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, ExpandoRowLocalService
Direct Known Subclasses:
ExpandoRowLocalServiceImpl

@ProviderType
public abstract class ExpandoRowLocalServiceBaseImpl
extends BaseLocalServiceImpl
implements ExpandoRowLocalService, IdentifiableOSGiService

Provides the base implementation for the expando row 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 ExpandoRowLocalServiceImpl.

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

Field Summary
protected  ClassNameLocalService classNameLocalService
           
protected  ClassNamePersistence classNamePersistence
           
protected  CounterLocalService counterLocalService
           
protected  ExpandoColumnLocalService expandoColumnLocalService
           
protected  ExpandoColumnPersistence expandoColumnPersistence
           
protected  ExpandoRowLocalService expandoRowLocalService
           
protected  ExpandoRowPersistence expandoRowPersistence
           
protected  ExpandoTableLocalService expandoTableLocalService
           
protected  ExpandoTablePersistence expandoTablePersistence
           
protected  ExpandoValueLocalService expandoValueLocalService
           
protected  ExpandoValuePersistence expandoValuePersistence
           
protected  PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
           
protected  ResourceLocalService resourceLocalService
           
protected  UserFinder userFinder
           
protected  UserLocalService userLocalService
           
protected  UserPersistence userPersistence
           
 
Constructor Summary
ExpandoRowLocalServiceBaseImpl()
           
 
Method Summary
 ExpandoRow addExpandoRow(ExpandoRow expandoRow)
          Adds the expando row to the database.
 void afterPropertiesSet()
           
 ExpandoRow createExpandoRow(long rowId)
          Creates a new expando row with the primary key.
 ExpandoRow deleteExpandoRow(ExpandoRow expandoRow)
          Deletes the expando row from the database.
 ExpandoRow deleteExpandoRow(long rowId)
          Deletes the expando row 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.
 ExpandoRow fetchExpandoRow(long rowId)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 ClassNameLocalService getClassNameLocalService()
          Returns the class name local service.
 ClassNamePersistence getClassNamePersistence()
          Returns the class name persistence.
 CounterLocalService getCounterLocalService()
          Returns the counter local service.
 ExpandoColumnLocalService getExpandoColumnLocalService()
          Returns the expando column local service.
 ExpandoColumnPersistence getExpandoColumnPersistence()
          Returns the expando column persistence.
 ExpandoRow getExpandoRow(long rowId)
          Returns the expando row with the primary key.
 ExpandoRowLocalService getExpandoRowLocalService()
          Returns the expando row local service.
 ExpandoRowPersistence getExpandoRowPersistence()
          Returns the expando row persistence.
 List<ExpandoRow> getExpandoRows(int start, int end)
          Returns a range of all the expando rows.
 int getExpandoRowsCount()
          Returns the number of expando rows.
 ExpandoTableLocalService getExpandoTableLocalService()
          Returns the expando table local service.
 ExpandoTablePersistence getExpandoTablePersistence()
          Returns the expando table persistence.
 ExpandoValueLocalService getExpandoValueLocalService()
          Returns the expando value local service.
 ExpandoValuePersistence getExpandoValuePersistence()
          Returns the expando value persistence.
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
protected  Class<?> getModelClass()
           
protected  String getModelClassName()
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 ResourceLocalService getResourceLocalService()
          Returns the resource local service.
 UserFinder getUserFinder()
          Returns the user finder.
 UserLocalService getUserLocalService()
          Returns the user local service.
 UserPersistence getUserPersistence()
          Returns the user persistence.
protected  void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)
           
protected  void runSQL(String sql)
          Performs a SQL query.
 void setClassNameLocalService(ClassNameLocalService classNameLocalService)
          Sets the class name local service.
 void setClassNamePersistence(ClassNamePersistence classNamePersistence)
          Sets the class name persistence.
 void setCounterLocalService(CounterLocalService counterLocalService)
          Sets the counter local service.
 void setExpandoColumnLocalService(ExpandoColumnLocalService expandoColumnLocalService)
          Sets the expando column local service.
 void setExpandoColumnPersistence(ExpandoColumnPersistence expandoColumnPersistence)
          Sets the expando column persistence.
 void setExpandoRowLocalService(ExpandoRowLocalService expandoRowLocalService)
          Sets the expando row local service.
 void setExpandoRowPersistence(ExpandoRowPersistence expandoRowPersistence)
          Sets the expando row persistence.
 void setExpandoTableLocalService(ExpandoTableLocalService expandoTableLocalService)
          Sets the expando table local service.
 void setExpandoTablePersistence(ExpandoTablePersistence expandoTablePersistence)
          Sets the expando table persistence.
 void setExpandoValueLocalService(ExpandoValueLocalService expandoValueLocalService)
          Sets the expando value local service.
 void setExpandoValuePersistence(ExpandoValuePersistence expandoValuePersistence)
          Sets the expando value persistence.
 void setResourceLocalService(ResourceLocalService resourceLocalService)
          Sets the resource local service.
 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.
 ExpandoRow updateExpandoRow(ExpandoRow expandoRow)
          Updates the expando row 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.portlet.expando.service.ExpandoRowLocalService
addRow, deleteRow, deleteRow, deleteRow, deleteRow, deleteRow, deleteRows, fetchRow, getDefaultTableRows, getDefaultTableRows, getDefaultTableRowsCount, getDefaultTableRowsCount, getRow, getRow, getRow, getRow, getRows, getRows, getRows, getRowsCount, getRowsCount, getRowsCount
 

Field Detail

expandoColumnLocalService

@BeanReference(type=ExpandoColumnLocalService.class)
protected ExpandoColumnLocalService expandoColumnLocalService

expandoColumnPersistence

@BeanReference(type=ExpandoColumnPersistence.class)
protected ExpandoColumnPersistence expandoColumnPersistence

expandoRowLocalService

@BeanReference(type=ExpandoRowLocalService.class)
protected ExpandoRowLocalService expandoRowLocalService

expandoRowPersistence

@BeanReference(type=ExpandoRowPersistence.class)
protected ExpandoRowPersistence expandoRowPersistence

expandoTableLocalService

@BeanReference(type=ExpandoTableLocalService.class)
protected ExpandoTableLocalService expandoTableLocalService

expandoTablePersistence

@BeanReference(type=ExpandoTablePersistence.class)
protected ExpandoTablePersistence expandoTablePersistence

expandoValueLocalService

@BeanReference(type=ExpandoValueLocalService.class)
protected ExpandoValueLocalService expandoValueLocalService

expandoValuePersistence

@BeanReference(type=ExpandoValuePersistence.class)
protected ExpandoValuePersistence expandoValuePersistence

counterLocalService

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

classNameLocalService

@BeanReference(type=ClassNameLocalService.class)
protected ClassNameLocalService classNameLocalService

classNamePersistence

@BeanReference(type=ClassNamePersistence.class)
protected ClassNamePersistence classNamePersistence

resourceLocalService

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

userLocalService

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

userPersistence

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

userFinder

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

persistedModelLocalServiceRegistry

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

ExpandoRowLocalServiceBaseImpl

public ExpandoRowLocalServiceBaseImpl()
Method Detail

addExpandoRow

@Indexable(type=REINDEX)
public ExpandoRow addExpandoRow(ExpandoRow expandoRow)
Adds the expando row to the database. Also notifies the appropriate model listeners.

Specified by:
addExpandoRow in interface ExpandoRowLocalService
Parameters:
expandoRow - the expando row
Returns:
the expando row that was added

createExpandoRow

public ExpandoRow createExpandoRow(long rowId)
Creates a new expando row with the primary key. Does not add the expando row to the database.

Specified by:
createExpandoRow in interface ExpandoRowLocalService
Parameters:
rowId - the primary key for the new expando row
Returns:
the new expando row

deleteExpandoRow

@Indexable(type=DELETE)
public ExpandoRow deleteExpandoRow(long rowId)
                            throws PortalException
Deletes the expando row with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteExpandoRow in interface ExpandoRowLocalService
Parameters:
rowId - the primary key of the expando row
Returns:
the expando row that was removed
Throws:
PortalException - if a expando row with the primary key could not be found

deleteExpandoRow

@Indexable(type=DELETE)
public ExpandoRow deleteExpandoRow(ExpandoRow expandoRow)
Deletes the expando row from the database. Also notifies the appropriate model listeners.

Specified by:
deleteExpandoRow in interface ExpandoRowLocalService
Parameters:
expandoRow - the expando row
Returns:
the expando row that was removed

dynamicQuery

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

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

fetchExpandoRow

public ExpandoRow fetchExpandoRow(long rowId)
Specified by:
fetchExpandoRow in interface ExpandoRowLocalService

getExpandoRow

public ExpandoRow getExpandoRow(long rowId)
                         throws PortalException
Returns the expando row with the primary key.

Specified by:
getExpandoRow in interface ExpandoRowLocalService
Parameters:
rowId - the primary key of the expando row
Returns:
the expando row
Throws:
PortalException - if a expando row with the primary key could not be found

getActionableDynamicQuery

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

getIndexableActionableDynamicQuery

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

initActionableDynamicQuery

protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)

deletePersistedModel

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

getPersistedModel

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

getExpandoRows

public List<ExpandoRow> getExpandoRows(int start,
                                       int end)
Returns a range of all the expando 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 ExpandoRowModelImpl. 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:
getExpandoRows in interface ExpandoRowLocalService
Parameters:
start - the lower bound of the range of expando rows
end - the upper bound of the range of expando rows (not inclusive)
Returns:
the range of expando rows

getExpandoRowsCount

public int getExpandoRowsCount()
Returns the number of expando rows.

Specified by:
getExpandoRowsCount in interface ExpandoRowLocalService
Returns:
the number of expando rows

updateExpandoRow

@Indexable(type=REINDEX)
public ExpandoRow updateExpandoRow(ExpandoRow expandoRow)
Updates the expando row in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateExpandoRow in interface ExpandoRowLocalService
Parameters:
expandoRow - the expando row
Returns:
the expando row that was updated

getExpandoColumnLocalService

public ExpandoColumnLocalService getExpandoColumnLocalService()
Returns the expando column local service.

Returns:
the expando column local service

setExpandoColumnLocalService

public void setExpandoColumnLocalService(ExpandoColumnLocalService expandoColumnLocalService)
Sets the expando column local service.

Parameters:
expandoColumnLocalService - the expando column local service

getExpandoColumnPersistence

public ExpandoColumnPersistence getExpandoColumnPersistence()
Returns the expando column persistence.

Returns:
the expando column persistence

setExpandoColumnPersistence

public void setExpandoColumnPersistence(ExpandoColumnPersistence expandoColumnPersistence)
Sets the expando column persistence.

Parameters:
expandoColumnPersistence - the expando column persistence

getExpandoRowLocalService

public ExpandoRowLocalService getExpandoRowLocalService()
Returns the expando row local service.

Returns:
the expando row local service

setExpandoRowLocalService

public void setExpandoRowLocalService(ExpandoRowLocalService expandoRowLocalService)
Sets the expando row local service.

Parameters:
expandoRowLocalService - the expando row local service

getExpandoRowPersistence

public ExpandoRowPersistence getExpandoRowPersistence()
Returns the expando row persistence.

Returns:
the expando row persistence

setExpandoRowPersistence

public void setExpandoRowPersistence(ExpandoRowPersistence expandoRowPersistence)
Sets the expando row persistence.

Parameters:
expandoRowPersistence - the expando row persistence

getExpandoTableLocalService

public ExpandoTableLocalService getExpandoTableLocalService()
Returns the expando table local service.

Returns:
the expando table local service

setExpandoTableLocalService

public void setExpandoTableLocalService(ExpandoTableLocalService expandoTableLocalService)
Sets the expando table local service.

Parameters:
expandoTableLocalService - the expando table local service

getExpandoTablePersistence

public ExpandoTablePersistence getExpandoTablePersistence()
Returns the expando table persistence.

Returns:
the expando table persistence

setExpandoTablePersistence

public void setExpandoTablePersistence(ExpandoTablePersistence expandoTablePersistence)
Sets the expando table persistence.

Parameters:
expandoTablePersistence - the expando table persistence

getExpandoValueLocalService

public ExpandoValueLocalService getExpandoValueLocalService()
Returns the expando value local service.

Returns:
the expando value local service

setExpandoValueLocalService

public void setExpandoValueLocalService(ExpandoValueLocalService expandoValueLocalService)
Sets the expando value local service.

Parameters:
expandoValueLocalService - the expando value local service

getExpandoValuePersistence

public ExpandoValuePersistence getExpandoValuePersistence()
Returns the expando value persistence.

Returns:
the expando value persistence

setExpandoValuePersistence

public void setExpandoValuePersistence(ExpandoValuePersistence expandoValuePersistence)
Sets the expando value persistence.

Parameters:
expandoValuePersistence - the expando value 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

getClassNameLocalService

public ClassNameLocalService getClassNameLocalService()
Returns the class name local service.

Returns:
the class name local service

setClassNameLocalService

public void setClassNameLocalService(ClassNameLocalService classNameLocalService)
Sets the class name local service.

Parameters:
classNameLocalService - the class name local service

getClassNamePersistence

public ClassNamePersistence getClassNamePersistence()
Returns the class name persistence.

Returns:
the class name persistence

setClassNamePersistence

public void setClassNamePersistence(ClassNamePersistence classNamePersistence)
Sets the class name persistence.

Parameters:
classNamePersistence - the class name 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

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

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 ExpandoRowLocalService
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