From: Kevin W. <kev...@us...> - 2004-12-31 17:55:21
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Expression In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22865 Modified Files: LtExpression.cs LtPropertyExpression.cs NotExpression.cs Log Message: fixing xml comments and letting ReSharper do reformatting Index: LtExpression.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Expression/LtExpression.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** LtExpression.cs 28 Mar 2004 06:05:09 -0000 1.2 --- LtExpression.cs 31 Dec 2004 17:55:06 -0000 1.3 *************** *** 1,18 **** ! using System; ! ! namespace NHibernate.Expression { ! ! public class LtExpression : SimpleExpression { ! ! internal LtExpression(string propertyName, object value) : base (propertyName, value) { } ! protected override string Op { get { return "<"; } } } ! } --- 1,21 ---- ! namespace NHibernate.Expression { ! /// <summary></summary> ! public class LtExpression : SimpleExpression { ! /// <summary> ! /// ! /// </summary> ! /// <param name="propertyName"></param> ! /// <param name="value"></param> ! internal LtExpression( string propertyName, object value ) : base( propertyName, value ) { } ! /// <summary></summary> ! protected override string Op { get { return "<"; } } } ! } \ No newline at end of file Index: NotExpression.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Expression/NotExpression.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** NotExpression.cs 28 Mar 2004 06:05:09 -0000 1.4 --- NotExpression.cs 31 Dec 2004 17:55:06 -0000 1.5 *************** *** 1,39 **** - using System; - using NHibernate.Engine; using NHibernate.SqlCommand; - using NHibernate.Type; - using NHibernate.Util; ! namespace NHibernate.Expression { /// <summary> /// Negates another expression. /// </summary> ! public class NotExpression : Expression { private Expression expression; ! internal NotExpression(Expression expression) { this.expression = expression; } ! public override SqlString ToSqlString(ISessionFactoryImplementor factory, System.Type persistentClass, string alias) { //TODO: set default capacity SqlStringBuilder builder = new SqlStringBuilder(); ! builder.Add("not "); ! builder.Add(expression.ToSqlString(factory, persistentClass, alias)); return builder.ToSqlString(); } ! public override TypedValue[] GetTypedValues(ISessionFactoryImplementor sessionFactory, System.Type persistentClass) { ! return expression.GetTypedValues(sessionFactory, persistentClass); } ! public override string ToString() { return "not " + expression.ToString(); } --- 1,54 ---- using NHibernate.Engine; using NHibernate.SqlCommand; ! namespace NHibernate.Expression { /// <summary> /// Negates another expression. /// </summary> ! public class NotExpression : Expression { private Expression expression; ! /// <summary> ! /// ! /// </summary> ! /// <param name="expression"></param> ! internal NotExpression( Expression expression ) { this.expression = expression; } ! /// <summary> ! /// ! /// </summary> ! /// <param name="factory"></param> ! /// <param name="persistentClass"></param> ! /// <param name="alias"></param> ! /// <returns></returns> ! public override SqlString ToSqlString( ISessionFactoryImplementor factory, System.Type persistentClass, string alias ) { //TODO: set default capacity SqlStringBuilder builder = new SqlStringBuilder(); ! builder.Add( "not " ); ! builder.Add( expression.ToSqlString( factory, persistentClass, alias ) ); return builder.ToSqlString(); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="sessionFactory"></param> ! /// <param name="persistentClass"></param> ! /// <returns></returns> ! public override TypedValue[ ] GetTypedValues( ISessionFactoryImplementor sessionFactory, System.Type persistentClass ) { ! return expression.GetTypedValues( sessionFactory, persistentClass ); } ! /// <summary></summary> ! public override string ToString() ! { return "not " + expression.ToString(); } Index: LtPropertyExpression.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Expression/LtPropertyExpression.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** LtPropertyExpression.cs 2 Aug 2004 04:30:37 -0000 1.1 --- LtPropertyExpression.cs 31 Dec 2004 17:55:06 -0000 1.2 *************** *** 1,17 **** - using System; - namespace NHibernate.Expression { ! public class LtPropertyExpression : PropertyExpression ! { ! public LtPropertyExpression(string propertyName, string otherPropertyName) ! : base(propertyName, otherPropertyName) ! { ! } ! protected override string Op ! { ! get { return " < "; } ! } ! } } \ No newline at end of file --- 1,22 ---- namespace NHibernate.Expression { ! /// <summary></summary> ! public class LtPropertyExpression : PropertyExpression ! { ! /// <summary> ! /// ! /// </summary> ! /// <param name="propertyName"></param> ! /// <param name="otherPropertyName"></param> ! public LtPropertyExpression( string propertyName, string otherPropertyName ) ! : base( propertyName, otherPropertyName ) ! { ! } ! /// <summary></summary> ! protected override string Op ! { ! get { return " < "; } ! } ! } } \ No newline at end of file |