org.eclipse.persistence.internal.jpa.querydef.SetJoinImpl Maven / Gradle / Ivy
Show all versions of eclipselink Show documentation
/*******************************************************************************
* 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:
* 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 super Z, X> getModel(){
return (javax.persistence.metamodel.SetAttribute super Z, X>)this.modelArtifact;
}
public SetJoinImpl on(Expression restriction) {
// TODO: implement
throw new RuntimeException("Not implemented ... WIP ...");
}
public SetJoinImpl on(Predicate... restrictions) {
// TODO: implement
throw new RuntimeException("Not implemented ... WIP ...");
}
}