Package org.springframework.data.mongodb.core.query

Examples of org.springframework.data.mongodb.core.query.Update


    this.mongoOperations = mongoOperations;
  }

  public void inc(ID id, String property, Number inc) {
    mongoOperations.updateFirst(getIdQuery(id),
        new Update().inc(property, inc), entityInformation.getJavaType());
  }
View Full Code Here


        new Update().inc(property, inc), entityInformation.getJavaType());
  }

  public void set(ID id, String property, Object value) {
    mongoOperations.updateFirst(getIdQuery(id),
        new Update().set(property, value), entityInformation.getJavaType());
  }
View Full Code Here

        new Update().set(property, value), entityInformation.getJavaType());
  }

  public void unset(ID id, String property) {
    mongoOperations.updateFirst(getIdQuery(id),
        new Update().unset(property), entityInformation.getJavaType());
  }
View Full Code Here

        new Update().unset(property), entityInformation.getJavaType());
  }

  public void push(ID id, String property, Object value) {
    mongoOperations.updateFirst(getIdQuery(id),
        new Update().push(property, value), entityInformation.getJavaType());
  }
View Full Code Here

        new Update().push(property, value), entityInformation.getJavaType());
  }

  public void pushAll(ID id, String property, Object[] values) {
    mongoOperations.updateFirst(getIdQuery(id),
        new Update().pushAll(property, values), entityInformation.getJavaType());
  }
View Full Code Here

        new Update().pushAll(property, values), entityInformation.getJavaType());
  }

  public void pull(ID id, String property, Object value) {
    mongoOperations.updateFirst(getIdQuery(id),
        new Update().pull(property, value), entityInformation.getJavaType());
  }
View Full Code Here

        new Update().pull(property, value), entityInformation.getJavaType());
  }

  public void pullAll(ID id, String property, Object[] values) {
    mongoOperations.updateFirst(getIdQuery(id),
        new Update().pullAll(property, values), entityInformation.getJavaType());
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.mongodb.core.query.Update

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.