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, searchMethods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, create, remove, saveMethods 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:MorpheusDataServicePersists 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:
createin interfaceMorpheusDataService<ReferenceData,ReferenceDataSyncProjection> - Parameters:
referenceData- a collection ofMorpheusModelobjects 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:MorpheusDataServicePersists 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:
savein interfaceMorpheusDataService<ReferenceData,ReferenceDataSyncProjection> - Parameters:
referenceData- a collection of previously createdMorpheusModelobjects 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:MorpheusDataServiceRemoves 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:
removein interfaceMorpheusDataService<ReferenceData,ReferenceDataSyncProjection> - Parameters:
removeItems- a collection of previously createdMorpheusModelobjects 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.ListReferenceDataSyncProjectionby 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.ListReferenceDataSyncProjectionby 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.ListReferenceDataSyncProjectionby 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:MorpheusDataQueryServiceFetches a stream ofMorpheusModelobjects based on a collection of Identifiers (id). This is often used in conjunction with theMorpheusIdentityService.listIdentityProjections(DataQuery)and theSyncTaskfor 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:
listByIdin interfaceMorpheusDataQueryService<ReferenceData>- Parameters:
ids- a collection of Identifiers (ids) to fetch the objects by.- Returns:
- an Observable stream of
MorpheusModelobjects based on the ids passed in
-