You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by ramya r <ra...@yahoo.com> on 2006/08/10 14:47:58 UTC
SDO 2.0 - Property Interface
Hi,
I have ben trying to use SDO 2.0 implementation to transform an XML file into a DataGraph.
But on examinig the files, i find that the DataObjectUtil Class
public static Property getProperty(DataObject dataObject, int propertyIndex)
{
List typeProperties = dataObject.getType().getProperties();
Property property = propertyIndex < typeProperties.size() ?
(Property)typeProperties.get(propertyIndex) :
(Property)dataObject.getInstanceProperties().get(propertyIndex);
//FB maybe should catch bad index exception and throw IllegalArgumentException?
return property;
}
the follwing method calls the getInstanceProperties() of the Property in the commonj.sdo package.
But the Property Class found in this package has no such method.
Its only the Property Model Class interface that has such a method.
Any help?
Thanks in advance
Preethi
---------------------------------
Get your email and more, right on the new Yahoo.com
Re: SDO 2.0 - Property Interface
Posted by Hasan Muhammad <as...@us.ibm.com>.
The getInstanceProperties() is being called on DataObject ( which exists in
the DataObject Interface ), and not on the Property class.
dataObject.getInstanceProperties()
ramya r
<ramya_88@yahoo.c
om> To
tuscany-user@ws.apache.org
08/10/2006 08:47 cc
AM
Subject
SDO 2.0 - Property Interface
Please respond to
tuscany-user@ws.a
pache.org
Hi,
I have ben trying to use SDO 2.0 implementation to transform an XML file
into a DataGraph.
But on examinig the files, i find that the DataObjectUtil Class
public static Property getProperty(DataObject dataObject, int
propertyIndex)
{
List typeProperties = dataObject.getType().getProperties();
Property property = propertyIndex < typeProperties.size() ?
(Property)typeProperties.get(propertyIndex) :
(Property)dataObject.getInstanceProperties().get(propertyIndex);
//FB maybe should catch bad index exception and throw
IllegalArgumentException?
return property;
}
the follwing method calls the getInstanceProperties() of the Property in
the commonj.sdo package.
But the Property Class found in this package has no such method.
Its only the Property Model Class interface that has such a method.
Any help?
Thanks in advance
Preethi
---------------------------------
Get your email and more, right on the new Yahoo.com