The AdoProperty class of the com.ms.wfc.data package encapsulates the ADO Property object, which represents a property for an ADO object, and uses Java primitive data types to retrieve and set the value of the AdoProperty object.
public class AdoProperty { // Methods public int getAttributes(); public boolean getBoolean(); public byte getByte(); public byte[] getBytes(); public double getDouble(); public float getFloat(); public int getInt(); public long getLong(); public String getName(); public Object getObject(); public short getShort(); public String getString(); public int getType(); public Variant getValue(); public boolean isNull(); public void setAttributes(int attr); public void setBoolean(boolean v); public void setByte(byte v); public void setBytes(byte[] v); public void setDouble(double v); public void setFloat(float v); public void setInt(int v); public void setLong(long v); public void setNull(); public void setObject(Object v); public void setShort(short v); public void setString(String v); public void setValue(Variant v); }
Note The isNull method returns a boolean value indicating whether the property is null. There is no getNull method.
ADO supports COM Property objects, each of which has a name and a value that represents a characteristic of the object. The AdoProperty class is the WFC representation of the ADO Property object.
There are two types of Property objects: built-in and dynamic. Built-in properties are part of a given ADO object, and each object has methods to assign or retrieve the value of the property. Dynamic properties are appended to the Properties collection of the given ADO object by the underlying OLE DB provider.
To obtain the dynamic properties of an object, first call its associated getxxx method. This method returns its Properties collection as an AdoProperties object. Then call the getItem method on the AdoProperties object to retrieve the property, either by index or by name. This property is returned as an AdoProperty object.
An AdoProperty object itself has properties. The primary AdoProperty property is value, which retrieves and assigns a value for the property, specified as a com.ms.com.Variant object. For convenience, ADO/WFC also provides accessor methods that retrieve and assign values not specified as variants, but as standard Java data types.