FileDocCategorySizeDatePackage
CaseFragment.javaAPI DocHibernate 3.2.5944Fri Jul 23 00:30:26 BST 2004org.hibernate.sql

CaseFragment

public abstract class CaseFragment extends Object
Abstract SQL case fragment renderer
author
Gavin King, Simon Harris

Fields Summary
protected String
returnColumnName
protected Map
cases
Constructors Summary
Methods Summary
public org.hibernate.sql.CaseFragmentaddWhenColumnNotNull(java.lang.String alias, java.lang.String columnName, java.lang.String value)

		cases.put( StringHelper.qualify(alias, columnName), value );
		return this;
	
public org.hibernate.sql.CaseFragmentsetReturnColumnName(java.lang.String returnColumnName)


	    
		this.returnColumnName = returnColumnName;
		return this;
	
public org.hibernate.sql.CaseFragmentsetReturnColumnName(java.lang.String returnColumnName, java.lang.String suffix)

		return setReturnColumnName( new Alias(suffix).toAliasString(returnColumnName) );
	
public abstract java.lang.StringtoFragmentString()