Top Description Fields Constructors Methods
org.hibernate.metamodel.mapping.internal

public final Class MutableAttributeMappingList

extends Object
implements AttributeMappingsList
Class Inheritance
All Implemented Interfaces
org.hibernate.metamodel.mapping.AttributeMappingsList
Annotations
@Deprecated
Imports
java.util.ArrayList, .List, java.util.function.Consumer, org.hibernate.internal.util.IndexedConsumer, org.hibernate.metamodel.mapping.AttributeMapping, .AttributeMappingsList, .SingularAttributeMapping, org.hibernate.sql.results.graph.Fetchable

Deprecated

Please get rid of it: such collections should be immutable.

This mutable representation of AttributeMappingsList is meant to exist temporarily to assist migration to the new contract.

Field Summary

Modifier and TypeField and Description
private final List<E>

Constructor Summary

AccessConstructor and Description
public
MutableAttributeMappingList(final int length)

Method Summary

Modifier and TypeMethod and Description
public void
add(final AttributeMapping attributeMapping)

private static AttributeMapping
public void
public void
public AttributeMapping
public SingularAttributeMapping
getSingularAttributeMapping(int idx)

Deprecated should be removed
public void
public void
setAttributeMapping(int i, AttributeMapping attributeMapping)

public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

listback to summary
private final List<E> list

Constructor Detail

MutableAttributeMappingListback to summary
public MutableAttributeMappingList(final int length)

Method Detail

addback to summary
public void add(final AttributeMapping attributeMapping)
asAttributeMappingback to summary
private static AttributeMapping asAttributeMapping(final Object o)
clearback to summary
public void clear()
forEachback to summary
public void forEach(final Consumer<? super AttributeMapping> consumer)

Implements org.hibernate.metamodel.mapping.AttributeMappingsList.forEach.

Annotations
@Override
getback to summary
public AttributeMapping get(int idx)

Implements org.hibernate.metamodel.mapping.AttributeMappingsList.get.

Annotations
@Override
getSingularAttributeMappingback to summary
public SingularAttributeMapping getSingularAttributeMapping(int idx)

Deprecated

should be removed

Annotations
@Deprecated
indexedForEachback to summary
public void indexedForEach(final IndexedConsumer<? super AttributeMapping> consumer)

Implements org.hibernate.metamodel.mapping.AttributeMappingsList.indexedForEach.

Annotations
@Override
setAttributeMappingback to summary
public void setAttributeMapping(int i, AttributeMapping attributeMapping)
sizeback to summary
public int size()

Implements org.hibernate.metamodel.mapping.AttributeMappingsList.size.

Annotations
@Override