FileDocCategorySizeDatePackage
Formula.javaAPI DocHibernate 3.2.51298Mon May 08 15:59:20 BST 2006org.hibernate.mapping

Formula

public class Formula extends Object implements Serializable, Selectable
A formula is a derived column value
author
Gavin King

Fields Summary
private static int
formulaUniqueInteger
private String
formula
private int
uniqueInteger
Constructors Summary
public Formula()


	  
		uniqueInteger = formulaUniqueInteger++;
	
Methods Summary
public java.lang.StringgetAlias(org.hibernate.dialect.Dialect dialect)

		return "formula" + Integer.toString(uniqueInteger) + '_";
	
public java.lang.StringgetAlias(org.hibernate.dialect.Dialect dialect, Table table)

		return getAlias(dialect);
	
public java.lang.StringgetFormula()

		return formula;
	
public java.lang.StringgetTemplate(org.hibernate.dialect.Dialect dialect, org.hibernate.dialect.function.SQLFunctionRegistry functionRegistry)

		return Template.renderWhereStringTemplate(formula, dialect, functionRegistry);
	
public java.lang.StringgetText(org.hibernate.dialect.Dialect dialect)

		return getFormula();
	
public java.lang.StringgetText()

		return getFormula();
	
public booleanisFormula()

		return true;
	
public voidsetFormula(java.lang.String string)

		formula = string;
	
public java.lang.StringtoString()

		return this.getClass().getName() + "( " + formula + " )";