Package org.hibernate.mapping
Class Formula
- java.lang.Object
-
- org.hibernate.mapping.Formula
-
- All Implemented Interfaces:
Serializable,Selectable
public class Formula extends Object implements Selectable, Serializable
A mapping model object representing a SQL formula which is used as a "derived"Columnin an entity mapping.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAlias(Dialect dialect)StringgetAlias(Dialect dialect, Table table)StringgetCustomReadExpression()Any custom read expression for this selectable.StringgetCustomWriteExpression()Any custom write expression for this selectable.StringgetFormula()StringgetTemplate(Dialect dialect, TypeConfiguration typeConfiguration, SqmFunctionRegistry registry)StringgetText()The selectable's "canonical" text representationStringgetText(Dialect dialect)The selectable's text representation accounting for the Dialect's quoting, if quotedinthashCode()booleanisFormula()Does this selectable represent a formula?trueindicates it is a formula;falseindicates it is a physical columnvoidsetFormula(String string)StringtoString()-
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 Detail
-
Formula
public Formula()
-
Formula
public Formula(String formula)
-
-
Method Detail
-
getTemplate
public String getTemplate(Dialect dialect, TypeConfiguration typeConfiguration, SqmFunctionRegistry registry)
- Specified by:
getTemplatein interfaceSelectable
-
getText
public String getText(Dialect dialect)
Description copied from interface:SelectableThe selectable's text representation accounting for the Dialect's quoting, if quoted- Specified by:
getTextin interfaceSelectable
-
getText
public String getText()
Description copied from interface:SelectableThe selectable's "canonical" text representation- Specified by:
getTextin interfaceSelectable
-
getCustomReadExpression
public String 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:
ColumnTransformer
-
getCustomWriteExpression
public String 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:
ColumnTransformer
-
getAlias
public String getAlias(Dialect dialect)
- Specified by:
getAliasin interfaceSelectable
-
getAlias
public String getAlias(Dialect dialect, Table table)
- Specified by:
getAliasin interfaceSelectable
-
getFormula
public String getFormula()
-
setFormula
public void setFormula(String string)
-
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
-
-