Top Description Fields Constructors Methods
org.hibernate.mapping

public Class Formula

extends Object
implements Selectable, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.mapping.Selectable
Imports
java.io.Serializable, java.util.concurrent.atomic.AtomicInteger, org.hibernate.dialect.Dialect, org.hibernate.dialect.function.SQLFunctionRegistry, org.hibernate.internal.util.StringHelper, org.hibernate.loader.internal.AliasConstantsHelper, org.hibernate.sql.Template

A formula is a derived column value
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private String
private static final AtomicInteger
private final int

Constructor Summary

AccessConstructor and Description
public
public
Formula(String formula)

Method Summary

Modifier and TypeMethod and Description
public String
public String
getAlias(Dialect dialect, Table table)

Implements org.hibernate.mapping.Selectable.getAlias.

Deprecated as a consequence of Table being deprecated.
public String
public String
public String
public String
public boolean
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

formulaback to summary
private String formula
formulaUniqueIntegerback to summary
private static final AtomicInteger formulaUniqueInteger
uniqueIntegerback to summary
private final int uniqueInteger

Constructor Detail

Formulaback to summary
public Formula()
Formulaback to summary
public Formula(String formula)

Method Detail

getAliasback to summary
public String getAlias(Dialect dialect)

Implements org.hibernate.mapping.Selectable.getAlias.

Annotations
@Override
getAliasback to summary
public String getAlias(Dialect dialect, Table table)

Implements org.hibernate.mapping.Selectable.getAlias.

Deprecated

as a consequence of Table being deprecated. See corresponding docs for further information.

Annotations
@Override
getFormulaback to summary
public String getFormula()
getTemplateback to summary
public String getTemplate(Dialect dialect, SQLFunctionRegistry functionRegistry)

Implements org.hibernate.mapping.Selectable.getTemplate.

Annotations
@Override
getTextback to summary
public String getText(Dialect dialect)

Implements org.hibernate.mapping.Selectable.getText.

Annotations
@Override
getTextback to summary
public String getText()

Implements org.hibernate.mapping.Selectable.getText.

Annotations
@Override
isFormulaback to summary
public boolean isFormula()

Implements org.hibernate.mapping.Selectable.isFormula.

Annotations
@Override
setFormulaback to summary
public void setFormula(String string)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override