Index

DXAttrDefV4

Purpose:

This class represents an attribute definition for VisualInfo for AS/400. Each entity in a VisualInfo for AS/400 datastore will have one or more attributes. Additional attributes may be added to a DXIndexClassDefV4 object, but the ability to create and delete persistent attributes is not supported for VisualInfo for AS/400.

Methods:

datastoreName
        BSTR datastoreName();

Get the name of the associated datastore.

datastoreType
        BSTR datastoreType();

Gets the type of the associated datastore.

getDatastore
        LPDISPATCH getDatastore();

Gets the associated datastore. The returned LPDISPATCH pointer contains a DXDatastoreV4 object.

getDescription
        BSTR getDescription();

Gets the description.

getEntity
        LPDISPATCH getEntity();

Gets the associated entity. The returned LPDISPATCH pointer contains a DXIndexClassDefV4 object.

getId
        short   getId();

Gets the attribute ID.

getMax
        long getMax();

Gets the maximum value allowed for the attribute.

getMin
        long getMin();

Gets the minimum value allowed for the attribute.

getName
        long getName();

Gets the name of the attribute.

getPrecision
        long getPrecision();

Gets the precision of the attribute.

getScale
        long getScale();

Gets the scale.

getSize
        long getSize();

Gets the size.

getStringType
        long getStringType();

Gets the string type.

getType
        short   getType();

Return the datatype of the attribute.

isNullable
        BOOL isNullable();

Returns true if the attribute value can be null.

isQueryable
        BOOL isQueryable();

Returns true if the attribute can be used in a query.

isUpdatable
        BOOL isUpdatable();

Returns true if the attribute value can be modified.

setDatastore
        setDatastore(LPDISPATCH ds);

Sets the associated datastore. The input parameter LPDISPATCH pointer contains a DXDatastoreV4 object.

setDescription
        setDescription(LPCTSTR name);

Sets the description.

setEntity
        setEntity(LPDISPATCH ent);

Sets the entity. The input parameter LPDISPATCH pointer contains a DXIndexClassDefV4 object.

setId
        setId(short     id);

Sets the attribute ID.

setMax
        setMax(long     max);

Sets the maximum value allowed for the attribute.

setMin
        setMin(long     Min);

Sets the minimum value allowed for the attribute.

setName
        setName(LPCTSTR name);

Sets the name of the attribute.

setNullable
        setNullable(BOOL nullable);

Sets the nullable indicator.

setPrecision
        setPrecision(long       precision);

Sets the precision.

setQueryable
        setQueryable(BOOL       queryable);

Sets the queryable indicator.

setScale
Sets the scale.
        setScale(long   scale);

setSize
        setSize(long displaySize);

Sets the size.

setStringType
        setStringType(long stringType);

Sets the string type.

setType
        setType(short   type);

Sets the data type for the attribute.

setUpdatable
        setUpdatable(BOOL       updatable);

Sets the updatable indicator.

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