Example #1
0
        public Fum(FumCompositeID id)
        {
            _id      = id;
            _friends = new HashedSet <Fum>();
            //TODO: H2.0.3 - this is diff from H2.0.3 because I am getting a null exception
            // when executing the Sql.  H203 uses the CalendarType which we don't have so
            // I am using DateTime instead...
            //m_LastUpdated = DateTime.Now;

            FumCompositeID fid = new FumCompositeID();

            fid.Date   = new DateTime(2004, 4, 29, 9, 50, 0, 0);
            fid.Short  = (short)(id.Short + 33);
            fid.String = id.String + "dd";

            Fum f = new Fum();

            f.Id        = fid;
            f.FumString = "FRIEND";
            //TODO: H2.0.3 - this is diff from H2.0.3 because I am getting a null exception
            // when executing the Sql.  H203 uses the CalendarType which we don't have so
            // I am using DateTime instead...
            //f.LastUpdated = DateTime.Now;

            _friends.Add(f);
        }
Example #2
0
        public static FumCompositeID FumKey(String str, bool aCompositeQueryTest)
        {
            FumCompositeID id = new FumCompositeID();
            //			if( dialect is Dialect.MckoiDialect )
            //												{
            //													  GregorianCalendar now = new GregorianCalendar();
            //													  GregorianCalendar cal = new GregorianCalendar(
            //														  now.get(java.util.Calendar.YEAR),
            //														  now.get(java.util.Calendar.MONTH),
            //														  now.get(java.util.Calendar.DATE)
            //														  );
            //													  id.setDate( cal.getTime() );
            //												  }
            //			else
            //			{
            id.Date = new DateTime(2004, 4, 29, 9, 0, 0, 0);
            //				 }
            id.String = str;

            if (aCompositeQueryTest)
            {
                id.Short = fumKeyShort++;
            }
            else
            {
                id.Short = (short) 12;
            }

            return id;
        }
		public Fum(FumCompositeID id)
		{
			_id = id;
			_friends = new Iesi.Collections.HashedSet();
			//TODO: H2.0.3 - this is diff from H2.0.3 because I am getting a null exception
			// when executing the Sql.  H203 uses the CalendarType which we don't have so
			// I am using DateTime instead...
			//m_LastUpdated = DateTime.Now;
			
			FumCompositeID fid = new FumCompositeID();
			fid.Date= new DateTime(2004, 4, 29, 9, 50, 0, 0);
			fid.Short= (short) ( id.Short + 33 );
			fid.String= id.String + "dd";
			
			Fum f = new Fum();
			f.Id = fid;
			f.FumString="FRIEND";
			//TODO: H2.0.3 - this is diff from H2.0.3 because I am getting a null exception
			// when executing the Sql.  H203 uses the CalendarType which we don't have so
			// I am using DateTime instead...
			//f.LastUpdated = DateTime.Now;

			_friends.Add( f );
		}
        public override bool Equals(object obj)
        {
            FumCompositeID that = (FumCompositeID)obj;

            return(this._string.Equals(that._string) && this._short == that._short);
        }