Examples of RangeSearchAttribute


Examples of org.structr.core.graph.search.RangeSearchAttribute

  }

  private Range<Long> getRangeFromQuery(final Query query) throws FrameworkException {

    final SearchAttributeGroup rootGroup = query.getRootAttributeGroup();
    final RangeSearchAttribute range     = findRange(rootGroup);

    if (range != null) {

      final Object start = range.getRangeStart();
      final Object end   = range.getRangeEnd();

      if (start instanceof Date && end instanceof Date) {
        return new Range<>(((Date)start).getTime(), ((Date)end).getTime());
      }
    }
View Full Code Here

Examples of org.structr.core.graph.search.RangeSearchAttribute

        return (RangeSearchAttribute)attr;
      }

      if (attr instanceof SearchAttributeGroup) {

        final RangeSearchAttribute result = findRange((SearchAttributeGroup)attr);
        if (result != null) {

          return result;
        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.