Package com.morpheusdata.core
Interface MorpheusReferenceDataService
- All Superinterfaces:
MorpheusDataQueryService<ReferenceData>
,MorpheusDataService<ReferenceData,
,ReferenceDataSyncProjection> MorpheusIdentityService<ReferenceDataSyncProjection>
public interface MorpheusReferenceDataService
extends MorpheusDataService<ReferenceData,ReferenceDataSyncProjection>, MorpheusIdentityService<ReferenceDataSyncProjection>
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>
create
(List<ReferenceData> referenceData) Deprecated.io.reactivex.rxjava3.core.Single<ReferenceData>
findByExternalId
(String externalId) Deprecated.io.reactivex.rxjava3.core.Observable<ReferenceDataSyncProjection>
listByAccountIdAndCategories
(Long accountId, List<String> categories) Deprecated.io.reactivex.rxjava3.core.Observable<ReferenceDataSyncProjection>
listByAccountIdAndCategory
(Long accountId, String category) Deprecated.io.reactivex.rxjava3.core.Observable<ReferenceDataSyncProjection>
listByAccountIdAndCategoryMatch
(Long accountId, String categorySubString) Deprecated.io.reactivex.rxjava3.core.Observable<ReferenceDataSyncProjection>
listByAccountIdAndRefTypeAndRefId
(Long AccountId, String refType, String refId) Deprecated.io.reactivex.rxjava3.core.Observable<ReferenceDataSyncProjection>
listByCategory
(String category) Deprecated.io.reactivex.rxjava3.core.Observable<ReferenceData>
listByCategoryAndKeyValue
(String category, String value) Deprecated.io.reactivex.rxjava3.core.Observable<ReferenceData>
Deprecated.io.reactivex.rxjava3.core.Observable<ReferenceDataSyncProjection>
listByRefTypeAndRefId
(String refType, String refId) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>
remove
(List<ReferenceDataSyncProjection> removeItems) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>
save
(List<ReferenceData> referenceData) Deprecated.Methods inherited from interface com.morpheusdata.core.MorpheusDataQueryService
count, find, get, list, list, listOptions, listOptions, search
Methods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, create, remove, save
Methods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
create
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> create(List<ReferenceData> referenceData) Deprecated.Description copied from interface:MorpheusDataService
Persists a collection of new model objects in a batch to the Morpheus database. This is very useful for bulk sync operations. For optimal efficiency 50-100 objects at a time is best. More than this will throw a warning.Note: this is a reactive method and will not perform any operation until subscribed or blockingGet() is called on it.
- Specified by:
create
in interfaceMorpheusDataService<ReferenceData,
ReferenceDataSyncProjection> - Parameters:
referenceData
- a collection ofMorpheusModel
objects we want to persist into the database. These are supposed to be non previously saved objects.- Returns:
- a Boolean flag that is only true if all objects successfully saved
- See Also:
-
save
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> save(List<ReferenceData> referenceData) Deprecated.Description copied from interface:MorpheusDataService
Persists a collection of previously created model objects in a batch to the Morpheus database. This is very useful for bulk sync operations. For optimal efficiency 50-100 objects at a time is best. More than this will throw a warning.Note: this is a reactive method and will not perform any operation until subscribed or blockingGet() is called on it.
- Specified by:
save
in interfaceMorpheusDataService<ReferenceData,
ReferenceDataSyncProjection> - Parameters:
referenceData
- a collection of previously createdMorpheusModel
objects we want to persist into the database.- Returns:
- a Boolean flag stating the full success or not of the save operation
- See Also:
-
remove
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> remove(List<ReferenceDataSyncProjection> removeItems) Deprecated.Description copied from interface:MorpheusDataService
Removes a collection of previously created model objects in a batch to the Morpheus database. This is very useful for bulk sync operations. For optimal efficiency 50-100 objects at a time is best. More than this will throw a warning.Note: this is a reactive method and will not perform any operation until subscribed or blockingGet() is called on it.
- Specified by:
remove
in interfaceMorpheusDataService<ReferenceData,
ReferenceDataSyncProjection> - Parameters:
removeItems
- a collection of previously createdMorpheusModel
objects we want to remove from the database.- Returns:
- a Boolean flag containing if it was fully successful or not.
- See Also:
-
listByAccountIdAndCategory
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Observable<ReferenceDataSyncProjection> listByAccountIdAndCategory(Long accountId, String category) Deprecated.ListReferenceDataSyncProjection
by an Account ID and a category.- Parameters:
accountId
- the ID of the accountcategory
- a category- Returns:
- the matched ReferenceData as a
ReferenceDataSyncProjection
-
listByAccountIdAndCategoryMatch
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Observable<ReferenceDataSyncProjection> listByAccountIdAndCategoryMatch(Long accountId, String categorySubString) Deprecated.ListReferenceDataSyncProjection
by an Account ID and a partial category.- Parameters:
accountId
- the ID of the accountcategorySubString
- a list of categories- Returns:
- the matched ReferenceData as a
ReferenceDataSyncProjection
-
listByAccountIdAndCategories
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Observable<ReferenceDataSyncProjection> listByAccountIdAndCategories(Long accountId, List<String> categories) Deprecated.ListReferenceDataSyncProjection
by an Account ID and multiple categories.- Parameters:
accountId
- the ID of the accountcategories
- a partial category to match on.- Returns:
- the matched ReferenceData as a
ReferenceDataSyncProjection
-
listByCategory
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Observable<ReferenceDataSyncProjection> listByCategory(String category) Deprecated. -
listByAccountIdAndRefTypeAndRefId
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Observable<ReferenceDataSyncProjection> listByAccountIdAndRefTypeAndRefId(Long AccountId, String refType, String refId) Deprecated. -
listByRefTypeAndRefId
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Observable<ReferenceDataSyncProjection> listByRefTypeAndRefId(String refType, String refId) Deprecated. -
listByCategoryAndKeyValue
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Observable<ReferenceData> listByCategoryAndKeyValue(String category, String value) Deprecated. -
findByExternalId
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<ReferenceData> findByExternalId(String externalId) Deprecated. -
listById
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Observable<ReferenceData> listById(List<Long> ids) Deprecated.Description copied from interface:MorpheusDataQueryService
Fetches a stream ofMorpheusModel
objects based on a collection of Identifiers (id). This is often used in conjunction with theMorpheusIdentityService.listIdentityProjections(DataQuery)
and theSyncTask
for efficiently only fetching batches of objects we want to perform update operations on.Note: This is a reactive method and will not perform any operation until subscribed or blockingGet() is called on it.
Note: This method does not factor in any sort of access/security control and should not be used in areas where this is required.
- Specified by:
listById
in interfaceMorpheusDataQueryService<ReferenceData>
- Parameters:
ids
- a collection of Identifiers (ids) to fetch the objects by.- Returns:
- an Observable stream of
MorpheusModel
objects based on the ids passed in
-