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

org.eclipse.persistence.internal.jpa.querydef.RootImpl 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:
 *     Gordon Yorke - Initial development
 *
 ******************************************************************************/
package org.eclipse.persistence.internal.jpa.querydef;

import javax.persistence.criteria.Path;
import javax.persistence.criteria.Root;
import javax.persistence.metamodel.Bindable;
import javax.persistence.metamodel.EntityType;
import javax.persistence.metamodel.ManagedType;
import javax.persistence.metamodel.Metamodel;

/**
 * 

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

* Description: This class represents root of a path. All paths are * created from roots and they correspond to ExpressionBuilders. *

* * @see javax.persistence.criteria Path * * @author gyorke * @since EclipseLink 1.2 */ public class RootImpl extends FromImpl implements Root { public RootImpl(ManagedType managedType, Metamodel metamodel, Class javaClass, org.eclipse.persistence.expressions.Expression expressionNode, Bindable modelArtifact) { super((Path) null, managedType, metamodel, javaClass, expressionNode, modelArtifact); } public RootImpl(ManagedType managedType, Metamodel metamodel, Class javaClass, org.eclipse.persistence.expressions.Expression expressionNode, Bindable modelArtifact, FromImpl correlatedParent) { super((Path) null, managedType, metamodel, javaClass, expressionNode, modelArtifact, correlatedParent); } /** * Return the metamodel entity corresponding to the root. * * @return metamodel entity corresponding to the root */ public EntityType getModel() { return (EntityType) this.modelArtifact; } public void findRootAndParameters(CommonAbstractCriteriaImpl query) { query.integrateRoot(this); } public boolean isRoot() { return true; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy