[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Query kernel



On Sun, 08 Apr 2001, Dasarathi wrote:
> hi falko,
>   some questions regarding querying 
> suppose u have  a database containing 2 classes/tables
> 
> Employee , Department.
> 
> and we have queries on thesse.
> 
> there r 2 ways to handle queries
> first the usual relational way
>   get all objects of class Employee and of Department
>   and then go abt the dirty work
> 
>   or
>   see if there is a pointer in Employee object to 
>   a department object and use that data.(ambiguous since no relation)
> 
>   since ozone does not adhere to ODL(definition)
>   how does one define relations between objects
>   this is important in querying .

You don't need to explicitly define relations. There is no other
type/relations/whatever definition than the Java code in ozone.

>   
>   right now we are implementing 'select from'
>   query of OQL.Parsing is over.Code generation
>   is becoming tricky with all the problems i mentioned 
>   above

You can find out about the object structure via reflection.


Falko
-- 
______________________________________________________________________
Falko Braeutigam                              mailto:falko@smb-tec.com
SMB GmbH                                        http://www.smb-tec.com