From: Kevin W. <kev...@us...> - 2004-12-31 18:23:02
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Hql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28006 Modified Files: HavingParser.cs IParser.cs IQueryFunctionInfo.cs Log Message: fixing xml comments and letting ReSharper do reformatting Index: IQueryFunctionInfo.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Hql/IQueryFunctionInfo.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** IQueryFunctionInfo.cs 6 Apr 2004 00:31:07 -0000 1.1 --- IQueryFunctionInfo.cs 31 Dec 2004 18:22:46 -0000 1.2 *************** *** 1,4 **** - using System; - using NHibernate.Engine; using NHibernate.Type; --- 1,2 ---- *************** *** 17,25 **** public interface IQueryFunctionInfo { ! IType QueryFunctionType(IType columnType, IMapping mapping); bool IsFunctionArgs { get; } ! bool IsFunctionNoArgsUseParanthesis { get; } } ! } --- 15,35 ---- public interface IQueryFunctionInfo { ! /// <summary> ! /// ! /// </summary> ! /// <param name="columnType"></param> ! /// <param name="mapping"></param> ! /// <returns></returns> ! IType QueryFunctionType( IType columnType, IMapping mapping ); + /// <summary> + /// + /// </summary> bool IsFunctionArgs { get; } ! /// <summary> ! /// ! /// </summary> ! bool IsFunctionNoArgsUseParanthesis { get; } } ! } \ No newline at end of file Index: HavingParser.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Hql/HavingParser.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** HavingParser.cs 4 Dec 2004 22:41:19 -0000 1.7 --- HavingParser.cs 31 Dec 2004 18:22:46 -0000 1.8 *************** *** 1,5 **** ! using System; ! ! namespace NHibernate.Hql { /// <summary> --- 1,3 ---- ! namespace NHibernate.Hql { /// <summary> *************** *** 7,25 **** /// SQL having clause. /// </summary> ! public class HavingParser : WhereParser { ! ! public HavingParser(Dialect.Dialect d) : base(d) { } ! protected override void AppendToken(QueryTranslator q, string token) { // a String.Empty can get passed in here. If that occurs // then don't create a new SqlString for it - just ignore // it since it adds nothing to the sql being generated. ! if( token!=null && token.Length>0 ) { ! q.AppendHavingToken(token); } } --- 5,31 ---- /// SQL having clause. /// </summary> ! public class HavingParser : WhereParser { ! /// <summary> ! /// ! /// </summary> ! /// <param name="d"></param> ! public HavingParser( Dialect.Dialect d ) : base( d ) { } ! /// <summary> ! /// ! /// </summary> ! /// <param name="q"></param> ! /// <param name="token"></param> ! protected override void AppendToken( QueryTranslator q, string token ) { // a String.Empty can get passed in here. If that occurs // then don't create a new SqlString for it - just ignore // it since it adds nothing to the sql being generated. ! if( token != null && token.Length > 0 ) { ! q.AppendHavingToken( token ); } } Index: IParser.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Hql/IParser.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** IParser.cs 14 Apr 2004 11:35:53 -0000 1.4 --- IParser.cs 31 Dec 2004 18:22:46 -0000 1.5 *************** *** 1,5 **** ! using System; ! ! namespace NHibernate.Hql { /// <summary> /// A parser is a state machine that accepts a string of tokens, --- 1,4 ---- ! namespace NHibernate.Hql ! { /// <summary> /// A parser is a state machine that accepts a string of tokens, *************** *** 8,15 **** /// for more than one token stream. /// </summary> ! public interface IParser { ! void Token(string token, QueryTranslator q); ! void Start(QueryTranslator q); ! void End(QueryTranslator q); } } \ No newline at end of file --- 7,30 ---- /// for more than one token stream. /// </summary> ! public interface IParser ! { ! /// <summary> ! /// ! /// </summary> ! /// <param name="token"></param> ! /// <param name="q"></param> ! void Token( string token, QueryTranslator q ); ! ! /// <summary> ! /// ! /// </summary> ! /// <param name="q"></param> ! void Start( QueryTranslator q ); ! ! /// <summary> ! /// ! /// </summary> ! /// <param name="q"></param> ! void End( QueryTranslator q ); } } \ No newline at end of file |