org.hibernate.boot.jaxb.hbm.spi.ResultSetMappingBindingDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.boot.jaxb.hbm.spi;
import java.util.List;
/**
* @author Steve Ebersole
*/
public interface ResultSetMappingBindingDefinition {
/**
* The ResultSet mapping name
*
* @return The name.
*/
String getName();
/**
* Get the JAXB mappings for each defined value return in the ResultSet mapping.
*
* Needs to be a "grab bag", as opposed to individual Lists per return type, in
* order to maintain the defined order. And atm there is (unfortunately) not
* a common type for all the JAXB return mappings. But the list elements
* will be one of:
* - {@link JaxbHbmNativeQueryScalarReturnType}
* - {@link JaxbHbmNativeQueryReturnType}
* - {@link JaxbHbmNativeQueryJoinReturnType}
* - {@link JaxbHbmNativeQueryCollectionLoadReturnType}
*
*
* @return The value return JAXB mappings.
*/
List getValueMappingSources();
}