
javax.persistence.criteria.MapJoin Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2010 Bull S.A.S.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.persistence.criteria;
import java.util.Map;
import javax.persistence.metamodel.MapAttribute;
/**
* The MapJoin interface is the type of the result of
* joining to a collection over an association or element
* collection that has been specified as a java.util.Map.
* @param the source type of the join
* @param the type of the target Map key
* @param the type of the target Map value
* @see JPA 2.0 specification
* @author Florent Benoit
* @since JPA 2.0 version.
*/
public interface MapJoin
extends PluralJoin, V> {
/**
* Return the metamodel representation for the map attribute.
* @return metamodel type representing the Map that is
* the target of the join
*/
MapAttribute super Z, K, V> getModel();
/**
* Create a path expression that corresponds to the map key.
* @return path corresponding to map key
*/
Path key();
/**
* Create a path expression that corresponds to the map value.
* This method is for stylistic use only: it just returns this.
* @return path corresponding to the map value
*/
Path value();
/**
* Create an expression that corresponds to the map entry.
* @return expression corresponding to the map entry
*/
Expression> entry();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy