GemStone::GemFire::Cache::Generic::CacheableDate Class Reference

Inherits GemStone::GemFire::Cache::Generic::ICacheableKey.

Detailed Description

An immutable date wrapper that can serve as a distributable key object for caching as well as being a string value.

Public Member Functions

 CacheableDate (DateTime dateTime)
 CacheableDate ()
virtual bool Equals (Object^ obj) override
virtual bool Equals (ICacheableKey^ other)
virtual IGFSerializableFromData (DataInput^ input)
virtual int32_t GetHashCode () override
virtual void ToData (DataOutput^ output)
virtual String^ ToString () override

Static Public Member Functions

static CacheableDateCreate (DateTime dateTime)
static CacheableDateCreate ()
static IGFSerializableCreateDeserializable ()

Static Public Attributes

static initonly DateTime EpochTime


virtual uint32_t ClassId [get]
virtual uint32_t ObjectSize [get]
DateTime Value [get]

Constructor & Destructor Documentation

GemStone::GemFire::Cache::Generic::CacheableDate::CacheableDate (  )  [inline]

Allocates a new default instance.

GemStone::GemFire::Cache::Generic::CacheableDate::CacheableDate ( DateTime  dateTime  ) 

Initializes a new instance of the CacheableDate to the given System.DateTime value.

dateTime A System.DateTime value to initialize this instance.

Member Function Documentation

static CacheableDate ^ GemStone::GemFire::Cache::Generic::CacheableDate::Create ( DateTime  dateTime  )  [inline, static]

Static function that returns a new instance initialized to the given System.DateTime value.

static CacheableDate ^ GemStone::GemFire::Cache::Generic::CacheableDate::Create (  )  [inline, static]

Static function that returns a new default instance.

static IGFSerializable ^ GemStone::GemFire::Cache::Generic::CacheableDate::CreateDeserializable (  )  [inline, static]

Factory function to register this class.

virtual bool GemStone::GemFire::Cache::Generic::CacheableDate::Equals ( Object^   obj  )  [override, virtual]

Return true if this key matches other object.

virtual bool GemStone::GemFire::Cache::Generic::CacheableDate::Equals ( ICacheableKey^   other  )  [virtual]

Return true if this key matches other object.

Implements GemStone::GemFire::Cache::Generic::ICacheableKey.

virtual IGFSerializable ^ GemStone::GemFire::Cache::Generic::CacheableDate::FromData ( DataInput^   input  )  [virtual]

Deserialize this object, typical implementation should return the 'this' pointer.

input the DataInput stream to use for reading the object data
the deserialized object

Implements GemStone::GemFire::Cache::Generic::IGFSerializable.

virtual int32_t GemStone::GemFire::Cache::Generic::CacheableDate::GetHashCode (  )  [override, virtual]

Return the hashcode for this key.

Implements GemStone::GemFire::Cache::Generic::ICacheableKey.

virtual void GemStone::GemFire::Cache::Generic::CacheableDate::ToData ( DataOutput^   output  )  [virtual]

Serializes this object.

output the DataOutput object to use for serializing the object

Implements GemStone::GemFire::Cache::Generic::IGFSerializable.

virtual String ^ GemStone::GemFire::Cache::Generic::CacheableDate::ToString (  )  [override, virtual]

Return a string representation of the object.

Implements GemStone::GemFire::Cache::Generic::IGFSerializable.

Field Documentation

initonly DateTime GemStone::GemFire::Cache::Generic::CacheableDate::EpochTime [static, initonly]

Initial value:

 DateTime(1970, 1, 1,
          0, 0, 0, DateTimeKind::Utc)
DataTime value since 1/1/1970

Property Documentation

virtual uint32_t GemStone::GemFire::Cache::Generic::CacheableDate::ClassId [get]

Returns the classId of the instance being serialized. This is used by deserialization to determine what instance type to create and deserialize into.

the classId

Implements GemStone::GemFire::Cache::Generic::IGFSerializable.

virtual uint32_t GemStone::GemFire::Cache::Generic::CacheableDate::ObjectSize [get]

return the size of this object in bytes

return the size of this object in bytes

Implements GemStone::GemFire::Cache::Generic::IGFSerializable.

DateTime GemStone::GemFire::Cache::Generic::CacheableDate::Value [get]

Gets the System.DateTime value.

GemFire C++ Cache .NET API Documentation