Index

DKAttrDefDD

Purpose:

This class represents a basic Domino.Doc attribute.

Class summary:

class DKAttrDefDD : public dkAttrDef
{
public:
 
  DKAttrDefDD();
  DKAttrDefDD(dkDatastore* ds);
  DKAttrDefDD( dkDatastore*  ds
             , dkEntityDef*  parentEntity
             , DKString      parentEntityName
             , DKString      attributeName
             , short         attrId
             , short         attrType
             , long          minValue
             , long          maxValue
             , DKBoolean     queryable
             , DKBoolean     nullable
             , long          stringType
             , DKString      value );
  DKAttrDefDD( DKAttrDefDD& fromDef );
 
  virtual ~DKAttrDefDD();
 
  virtual DKBoolean isQueryable();
  virtual DKBoolean isUpdatable();
  virtual DKBoolean isNullable();
  virtual void      setValue(DKString value);
  virtual DKString  getValue();
  virtual void      setDDType( unsigned short ddType = DK_DD_ATTR );
  virtual unsigned short getDDType();
 
};

Members:

Constructors and destructor
The first constructor is the default constructor. The second constructor takes a datastore reference. The third constructor can be used by any entity.
  DKAttrDefDD();
  DKAttrDefDD(dkDatastore* ds);
  DKAttrDefDD( dkDatastore*  ds
             , dkEntityDef*  parentEntity
             , DKString      parentEntityName
             , DKString      attributeName
             , short         attrId
             , short         attrType
             , long          minValue
             , long          maxValue
             , DKBoolean     queryable
             , DKBoolean     nullable
             , long          stringType
             , DKString      value );
  DKAttrDefDD( DKAttrDefDD& fromDef );
 
  virtual ~DKAttrDefDD();
 

Member functions

isQueryable
isQueryable always returns false. Subclasses should override this behavior (if applicable).
  virtual DKBoolean isQueryable();
 

isUpdatable
isUpdatable always returns false. Subclasses should override this behavior (if applicable).
  virtual DKBoolean isUpdatable();
 

isNullable
isNullable always returns false. Subclasses should override this behavior (if applicable).
  virtual DKBoolean isNullable();
 

setValue
Sets a value for this attribute.
  virtual void setValue(DKString value);
 

getValue
Gets the value associated with this attribute.
  virtual DKString getValue();
 

setDDType
Sets the Domino.Doc-specific attribute type.
  virtual void setDDType( unsigned short ddType = DK_DD_ATTR );
 

getDDType
Gets the Domino.Doc-specific attribute type.
  virtual unsigned short getDDType();
 

(c) Copyright International Business Machines Corporation 1996, 2003. IBM Corp. All rights reserved.