• MonoDB 之Template使用


    1. MongoTemplate:(主要是集合和文档的增删改查)
      • 方法:     
    getCollectionNames
    getCollection
    collectionExists
    collectionExists
    dropCollection
    dropCollection
    indexOps
    indexOps
    scriptOps
    bulkOps
    bulkOps
    bulkOps
    findAll
    findAll
    group
    group
    aggregate
    aggregate
    aggregate
    aggregate
    aggregateStream
    aggregateStream
    aggregateStream
    aggregateStream
    mapReduce
    mapReduce
    mapReduce
    mapReduce
    geoNear
    geoNear
    findOne
    findOne
    exists
    exists
    exists
    find
    find
    findById
    findById
    findDistinct
    findDistinct
    findDistinct
    findDistinct
    findAndModify
    findAndModify
    findAndModify
    findAndModify
    findAndReplace
    findAndReplace
    findAndReplace
    findAndReplace
    findAndReplace
    findAndReplace
    findAndReplace
    findAndRemove
    findAndRemove
    count
    count
    count
    insert
    insert
    insert
    insert
    insertAll
    save
    save
    upsert
    upsert
    upsert
    updateFirst
    updateFirst
    updateFirst
    updateMulti
    updateMulti
    updateMulti
    remove
    remove
    remove
    remove
    remove
    findAllAndRemove
    findAllAndRemove
    findAllAndRemove
    getConverter
    1. Query:(分页和高级查询条件)
      • 方法:
    Query
    Query
    Query
    query
    addCriteria
    fields
    skip
    limit
    withHint
    withHint
    with
    with
    getRestrictedTypes
    restrict
    getQueryObject
    getFieldsObject
    getSortObject
    isSorted
    getSkip
    getLimit
    getHint
    maxTimeMsec
    maxTime
    maxTime
    maxScan
    comment
    useSnapshot
    cursorBatchSize
    noCursorTimeout
    exhaust
    slaveOk
    partialResults
    getMeta
    setMeta
    collation
    getCollation
    getCriteria
    of
    toString
    equals
    querySettingsEquals
    hashCode
    isRestrictedTypeKey
    RESTRICTED_TYPES_KEY
    restrictedTypes
    criteria
    fieldSpec
    sort
    skip
    limit
    hint
    meta
    collation
    1. Criteria:
      • 方法:

          

    Criteria
    Criteria
    Criteria
    where
    byExample
    byExample
    matchingDocumentStructure
    and
    is
    lastOperatorWasNot
    ne
    lt
    lte
    gt
    gte
    in
    in
    nin
    nin
    mod
    all
    all
    size
    exists
    type
    type
    not
    not
    regex
    regex
    regex
    regex
    toPattern
    withinSphere
    within
    near
    nearSphere
    intersects
    maxDistance
    minDistance
    elemMatch
    alike
    andDocumentStructureMatches
    bits
    orOperator
    norOperator
    andOperator
    registerCriteriaChainElement
    getKey
    getCriteriaObject
    getSingleCriteriaObject
    createCriteriaList
    setValue
    createNearCriteriaForCommand
    equals
    simpleCriteriaEquals
    isEqual
    hashCode
    requiresGeoJsonFormat
    regexFlags
    regexFlag
    NOT_SET
    FLAG_LOOKUP
    key
    criteriaChain
    criteria
    isValue
  • 相关阅读:
    delete 用法总结
    js数组去重的常用方法总结
    学习中 常用到的string内置对象方法的总结
    Array 对象常用的方法总结
    javascript中运算符有哪些? 他们的优先级 呢?
    那些年前端经典面试题
    HHVM 3.0 发布,执行 PHP 的虚拟机
    【问底】徐汉彬:PHP7和HHVM的性能之争 (真是学到了很多)
    mysql 简单sql语句
    【问底】王帅:深入PHP内核(一)——弱类型变量原理探究
  • 原文地址:https://www.cnblogs.com/dai-tao/p/13127096.html
Copyright © 2020-2023  润新知