public QCompanyGroup(PathMetadata metadata) { this(metadata, metadata.isRoot() ? INITS : PathInits.DEFAULT); }
public QCatType(PathMetadata metadata) { this(metadata, metadata.isRoot() ? INITS : PathInits.DEFAULT); }
public QAImpl(PathMetadata metadata) { this(metadata, metadata.isRoot() ? INITS : PathInits.DEFAULT); }
public QCat(PathMetadata metadata) { this(metadata, metadata.isRoot() ? INITS : PathInits.DEFAULT); }
public QCompany(PathMetadata metadata) { this(metadata, metadata.isRoot() ? INITS : PathInits.DEFAULT); }
public QCompanyGroupType(PathMetadata metadata) { this(metadata, metadata.isRoot() ? INITS : PathInits.DEFAULT); }
public QCat(PathMetadata metadata) { this(metadata, metadata.isRoot() ? INITS : PathInits.DEFAULT); }
public QTCompanyGroup(PathMetadata metadata) { this(metadata, metadata.isRoot() ? INITS : PathInits.DEFAULT); }
public QCompanyGroup(PathMetadata metadata) { this(metadata, metadata.isRoot() ? INITS : PathInits.DEFAULT); }
public boolean isRoot() { return parent == null || (pathType == PathType.DELEGATE && parent.getMetadata().isRoot()); }
public QCompany(PathMetadata metadata) { this(metadata, metadata.isRoot() ? INITS : PathInits.DEFAULT); }
public QCompanyType(PathMetadata metadata) { this(metadata, metadata.isRoot() ? INITS : PathInits.DEFAULT); }
public QABase(PathMetadata metadata) { this(metadata, metadata.isRoot() ? INITS : PathInits.DEFAULT); }
public QTCompany(PathMetadata metadata) { this(metadata, metadata.isRoot() ? INITS : PathInits.DEFAULT); }
public QTCat(PathMetadata metadata) { this(metadata, metadata.isRoot() ? INITS : PathInits.DEFAULT); }
@Override public void addJoin(JoinType joinType, Expression<?> expr) { addLastJoin(); if (!exprInJoins.contains(expr)) { if (expr instanceof Path && ((Path<?>) expr).getMetadata().isRoot()) { exprInJoins = add(exprInJoins, expr); } else { validate(expr); } this.joinType = joinType; this.joinTarget = expr; } else if (validate) { throw new IllegalStateException(expr + " is already used"); } }
private Set<Expression<?>> visitJoins(Iterable<JoinExpression> joins, Set<Expression<?>> known) { for (JoinExpression j : joins) { final Expression<?> expr = j.getTarget(); if (expr instanceof Path && ((Path) expr).getMetadata().isRoot()) { known = add(known, expr); } else { known = expr.accept(this, known); } if (j.getCondition() != null) { known = j.getCondition().accept(this, known); } } return known; }
public Expression<?> visit(Path<?> expr, @Nullable Void context) { if (expr.getMetadata().isRoot()) { return ExpressionUtils.path(expr.getType(), expr.getMetadata().getName() + "_"); } else { return super.visit(expr, context); } } };
@Test @Ignore public void as_class() { MyBeanPath otherPath = beanPath.as(MyBeanPath.class); assertEquals(beanPath, otherPath); assertTrue(otherPath.getMetadata().isRoot()); }