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

public Class PluralAttributeElementSourceBasicImpl

extends AbstractHbmSourceNode
implements PluralAttributeElementSourceBasic, RelationalValueSourceContainer
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.model.source.spi.RelationalValueSourceContainer, org.hibernate.boot.model.source.spi.ColumnBindingDefaults, org.hibernate.boot.model.source.spi.PluralAttributeElementSourceBasic, org.hibernate.boot.model.naming.ImplicitBasicColumnNameSource, org.hibernate.boot.model.naming.ImplicitNameSource, org.hibernate.boot.model.source.spi.PluralAttributeElementSource
Imports
java.util.List, org.hibernate.boot.jaxb.hbm.spi.JaxbHbmBasicCollectionElementType, org.hibernate.boot.model.source.spi.AttributePath, .PluralAttributeElementNature, .PluralAttributeElementSourceBasic, .PluralAttributeSource, .RelationalValueSource, .RelationalValueSourceContainer, .SizeSource, org.hibernate.boot.spi.MetadataBuildingContext

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final PluralAttributeSource
private final HibernateTypeSourceImpl
private final List<RelationalValueSource>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
areValuesIncludedInInsertByDefault()

Implements org.hibernate.boot.model.source.spi.ColumnBindingDefaults.areValuesIncludedInInsertByDefault.

How should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.
public boolean
areValuesIncludedInUpdateByDefault()

Implements org.hibernate.boot.model.source.spi.ColumnBindingDefaults.areValuesIncludedInUpdateByDefault.

How should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.
public boolean
areValuesNullableByDefault()

Implements org.hibernate.boot.model.source.spi.ColumnBindingDefaults.areValuesNullableByDefault.

How should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.
public AttributePath
getAttributePath()

Implements org.hibernate.boot.model.naming.ImplicitBasicColumnNameSource.getAttributePath.

Access to the AttributePath for the basic value
public MetadataBuildingContext
public HibernateTypeSourceImpl
public PluralAttributeElementNature
public List<RelationalValueSource>
public boolean
isCollectionElement()

Implements org.hibernate.boot.model.naming.ImplicitBasicColumnNameSource.isCollectionElement.

Is the basic column the "element column" for a collection?
Inherited from org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode:
mappingRootmetadataBuildingContextoriginsourceMappingDocument

Field Detail

pluralAttributeSourceback to summary
private final PluralAttributeSource pluralAttributeSource
typeSourceback to summary
private final HibernateTypeSourceImpl typeSource
valueSourcesback to summary
private final List<RelationalValueSource> valueSources

Constructor Detail

PluralAttributeElementSourceBasicImplback to summary
public PluralAttributeElementSourceBasicImpl(MappingDocument sourceMappingDocument, PluralAttributeSource pluralAttributeSource, final JaxbHbmBasicCollectionElementType jaxbElement)

Method Detail

areValuesIncludedInInsertByDefaultback to summary
public boolean areValuesIncludedInInsertByDefault()

Implements org.hibernate.boot.model.source.spi.ColumnBindingDefaults.areValuesIncludedInInsertByDefault.

Doc from org.hibernate.boot.model.source.spi.ColumnBindingDefaults.areValuesIncludedInInsertByDefault.

How should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.

Returns:boolean

true Indicates that insertions are enabled by default for all value sources which do not explicitly specify.

Annotations
@Override
areValuesIncludedInUpdateByDefaultback to summary
public boolean areValuesIncludedInUpdateByDefault()

Implements org.hibernate.boot.model.source.spi.ColumnBindingDefaults.areValuesIncludedInUpdateByDefault.

Doc from org.hibernate.boot.model.source.spi.ColumnBindingDefaults.areValuesIncludedInUpdateByDefault.

How should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.

Returns:boolean

true Indicates that updates are enabled by default for all value sources which do not explicitly specify.

Annotations
@Override
areValuesNullableByDefaultback to summary
public boolean areValuesNullableByDefault()

Implements org.hibernate.boot.model.source.spi.ColumnBindingDefaults.areValuesNullableByDefault.

Doc from org.hibernate.boot.model.source.spi.ColumnBindingDefaults.areValuesNullableByDefault.

How should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.

Returns:boolean

true Indicates that insertions are enabled by default for all value sources which do not explicitly specify.

Annotations
@Override
getAttributePathback to summary
public AttributePath getAttributePath()

Implements org.hibernate.boot.model.naming.ImplicitBasicColumnNameSource.getAttributePath.

Doc from org.hibernate.boot.model.naming.ImplicitBasicColumnNameSource.getAttributePath.

Access to the AttributePath for the basic value

Returns:AttributePath

The AttributePath for the basic value

Annotations
@Override
getBuildingContextback to summary
public MetadataBuildingContext getBuildingContext()

Implements org.hibernate.boot.model.naming.ImplicitNameSource.getBuildingContext.

Doc from org.hibernate.boot.model.naming.ImplicitNameSource.getBuildingContext.

Access to the current building context.

Returns:MetadataBuildingContext

The building context

Annotations
@Override
getExplicitHibernateTypeSourceback to summary
public HibernateTypeSourceImpl getExplicitHibernateTypeSource()

Implements org.hibernate.boot.model.source.spi.PluralAttributeElementSourceBasic.getExplicitHibernateTypeSource.

Annotations
@Override
getNatureback to summary
public PluralAttributeElementNature getNature()

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

Annotations
@Override
getRelationalValueSourcesback to summary
public List<RelationalValueSource> getRelationalValueSources()

Implements org.hibernate.boot.model.source.spi.RelationalValueSourceContainer.getRelationalValueSources.

Doc from org.hibernate.boot.model.source.spi.RelationalValueSourceContainer.getRelationalValueSources.

Obtain the contained RelationalValueSource references.

Returns:List<RelationalValueSource>

The contained RelationalValueSource references.

Annotations
@Override
isCollectionElementback to summary
public boolean isCollectionElement()

Implements org.hibernate.boot.model.naming.ImplicitBasicColumnNameSource.isCollectionElement.

Doc from org.hibernate.boot.model.naming.ImplicitBasicColumnNameSource.isCollectionElement.

Is the basic column the "element column" for a collection?

Historical handling for these in hbm.xml binding was to simply name the column "elt".

Returns:boolean

true if the column being named is the collection element column; false otherwise.

Annotations
@Override