~aarti-pai/drizzle/temporal

« back to all changes in this revision

Viewing changes to drizzled/protocol.h

  • Committer: Jay Pipes
  • Date: 2009-01-27 04:14:22 UTC
  • Revision ID: jpipes@serialcoder-20090127041422-h4tfuaiiw1cx1v3x
Almost final removal of the get_date() and get_time() methods in 
Item_field, Field and Item_func classes.

Removal of obselete synonym variants of NOW() function from parser
as well as additional non-valid variants of NOW(expr) and SYSDATE(expr)

Fixed up the Item_date_typecast, Item_datetime_typecast, and Item_time_typecase
Items

Added Temporal derived-specific store() methods in Protocol.

Ensured all Field classes which dealt with Temporal values were as 
efficient in storing and retrieving temporal values as possible.

The Temporal classes are now only a few steps from being true ValueObjects.

I need to code through the last remaining operator overloads and 
make the classes Immutable.  After that, they may serve as a model for 
future work on ValueObjects.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
   *
99
99
   * @param Pointer to the temporal instance to store
100
100
   */
101
 
  virtual bool store(drizzled::Temporal *temporal)=0;
 
101
  virtual bool store(drizzled::Date *temporal)=0;
 
102
  virtual bool store(drizzled::DateTime *temporal)=0;
 
103
  virtual bool store(drizzled::Time *temporal)=0;
102
104
  virtual bool store(DRIZZLE_TIME *time)=0;
103
105
  virtual bool store_date(DRIZZLE_TIME *time)=0;
104
106
  virtual bool store_time(DRIZZLE_TIME *time)=0;
138
140
   *
139
141
   * @param Pointer to the temporal instance to store
140
142
   */
141
 
  virtual bool store(drizzled::Temporal *temporal);
 
143
  virtual bool store(drizzled::Date *temporal);
 
144
  virtual bool store(drizzled::DateTime *temporal);
 
145
  virtual bool store(drizzled::Time *temporal);
142
146
  virtual bool store(DRIZZLE_TIME *time);
143
147
  virtual bool store_date(DRIZZLE_TIME *time);
144
148
  virtual bool store_time(DRIZZLE_TIME *time);