FileDocCategorySizeDatePackage
LiteralNode.javaAPI DocHibernate 3.2.5992Tue Jun 27 21:53:40 BST 2006org.hibernate.hql.ast.tree

LiteralNode

public class LiteralNode extends AbstractSelectExpression implements org.hibernate.hql.antlr.HqlSqlTokenTypes
Represents a literal.
author
josh Jan 8, 2005 10:09:53 AM

Fields Summary
Constructors Summary
Methods Summary
public org.hibernate.type.TypegetDataType()

		switch ( getType() ) {
			case NUM_INT:
				return Hibernate.INTEGER;
			case NUM_FLOAT:
				return Hibernate.FLOAT;
			case NUM_LONG:
				return Hibernate.LONG;
			case NUM_DOUBLE:
				return Hibernate.DOUBLE;
			case QUOTED_STRING:
				return Hibernate.STRING;
			case TRUE:
			case FALSE:
				return Hibernate.BOOLEAN;
			default:
				return null;
		}
	
public voidsetScalarColumnText(int i)

		ColumnHelper.generateSingleScalarColumn( this, i );