TypeHelper.getType(Class) will return the type for the standard types and
any "registered" generated SDO.
For example, after you register the quote model (example model from the
sdo.tools project):
SDOUtil.registerStaticTypes(SimpleFactory.class);
You can then call:
Type quoteType = TypeHelper.INSTANCE.getType(Quote.class);
System.out.println("quoteType: " + quoteType);
Which will print the following:
quoteType: [EMAIL PROTECTED] (name: Quote)
(instanceClassName: null) (abstract: false, interface: false)
Frank
"Venkata Krishnan" <[EMAIL PROTECTED]> wrote on 07/11/2006 09:38:26
AM:
> Hi
> I want to get hold of the SDO.Type given the class of the SDO Type.
For
> example given com.examples.sdo.Customer.class I need to get the Type
> instance to work around with the SDOs metadata. Presently I am
> instantiating the SDO and then calling the getType() method.
>
> I checked the TypeHelper class for some APIs and there is one called
> getType(Class) but that returns only the Type for standard SDO types. Am
I
> missing something here ?
>
> Thanks.
>
> - Venkat
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]