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

Inherits GemStone::GemFire::Cache::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 (GemStone::GemFire::Cache::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

Properties

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

Constructor & Destructor Documentation

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

Allocates a new default instance.

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

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

Parameters:
dateTime A System.DateTime value to initialize this instance.


Member Function Documentation

static CacheableDate ^ GemStone::GemFire::Cache::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::CacheableDate::Create (  )  [inline, static]

Static function that returns a new default instance.

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

Factory function to register this class.

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

Return true if this key matches other object.

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

Return true if this key matches other object.

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

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

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

Parameters:
input the DataInput stream to use for reading the object data
Returns:
the deserialized object

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

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

Return the hashcode for this key.

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

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

Serializes this object.

Parameters:
output the DataOutput object to use for serializing the object

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

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

Return a string representation of the object.

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


Field Documentation

initonly DateTime GemStone::GemFire::Cache::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::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.

Returns:
the classId

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

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

return the size of this object in bytes

return the size of this object in bytes

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

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

Gets the System.DateTime value.


GemFire C++ Cache .NET API Documentation