Skip Headers

# Using Java

Previous

Next

Using Java, configure a descriptor with additional join expressions by creating an amendment method (see "Configuring Amendment Methods"), and then using the `DescriptorQueryManager` methods `setAdditionalJoinExpression` or `setMultipleTableJoinExpression`, as Example: Registering a Query That Includes a Join Expression shows.

Registering a Query That Includes a Join Expression

In Example: Registering a Query That Includes a Join Expression, the `join` expression filters invalid instances of `employee` from the query.

    public static void addToDescriptor(Descriptor descriptor) {
        ExpressionBuilder builder = new ExpressionBuilder();
        descriptor.getQueryManager().setAdditionalJoinExpression(
            (builder.getField("EMP.STATUS").notEqual("DELETED")).and(
                 builder.getField("EMP.STATUS").notEqual("HISTORICAL"))
        );
    }