Top Inners Fields Constructors Methods
org.hibernate.boot.model.source.internal.hbm

public Class PluralAttributeSourceIdBagImpl

extends AbstractPluralAttributeSourceImpl
implements Orderable
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.model.source.spi.Orderable
Imports
java.util.Collections, .List, .Locale, .Map, org.hibernate.boot.MappingException, org.hibernate.boot.jaxb.hbm.spi.JaxbHbmIdBagCollectionType, org.hibernate.boot.model.source.spi.AttributeSourceContainer, .CollectionIdSource, .ColumnSource, .Orderable, .PluralAttributeNature, .RelationalValueSource, .SizeSource, org.hibernate.internal.util.StringHelper, org.hibernate.internal.util.collections.CollectionHelper

Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final CollectionIdSource
private final JaxbHbmIdBagCollectionType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public CollectionIdSource
public PluralAttributeNature
public String
getOrder()

Implements org.hibernate.boot.model.source.spi.Orderable.getOrder.

The order by clause used during loading this plural attribute.
public XmlElementMetadata
public String
getXmlNodeName()

Implements org.hibernate.boot.model.source.spi.AttributeSource.getXmlNodeName.

This is only useful to log warnings when these deprecated attributes are populated.
public boolean
isOrdered()

Implements org.hibernate.boot.model.source.spi.Orderable.isOrdered.

If the source of plural attribute is supposed to be applied the ORDER BY when loading.
Inherited from org.hibernate.boot.model.source.internal.hbm.AbstractPluralAttributeSourceImpl:
containergetAttributePathgetAttributeRolegetCachinggetCascadeStyleNamegetCollectionTableCheckgetCollectionTableCommentgetCollectionTableSpecificationSourcegetCustomLoaderNamegetCustomPersisterClassNamegetCustomSqlDeletegetCustomSqlDeleteAllgetCustomSqlInsertgetCustomSqlUpdategetElementSourcegetFetchCharacteristicsgetFilterSourcesgetKeySourcegetMappedBygetNamegetPropertyAccessorNamegetSynchronizedTableNamesgetToolingHintContextgetTypeInformationgetWhereinferInLineViewNameisIncludedInOptimisticLockingisInverseisMutableisSingularusesJoinTable

Field Detail

collectionIdSourceback to summary
private final CollectionIdSource collectionIdSource
idBagMappingback to summary
private final JaxbHbmIdBagCollectionType idBagMapping

Constructor Detail

PluralAttributeSourceIdBagImplback to summary
public PluralAttributeSourceIdBagImpl(MappingDocument mappingDocument, final JaxbHbmIdBagCollectionType idBagMapping, AttributeSourceContainer container)

Method Detail

getCollectionIdSourceback to summary
public CollectionIdSource getCollectionIdSource()

Overrides org.hibernate.boot.model.source.internal.hbm.AbstractPluralAttributeSourceImpl.getCollectionIdSource.

Implements org.hibernate.boot.model.source.spi.PluralAttributeSource.getCollectionIdSource.

Annotations
@Override
getNatureback to summary
public PluralAttributeNature getNature()

Implements org.hibernate.boot.model.source.spi.PluralAttributeSource.getNature.

Annotations
@Override
getOrderback to summary
public String getOrder()

Implements org.hibernate.boot.model.source.spi.Orderable.getOrder.

Doc from org.hibernate.boot.model.source.spi.Orderable.getOrder.

The order by clause used during loading this plural attribute.

If the ordering element is not specified, ordering by the primary key of the associated entity is assumed

Returns:String

The ORDER BY fragment used during loading this plural attribute from DB.

Annotations
@Override
getSourceTypeback to summary
public XmlElementMetadata getSourceType()

Implements org.hibernate.boot.model.source.spi.AttributeSource.getSourceType.

Annotations
@Override
getXmlNodeNameback to summary
public String getXmlNodeName()

Implements org.hibernate.boot.model.source.spi.AttributeSource.getXmlNodeName.

