Code example for CollectionType

Methods: getElementType

0
	 * @return The sql function, or null if not found. 
	 */ 
	public SQLFunction findSQLFunction(String functionName) { 
		return sfi.getSqlFunctionRegistry().findSQLFunction( functionName.toLowerCase() ); 
	} 
 
	/** 
	 * Locate a registered sql function by name, requiring that such a registered function exist. 
	 * 
	 * @param functionName The name of the function to locate 
	 * @return The sql function. 
	 * @throws QueryException Indicates no matching sql functions could be found. 
	 */ 
	private SQLFunction requireSQLFunction(String functionName) { 
		SQLFunction f = findSQLFunction( functionName ); 
		if ( f == null ) { 
			throw new QueryException( "Unable to find SQL function: " + functionName ); 
		} 
		return f; 
	}