Package org.hibernate.mapping
Class Formula
java.lang.Object
org.hibernate.mapping.Formula
- All Implemented Interfaces:
Serializable,Selectable
A mapping model object representing a SQL formula
which is used as a "derived"
Column in an entity mapping.- Author:
- Gavin King
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAny custom read expression for this selectable.Any custom write expression for this selectable.getTemplate(Dialect dialect, TypeConfiguration typeConfiguration, SqmFunctionRegistry registry) getText()The selectable's "canonical" text representationThe selectable's text representation accounting for the Dialect's quoting, if quotedinthashCode()booleanDoes this selectable represent a formula?voidsetFormula(String string) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.mapping.Selectable
getWriteExpr, getWriteExpr
-
Constructor Details
-
Formula
public Formula() -
Formula
-
-
Method Details
-
getTemplate
public String getTemplate(Dialect dialect, TypeConfiguration typeConfiguration, SqmFunctionRegistry registry) - Specified by:
getTemplatein interfaceSelectable
-
getText
Description copied from interface:SelectableThe selectable's text representation accounting for the Dialect's quoting, if quoted- Specified by:
getTextin interfaceSelectable
-
getText
Description copied from interface:SelectableThe selectable's "canonical" text representation- Specified by:
getTextin interfaceSelectable
-
getCustomReadExpression
Description copied from interface:SelectableAny custom read expression for this selectable. Only pertinent for physical columns (not formulas)- Specified by:
getCustomReadExpressionin interfaceSelectable- See Also:
-
getCustomWriteExpression
Description copied from interface:SelectableAny custom write expression for this selectable. Only pertinent for physical columns (not formulas)- Specified by:
getCustomWriteExpressionin interfaceSelectable- See Also:
-
getAlias
- Specified by:
getAliasin interfaceSelectable
-
getAlias
- Specified by:
getAliasin interfaceSelectable
-
getFormula
-
setFormula
-
isFormula
public boolean isFormula()Description copied from interface:SelectableDoes this selectable represent a formula?trueindicates it is a formula;falseindicates it is a physical column- Specified by:
isFormulain interfaceSelectable
-
toString
-
equals
-
hashCode
public int hashCode()
-