Exemplo n.º 1
0
  private Path(final String pattern) {
    Assert.notNull(pattern, "Path must not be null.");
    this.expression = new ParameterizedPatternImpl("[^/]+", pattern);

    for (PatternParameter parameter : this.expression.getParameterMap().values()) {
      where(parameter.getName()).bindsTo(Evaluation.property(parameter.getName()));
    }
  }
Exemplo n.º 2
0
 @SuppressWarnings("unchecked")
 protected <T extends PersistentObject<?>> T reload(final T entity) {
   Assert.notNull(entity.getId(), "Cannot reload @Entity with null ID [" + entity + "]");
   return (T) findById(entity.getClass(), entity.getId());
 }
Exemplo n.º 3
0
 private Scheme(final String pattern) {
   Assert.notNull(pattern, "Scheme must not be null.");
   this.expression = new RegexParameterizedPatternParser(pattern);
 }