Package io.foodtechlab.common.mongo.port
Class AbstractMongoExternalLinkRepository<Entity extends com.rcore.domain.commons.entity.BaseEntity<?> & io.foodtechlab.common.domain.entities.ExternalProperty,Query extends FindByExternalLinkQuery,Document extends com.rcore.database.mongo.commons.document.BaseDocument & io.foodtechlab.common.domain.entities.ExternalProperty>
- java.lang.Object
-
- io.foodtechlab.common.mongo.port.AbstractMongoExternalLinkRepository<Entity,Query,Document>
-
- All Implemented Interfaces:
io.foodtechlab.common.domain.port.ExternalLinkRepository<Entity>
public abstract class AbstractMongoExternalLinkRepository<Entity extends com.rcore.domain.commons.entity.BaseEntity<?> & io.foodtechlab.common.domain.entities.ExternalProperty,Query extends FindByExternalLinkQuery,Document extends com.rcore.database.mongo.commons.document.BaseDocument & io.foodtechlab.common.domain.entities.ExternalProperty> extends Object implements io.foodtechlab.common.domain.port.ExternalLinkRepository<Entity>
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<Document>documentClassprotected com.rcore.commons.mapper.ExampleDataMapper<Entity,Document>mapperprotected org.springframework.data.mongodb.core.MongoTemplatemongoTemplate
-
Constructor Summary
Constructors Constructor Description AbstractMongoExternalLinkRepository(com.rcore.commons.mapper.ExampleDataMapper<Entity,Document> mapper, org.springframework.data.mongodb.core.MongoTemplate mongoTemplate)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Optional<Entity>findByExternalLink(String id, String type)protected abstract QuerygetQuery(String id, String type)
-
-
-
Field Detail
-
documentClass
protected final Class<Document extends com.rcore.database.mongo.commons.document.BaseDocument & io.foodtechlab.common.domain.entities.ExternalProperty> documentClass
-
mapper
protected final com.rcore.commons.mapper.ExampleDataMapper<Entity extends com.rcore.domain.commons.entity.BaseEntity<?> & io.foodtechlab.common.domain.entities.ExternalProperty,Document extends com.rcore.database.mongo.commons.document.BaseDocument & io.foodtechlab.common.domain.entities.ExternalProperty> mapper
-
mongoTemplate
protected final org.springframework.data.mongodb.core.MongoTemplate mongoTemplate
-
-
Method Detail
-
findByExternalLink
public Optional<Entity> findByExternalLink(String id, String type)
- Specified by:
findByExternalLinkin interfaceio.foodtechlab.common.domain.port.ExternalLinkRepository<Entity extends com.rcore.domain.commons.entity.BaseEntity<?> & io.foodtechlab.common.domain.entities.ExternalProperty>
-
-