Top Description Inners Fields Constructors Methods
org.hibernate.boot.jaxb.hbm.internal

public Class ImplicitResultSetMappingDefinition

extends Object
implements ResultSetMappingBindingDefinition
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.jaxb.hbm.spi.ResultSetMappingBindingDefinition
Imports
java.util.ArrayList, .Collections, .List, org.hibernate.boot.jaxb.hbm.spi.JaxbHbmNativeQueryCollectionLoadReturnType, .JaxbHbmNativeQueryJoinReturnType, .JaxbHbmNativeQueryReturnType, .JaxbHbmNativeQueryScalarReturnType, .ResultSetMappingBindingDefinition, org.hibernate.internal.util.collections.CollectionHelper

Models the ResultSet mapping defined inline as part of a named native query definition
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final String
private final List<E>

Constructor Summary

AccessConstructor and Description
public
ImplicitResultSetMappingDefinition(String resultSetMappingName, List<E> valueMappingSources)

Method Summary

Modifier and TypeMethod and Description
public String
public List<E>
getValueMappingSources()

Implements org.hibernate.boot.jaxb.hbm.spi.ResultSetMappingBindingDefinition.getValueMappingSources.

Get the JAXB mappings for each defined value return in the ResultSet mapping.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
private final String name
valueMappingSourcesback to summary
private final List<E> valueMappingSources

Constructor Detail

ImplicitResultSetMappingDefinitionback to summary
public ImplicitResultSetMappingDefinition(String resultSetMappingName, List<E> valueMappingSources)

Method Detail

getNameback to summary
public String getName()

Implements org.hibernate.boot.jaxb.hbm.spi.ResultSetMappingBindingDefinition.getName.

Doc from org.hibernate.boot.jaxb.hbm.spi.ResultSetMappingBindingDefinition.getName.

The ResultSet mapping name

Returns:String

The name.

Annotations
@Override
getValueMappingSourcesback to summary
public List<E> getValueMappingSources()

Implements org.hibernate.boot.jaxb.hbm.spi.ResultSetMappingBindingDefinition.getValueMappingSources.

Doc from org.hibernate.boot.jaxb.hbm.spi.ResultSetMappingBindingDefinition.getValueMappingSources.

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:

Returns:List<E>

The value return JAXB mappings.

Annotations
@Override
org.hibernate.boot.jaxb.hbm.internal back to summary

public Class ImplicitResultSetMappingDefinition.Builder

extends Object
Class Inheritance
  • java.lang.Object
  • org.hibernate.boot.jaxb.hbm.internal.ImplicitResultSetMappingDefinition.Builder

Field Summary

Modifier and TypeField and Description
private final String
private List<E>

Constructor Summary

AccessConstructor and Description
public
Builder(String queryName)

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public void
public ImplicitResultSetMappingDefinition
private <T> List<T>
copy(List<T> returnBindings)

public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

queryNameback to summary
private final String queryName
valueMappingSourcesback to summary
private List<E> valueMappingSources

Constructor Detail

Builderback to summary
public Builder(String queryName)

Method Detail

addReturnback to summary
public void addReturn(JaxbHbmNativeQueryScalarReturnType scalarReturn)
addReturnback to summary
public void addReturn(JaxbHbmNativeQueryReturnType rootReturn)
addReturnback to summary
public void addReturn(JaxbHbmNativeQueryJoinReturnType joinReturn)
addReturnback to summary
public void addReturn(JaxbHbmNativeQueryCollectionLoadReturnType collectionLoadReturn)
buildback to summary
public ImplicitResultSetMappingDefinition build()
copyback to summary
private <T> List<T> copy(List<T> returnBindings)
hasAnyReturnsback to summary
public boolean hasAnyReturns()