blob: c0cb6b4b7dc67a538b01f8440e75b5a95911545a [file] [log] [blame]
/*
* Copyright (c) 2011, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/package org.eclipse.persistence.internal.jpa.querydef;
/**
* <p>
* <b>Purpose</b>: Represents an Expression in the Criteria API implementation heirarchy.
* <p>
* <b>Description</b>: Expressions are expression nodes that can not be joined from
* and may or not be the result of a Path expression. The SubQuery is a special type of expression that
* requires certain methods but can not extend ExpressionImpl. This interface provide a common API.
*
* @see jakarta.persistence.criteria Expression
*
* @author gyorke
* @since EclipseLink 1.2
*/
// Contributors:
// Gordon Yorke - Initial development
//
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////package org.eclipse.persistence.internal.jpa.querydef;
/////
// <p>
// <b>Purpose</b>: Represents an Expression in the Criteria API implementation heirarchy.
// <p>
// <b>Description</b>: Expressions are expression nodes that can not be joined from
// and may or not be the result of a Path expression. The SubQuery is a special type of expression that
// requires certain methods but can not extend ExpressionImpl. This interface provide a common API.
// <p>
//
// @see jakarta.persistence.criteria Expression
//
// @author gyorke
// @since EclipseLink 1.2
public interface InternalExpression{
boolean isPredicate();
boolean isCompoundExpression();
boolean isExpression();
boolean isLiteral();
boolean isParameter();
boolean isSubquery();
//conjunction or disjunction
boolean isJunction();
}