All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.persistence.jpa.jpql.model.IAbstractConditionalExpressionStateObjectBuilder Maven / Gradle / Ivy

There is a newer version: 5.0.0-B07
Show newest version
/*******************************************************************************
 * Copyright (c) 2011, 2013 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 v1.0 and Eclipse Distribution License v. 1.0
 * which accompanies this distribution.
 * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
 * and the Eclipse Distribution License is available at
 * http://www.eclipse.org/org/documents/edl-v10.php.
 *
 * Contributors:
 *     Oracle - initial API and implementation
 *
 ******************************************************************************/
package org.eclipse.persistence.jpa.jpql.model;

import org.eclipse.persistence.jpa.jpql.model.query.SimpleSelectStatementStateObject;
import org.eclipse.persistence.jpa.jpql.model.query.StateObject;
import org.eclipse.persistence.jpa.jpql.parser.TrimExpression.Specification;

/**
 * @version 2.4
 * @since 2.4
 * @author Pascal Filion
 */
public interface IAbstractConditionalExpressionStateObjectBuilder> extends IScalarExpressionStateObjectBuilder {

	/**
	 * Creates the expression ALL(subquery).
	 *
	 * @param subquery The already constructed subquery
	 * @return This builder
	 */
	T all(SimpleSelectStatementStateObject subquery);

	/**
	 * Creates the expression x AND y.
	 *
	 * @param builder The right side of the logical expression
	 * @return This builder
	 */
	T and(T builder);

	/**
	 * Creates the expression ANY(subquery).
	 *
	 * @param subquery The already constructed subquery
	 * @return This builder
	 */
	T any(SimpleSelectStatementStateObject subquery);

	/**
	 * Creates the expression x BETWEEN y AND z.
	 *
	 * @param lowerBoundExpression The lower bound expression
	 * @param upperBoundExpression The upper bound expression
	 * @return This builder
	 */
	T between(T lowerBoundExpression, T upperBoundExpression);

	/**
	 * Creates a new collection-valued path expression.
	 *
	 * @param path The collection-valued path expression
	 * @return This builder
	 */
	T collectionPath(String path);

	T different(Number number);
	T different(String literal);
	T different(T builder);
	T equal(Number number);
	T equal(String literal);
	T equal(T builder);
	T exists(SimpleSelectStatementStateObject subquery);
	T FALSE();
	T greaterThan(Number number);
	T greaterThan(String literal);
	T greaterThan(T builder);
	T greaterThanOrEqual(Number number);
	T greaterThanOrEqual(String literal);
	T greaterThanOrEqual(T builder);
	T in(SimpleSelectStatementStateObject subquery);
	T in(String... inItems);
	T in(T... inItems);
	T isEmpty(String path);
	T isNotEmpty(String path);
	T isNotNull(String path);
	T isNull(String path);
	T like(String patternValue);
	T like(T patternValue);
	T like(T patternValue, String escapeCharacter);
	T lower(T builder);
	T lowerThan(Number number);
	T lowerThan(String literal);
	T lowerThan(T builder);
	T lowerThanOrEqual(Number number);
	T lowerThanOrEqual(String literal);
	T lowerThanOrEqual(T builder);
	T member(String path);
	T memberOf(String path);
	T notBetween(T lowerBoundExpression, T upperBoundExpression);
	T notExists(SimpleSelectStatementStateObject subquery);
	T notIn(SimpleSelectStatementStateObject subquery);
	T notIn(String... inItems);
	T notIn(T... inItems);
	T notLike(String patternValue);
	T notLike(T builder);
	T notLike(T builder, String escapeCharacter);
	T notMember(String path);
	T notMemberOf(String path);
	T NULL();
	T or(T builder);
	T some(SimpleSelectStatementStateObject subquery);
	T sub(StateObject stateObject);
	T substring(T parameter1, T parameter2, T parameter3);
	T trim(Specification specification, String trimCharacter, T builder);
	T trim(Specification specification, T builder);
	T TRUE();
	T upper(T builder);

	/**
	 * Creates the expression representing an identification variable.
	 *
	 * @param variable The identification variable
	 * @return This builder
	 */
	T variable(String variable);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy