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.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Any 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 quotedint
hashCode()
boolean
Does this selectable represent a formula?true
indicates it is a formula;false
indicates it is a physical columnvoid
setFormula
(String string) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
getTemplate
in interfaceSelectable
-
getText
Description copied from interface:Selectable
The selectable's text representation accounting for the Dialect's quoting, if quoted- Specified by:
getText
in interfaceSelectable
-
getText
Description copied from interface:Selectable
The selectable's "canonical" text representation- Specified by:
getText
in interfaceSelectable
-
getCustomReadExpression
Description copied from interface:Selectable
Any custom read expression for this selectable. Only pertinent for physical columns (not formulas)- Specified by:
getCustomReadExpression
in interfaceSelectable
- See Also:
-
getCustomWriteExpression
Description copied from interface:Selectable
Any custom write expression for this selectable. Only pertinent for physical columns (not formulas)- Specified by:
getCustomWriteExpression
in interfaceSelectable
- See Also:
-
getAlias
- Specified by:
getAlias
in interfaceSelectable
-
getAlias
- Specified by:
getAlias
in interfaceSelectable
-
getFormula
-
setFormula
-
isFormula
public boolean isFormula()Description copied from interface:Selectable
Does this selectable represent a formula?true
indicates it is a formula;false
indicates it is a physical column- Specified by:
isFormula
in interfaceSelectable
-
toString
-
equals
-
hashCode
public int hashCode()
-