All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nbcp.myoql.db.mongo.component.MongoAggregateBeginMatch.kt Maven / Gradle / Ivy

The newest version!
package nbcp.myoql.db.mongo.component

import nbcp.myoql.db.mongo.MongoAggregateClip
import org.springframework.data.mongodb.core.query.Criteria


class MongoAggregateBeginMatch, E : Any>(var aggregate: MongoAggregateClip) {
    private var wheres = mutableListOf()
    fun where(where: (M) -> Criteria): MongoAggregateBeginMatch {
        wheres.add(where(this.aggregate.moerEntity))
        return this;
    }

    fun endMatch(): MongoAggregateClip {
        return this.aggregate.wheres(*this.wheres.toTypedArray())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy