Top Description Methods
org.hibernate.boot.model.source.spi

public Interface SingularAttributeSource

extends AttributeSource
Known Direct Subinterfaces
org.hibernate.boot.model.source.spi.SingularAttributeSourceAny, org.hibernate.boot.model.source.spi.SingularAttributeSourceBasic, org.hibernate.boot.model.source.spi.SingularAttributeSourceEmbedded, org.hibernate.boot.model.source.spi.SingularAttributeSourceToOne, org.hibernate.boot.model.source.spi.VersionAttributeSource
Known Direct Implementers
org.hibernate.boot.model.source.internal.hbm.SingularIdentifierAttributeSourceImpl
Imports
org.hibernate.tuple.GenerationTiming

Source-agnostic description of information needed to bind a singular attribute.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public GenerationTiming

Returns:

The attribute value generation information
getGenerationTiming
()

Obtain a description of if/when the attribute value is generated by the database.

public NaturalIdMutability

Returns:

The mutability, see enum for meanings
getNaturalIdMutability
()

Retrieve the natural id mutability

public SingularAttributeNature

Returns:

The attribute type nature
getSingularAttributeNature
()

Obtain the nature of this attribute type.

public boolean

Returns:

true to indicate the attribute should be lazily loaded by bytecode enhancement?
isBytecodeLazy
()

Should the attribute be lazily loaded by bytecode enhancement?

public Boolean

Returns:

true indicates value(s) should be inserted; false indicates not.
isInsertable
()

Did the mapping specify that the given attribute value(s) should be inserted into the database?

public Boolean

Returns:

true indicates value(s) should be updated; false indicates not.
isUpdatable
()

Did the mapping specify that the given attribute value(s) should be updated in the database?

public boolean

Returns:

true indicates the attribute is virtual, meaning it does NOT exist on the domain model; false indicates the attribute physically exists.
isVirtualAttribute
()

Determine whether this is a virtual attribute or whether it physically exists on the users domain model.

Inherited from org.hibernate.boot.model.source.spi.AttributeSource:
getAttributePathgetAttributeRolegetNamegetPropertyAccessorNamegetSourceTypegetTypeInformationgetXmlNodeNameisIncludedInOptimisticLockingisSingular

Method Detail

getGenerationTimingback to summary
public GenerationTiming getGenerationTiming()

Obtain a description of if/when the attribute value is generated by the database.

Returns:GenerationTiming

The attribute value generation information

getNaturalIdMutabilityback to summary
public NaturalIdMutability getNaturalIdMutability()

Retrieve the natural id mutability

Returns:NaturalIdMutability

The mutability, see enum for meanings

getSingularAttributeNatureback to summary
public SingularAttributeNature getSingularAttributeNature()

Obtain the nature of this attribute type.

Returns:SingularAttributeNature

The attribute type nature

isBytecodeLazyback to summary
public boolean isBytecodeLazy()

Should the attribute be lazily loaded by bytecode enhancement?

Returns:boolean

true to indicate the attribute should be lazily loaded by bytecode enhancement?

isInsertableback to summary
public Boolean isInsertable()

Did the mapping specify that the given attribute value(s) should be inserted into the database?

Returns:Boolean

true indicates value(s) should be inserted; false indicates not.

isUpdatableback to summary
public Boolean isUpdatable()

Did the mapping specify that the given attribute value(s) should be updated in the database?

Returns:Boolean

true indicates value(s) should be updated; false indicates not.

isVirtualAttributeback to summary
public boolean isVirtualAttribute()

Determine whether this is a virtual attribute or whether it physically exists on the users domain model.

Returns:boolean

true indicates the attribute is virtual, meaning it does NOT exist on the domain model; false indicates the attribute physically exists.