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

org.eclipse.persistence.internal.jpa.querydef.SetJoinImpl Maven / Gradle / Ivy

There is a newer version: 5.0.0-B03
Show newest version
/*
 * Copyright (c) 2011, 2018 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
 */

// Contributors:
//     Gordon Yorke - Initial development
//

package org.eclipse.persistence.internal.jpa.querydef;

import javax.persistence.criteria.Expression;
import javax.persistence.criteria.JoinType;
import javax.persistence.criteria.Path;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.SetJoin;
import javax.persistence.metamodel.Bindable;
import javax.persistence.metamodel.ManagedType;
import javax.persistence.metamodel.Metamodel;

/**
 * 

* Purpose: Contains the implementation of the Join interface of the JPA * criteria API. *

* Description: This class represents a join of an attribute from a "From"element. *

* * @see javax.persistence.criteria ListJoin * * @author gyorke * @since EclipseLink 1.2 */ public class SetJoinImpl extends JoinImpl implements SetJoin{ public SetJoinImpl(Path parentPath, ManagedType managedType, Metamodel metamodel, Class javaClass, org.eclipse.persistence.expressions.Expression expressionNode, Bindable modelArtifact){ this(parentPath, managedType, metamodel, javaClass, expressionNode, modelArtifact,JoinType.INNER); } public SetJoinImpl(Path parentPath, ManagedType managedType, Metamodel metamodel, Class javaClass, org.eclipse.persistence.expressions.Expression expressionNode, Bindable modelArtifact, JoinType joinType){ super(parentPath, managedType, metamodel, javaClass, expressionNode, modelArtifact, joinType); } public SetJoinImpl(Path parentPath, ManagedType managedType, Metamodel metamodel, Class javaClass, org.eclipse.persistence.expressions.Expression expressionNode, Bindable modelArtifact, JoinType joinType, FromImpl correlatedParent){ super(parentPath, managedType, metamodel, javaClass, expressionNode, modelArtifact, joinType, correlatedParent); } /** * Return the metamodel representation for the collection. * @return metamodel type representing the Collection that is * the target of the join */ public javax.persistence.metamodel.SetAttribute getModel(){ return (javax.persistence.metamodel.SetAttribute)this.modelArtifact; } public SetJoinImpl on(Expression restriction) { return (SetJoinImpl)super.on(restriction); } public SetJoinImpl on(Predicate... restrictions) { return (SetJoinImpl)super.on(restrictions); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy