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

pack-priv Class FormulaImpl

extends AbstractHbmSourceNode
implements DerivedValueSource
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.model.source.spi.DerivedValueSource, org.hibernate.boot.model.source.spi.RelationalValueSource
Imports
org.hibernate.boot.model.source.spi.DerivedValueSource

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final String
private String

Constructor Summary

AccessConstructor and Description
pack-priv
FormulaImpl(MappingDocument mappingDocument, String tableName, String expression)

Method Summary

Modifier and TypeMethod and Description
public String
public String
getExpression()

Implements org.hibernate.boot.model.source.spi.DerivedValueSource.getExpression.

Obtain the expression used to derive the value.
public RelationalValueSource.Nature
getNature()

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

Retrieve the nature of this relational value.
Inherited from org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode:
mappingRootmetadataBuildingContextoriginsourceMappingDocument

Field Detail

expressionback to summary
private final String expression
tableNameback to summary
private String tableName

Constructor Detail

FormulaImplback to summary
pack-priv FormulaImpl(MappingDocument mappingDocument, String tableName, String expression)

Method Detail

getContainingTableNameback to summary
public String getContainingTableName()

Implements org.hibernate.boot.model.source.spi.RelationalValueSource.getContainingTableName.

Returns:String

Doc from org.hibernate.boot.model.source.spi.RelationalValueSource.getContainingTableName.

returns the name of the table that contains this value.

Annotations
@Override
getExpressionback to summary
public String getExpression()

Implements org.hibernate.boot.model.source.spi.DerivedValueSource.getExpression.

Doc from org.hibernate.boot.model.source.spi.DerivedValueSource.getExpression.

Obtain the expression used to derive the value.

Returns:String

The derived value expression.

Annotations
@Override
getNatureback to summary
public RelationalValueSource.Nature getNature()

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

Doc from org.hibernate.boot.model.source.spi.RelationalValueSource.getNature.

Retrieve the nature of this relational value. Is it a column? Or is it a derived value (formula)?

Returns:RelationalValueSource.Nature

The nature.

Annotations
@Override