Package org.springframework.data.repository.query.parser.Part

Examples of org.springframework.data.repository.query.parser.Part.Type


   * @return
   */
  private Criteria from(Part part, MongoPersistentProperty property, Criteria criteria,
      PotentiallyConvertingIterator parameters) {

    Type type = part.getType();

    switch (type) {
      case AFTER:
      case GREATER_THAN:
        return criteria.gt(parameters.nextConverted(property));
View Full Code Here


    return new Object[] { next };
  }

  private String toLikeRegex(String source, Part part) {

    Type type = part.getType();

    switch (type) {
      case STARTING_WITH:
        source = "^" + source;
        break;
View Full Code Here

     * (non-Javadoc)
     * @see org.springframework.data.gemfire.repository.query.Predicate#toString(java.lang.String)
     */
    @Override
    public String toString(String alias) {
      Type type = part.getType();

      return String.format("%s.%s %s", alias == null ? QueryBuilder.DEFAULT_ALIAS : alias,
        part.getProperty().toDotPath(), toClause(type));
    }
View Full Code Here

    return select;
  }

  private Clause from(Part part, CassandraPersistentProperty property, Clause criteria, Iterator<Object> parameters) {

    Type type = part.getType();

    switch (type) {
    // TODO
    // case AFTER:
    // case GREATER_THAN:
View Full Code Here

TOP

Related Classes of org.springframework.data.repository.query.parser.Part.Type

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.