Doc from org.hibernate.boot.model.source.spi.AttributeSource.getXmlNodeName.

This is only useful to log warnings when these deprecated attributes are populated. It was only useful for DOM4J entity-mode, which was removed a long time ago.

Returns:String

The xml node name

Annotations
@Override
isOrderedback to summary
public boolean isOrdered()

Implements org.hibernate.boot.model.source.spi.Orderable.isOrdered.

Doc from org.hibernate.boot.model.source.spi.Orderable.isOrdered.

If the source of plural attribute is supposed to be applied the ORDER BY when loading.

Returns:boolean

true indicates to apply the ORDER BY; false means not.

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

private Class PluralAttributeSourceIdBagImpl.CollectionIdSourceImpl

extends Object
implements CollectionIdSource
Class Inheritance
  • java.lang.Object
  • org.hibernate.boot.model.source.internal.hbm.PluralAttributeSourceIdBagImpl.CollectionIdSourceImpl
All Implemented Interfaces
org.hibernate.boot.model.source.spi.CollectionIdSource

Field Summary

Modifier and TypeField and Description
private final ColumnSource
private final String
private final Map<String, String>
private final HibernateTypeSourceImpl

Constructor Summary

AccessConstructor and Description
public
CollectionIdSourceImpl(ColumnSource columnSource, HibernateTypeSourceImpl typeSource, String generator, final Map<String, String> parameters)

Method Summary

Modifier and TypeMethod and Description
public ColumnSource
getColumnSource()

Implements org.hibernate.boot.model.source.spi.CollectionIdSource.getColumnSource.

Obtain source information about the column for the collection id.
public String
getGeneratorName()

Implements org.hibernate.boot.model.source.spi.CollectionIdSource.getGeneratorName.

Obtain the name of the identifier value generator.
public Map<String, String>
public HibernateTypeSourceImpl
getTypeInformation()

Implements org.hibernate.boot.model.source.spi.CollectionIdSource.getTypeInformation.

Obtain information about the Hibernate type (org.hibernate.type.Type) for the collection id
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnSourceback to summary
private final ColumnSource columnSource
generatorback to summary
private final String generator
parametersback to summary
private final Map<String, String> parameters
typeSourceback to summary
private final HibernateTypeSourceImpl typeSource

Constructor Detail

CollectionIdSourceImplback to summary
public CollectionIdSourceImpl(ColumnSource columnSource, HibernateTypeSourceImpl typeSource, String generator, final Map<String, String> parameters)

Method Detail

getColumnSourceback to summary
public ColumnSource getColumnSource()

Implements org.hibernate.boot.model.source.spi.CollectionIdSource.getColumnSource.

Doc from org.hibernate.boot.model.source.spi.CollectionIdSource.getColumnSource.

Obtain source information about the column for the collection id.

Returns:ColumnSource

The collection id column info.

Annotations
@Override
getGeneratorNameback to summary
public String getGeneratorName()

Implements org.hibernate.boot.model.source.spi.CollectionIdSource.getGeneratorName.

Doc from org.hibernate.boot.model.source.spi.CollectionIdSource.getGeneratorName.

Obtain the name of the identifier value generator.

Returns:String

The identifier value generator name

Annotations
@Override
getParametersback to summary
public Map<String, String> getParameters()

Implements org.hibernate.boot.model.source.spi.CollectionIdSource.getParameters.

Returns:Map<String, String>

Doc from org.hibernate.boot.model.source.spi.CollectionIdSource.getParameters.

The identifier generator configuration parameters

getTypeInformationback to summary
public HibernateTypeSourceImpl getTypeInformation()

Implements org.hibernate.boot.model.source.spi.CollectionIdSource.getTypeInformation.

Doc from org.hibernate.boot.model.source.spi.CollectionIdSource.getTypeInformation.

Obtain information about the Hibernate type (org.hibernate.type.Type) for the collection id

Returns:HibernateTypeSourceImpl

The Hibernate type information

Annotations
@Override