In SDO there's a list of properties (simple and complex combined) that you 
can get like this:

List<Property> properties = userSDO.getType().getProperties();

If you are interested in the simple ones, you need to do something like 
this when iterating through the list:

if (property.getType().isDataType()) ...

Frank.

Ole Ersoy <[EMAIL PROTECTED]> wrote on 03/29/2007 01:59:05 PM:

> Hi,
> 
> I asked this question a little differently before referring to EMF's 
ecore,
> and I'll try again by restating what I wish to do.
> 
> Suppose I have an SDO instance....
> 
> Class name UserSDO,
> 
> instance userSDO
> 
> I would like to get  a list of all the non-complex object members of
> userSDO
> 
> So for instance if userSDO has some String members
> like userName and userPassword
> 
> I would like a list of these.
> 
> Do I just use regular java reflection or does
> the Tuscany SDO API have something similar to
> EMF's EClass.
> 
> If I were using EMF I could
> do
> EClass eClass = userSDO.eClass();
> 
> Then to get the members I would do
> EList<EAttribute> attributes = eClass.getEAttributes();
> 
> If I wanted the complext object references I would
> do
> 
> EList<EReference> references eClass.getEReferences();
> 
> Does the Tuscany SDO API have something similar?
> 
> Thanks,
> - Ole
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to