@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface SyncDeviceLocalService extends BaseLocalService, PersistedModelLocalService
SyncDeviceLocalServiceUtil| Modifier and Type | Method and Description |
|---|---|
SyncDevice |
addSyncDevice(long userId,
java.lang.String type,
long buildNumber,
java.lang.String hostname,
int featureSet) |
SyncDevice |
addSyncDevice(SyncDevice syncDevice)
Adds the sync device to the database.
|
PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
SyncDevice |
createSyncDevice(long syncDeviceId)
Creates a new sync device with the primary key.
|
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
SyncDevice |
deleteSyncDevice(long syncDeviceId)
Deletes the sync device with the primary key from the database.
|
SyncDevice |
deleteSyncDevice(SyncDevice syncDevice)
Deletes the sync device from the database.
|
<T> T |
dslQuery(DSLQuery dslQuery) |
DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.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> java.util.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.
|
SyncDevice |
fetchSyncDevice(long syncDeviceId) |
SyncDevice |
fetchSyncDeviceByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the sync device with the matching UUID and company.
|
ActionableDynamicQuery |
getActionableDynamicQuery() |
ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext) |
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
SyncDevice |
getSyncDevice(long syncDeviceId)
Returns the sync device with the primary key.
|
SyncDevice |
getSyncDeviceByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the sync device with the matching UUID and company.
|
java.util.List<SyncDevice> |
getSyncDevices(int start,
int end)
Returns a range of all the sync devices.
|
java.util.List<SyncDevice> |
getSyncDevices(long userId,
int start,
int end,
OrderByComparator<SyncDevice> orderByComparator) |
int |
getSyncDevicesCount()
Returns the number of sync devices.
|
java.util.List<SyncDevice> |
search(long companyId,
java.lang.String keywords,
int start,
int end,
OrderByComparator<SyncDevice> orderByComparator) |
void |
updateStatus(long syncDeviceId,
int status) |
SyncDevice |
updateSyncDevice(long syncDeviceId,
java.lang.String type,
long buildNumber,
int featureSet,
java.lang.String hostname,
int status) |
SyncDevice |
updateSyncDevice(SyncDevice syncDevice)
Updates the sync device in the database or adds it if it does not yet exist.
|
getBasePersistenceSyncDevice addSyncDevice(long userId, java.lang.String type, long buildNumber, java.lang.String hostname, int featureSet) throws PortalException
PortalException@Indexable(type=REINDEX) SyncDevice addSyncDevice(SyncDevice syncDevice)
Important: Inspect SyncDeviceLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
syncDevice - the sync devicePersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
createPersistedModel in interface PersistedModelLocalServicePortalException@Transactional(enabled=false) SyncDevice createSyncDevice(long syncDeviceId)
syncDeviceId - the primary key for the new sync devicePersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel in interface PersistedModelLocalServicePortalException@Indexable(type=DELETE) SyncDevice deleteSyncDevice(long syncDeviceId) throws PortalException
Important: Inspect SyncDeviceLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
syncDeviceId - the primary key of the sync devicePortalException - if a sync device with the primary key could not be found@Indexable(type=DELETE) SyncDevice deleteSyncDevice(SyncDevice syncDevice)
Important: Inspect SyncDeviceLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
syncDevice - the sync device@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(DSLQuery dslQuery)
@Transactional(propagation=SUPPORTS, readOnly=true) DynamicQuery dynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.sync.model.impl.SyncDeviceModelImpl.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.sync.model.impl.SyncDeviceModelImpl.
dynamicQuery - 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)@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery - the dynamic queryprojection - the projection to apply to the query@Transactional(propagation=SUPPORTS, readOnly=true) SyncDevice fetchSyncDevice(long syncDeviceId)
@Transactional(propagation=SUPPORTS, readOnly=true) SyncDevice fetchSyncDeviceByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid - the sync device's UUIDcompanyId - the primary key of the companynull if a matching sync device could not be found@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
@Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
java.lang.String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
getPersistedModel in interface PersistedModelLocalServicePortalException@Transactional(propagation=SUPPORTS, readOnly=true) SyncDevice getSyncDevice(long syncDeviceId) throws PortalException
syncDeviceId - the primary key of the sync devicePortalException - if a sync device with the primary key could not be found@Transactional(propagation=SUPPORTS, readOnly=true) SyncDevice getSyncDeviceByUuidAndCompanyId(java.lang.String uuid, long companyId) throws PortalException
uuid - the sync device's UUIDcompanyId - the primary key of the companyPortalException - if a matching sync device could not be found@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<SyncDevice> getSyncDevices(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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.sync.model.impl.SyncDeviceModelImpl.
start - the lower bound of the range of sync devicesend - the upper bound of the range of sync devices (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<SyncDevice> getSyncDevices(long userId, int start, int end, OrderByComparator<SyncDevice> orderByComparator) throws PortalException
PortalException@Transactional(propagation=SUPPORTS, readOnly=true) int getSyncDevicesCount()
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<SyncDevice> search(long companyId, java.lang.String keywords, int start, int end, OrderByComparator<SyncDevice> orderByComparator)
void updateStatus(long syncDeviceId,
int status)
throws PortalException
PortalExceptionSyncDevice updateSyncDevice(long syncDeviceId, java.lang.String type, long buildNumber, int featureSet, java.lang.String hostname, int status) throws PortalException
PortalException@Indexable(type=REINDEX) SyncDevice updateSyncDevice(SyncDevice syncDevice)
Important: Inspect SyncDeviceLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
syncDevice - the sync device