gnue-dev
[Top][All Lists]
Advanced

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

[GNUe-dev] Some questions about Introspection


From: Johannes Vetter
Subject: [GNUe-dev] Some questions about Introspection
Date: Tue, 08 Jun 2004 20:38:33 +0200

Hi,

I was reading the sources in gnue-common.datasources.* to get a picture
about Schema-Introspection, since we're planning to implement the
schema-creation part. 

First I was wondering why there's a 'defaultBehavior' which is used as
'introspector' ... (what has behavior to do with an
introspection-instance/class)? Having a connection instance one can
access the proper introspection-implementation using the property
'introspector'.

In 'datasource.drivers.<vendor>.Schema' there are two packages:
'Discovery' and 'Creation'. The first one holds usually a module called
'Introspection' with a class of the same name, derived from
'datasources.GIntrospection'. This class retrieves schema-information
from the backend and is used by gnue-designer at the moment
(SchemaNavigator and DatasourceEditor i think). But besides this
intuitive functions there's also a 'write ()' method in
GIntrospection.Introspection ?! As one could tend to think this is the
purpose of 'Schema.Creation' this a bit confusing.

On the other hand I'm wondering how to implement a schema-creation
functionality if not integrated into the same class as the
introspection. Maybe this should be given an other name, e.g.
'SchemaSupport', which handles both aspects retrieval and creation? As I
see things we could remove on abstraction layer, namely the
Discovery/Creation layer. I'd replace it by something like
'Schema.support' or 'Schema.Introspection' and 'Schema.Creation' (if one
whish to keep them apart).


Please feel free to give me some feedback or to bring some light into 
all mistakes i made ... :)


Best regards,

Johannes










-- 
BYTEWISE Software GmbH          Tel +43 (5577) 89877-0
i.A. Johannes Vetter            Fax +43 (5577) 89877-66
A-6890 Lustenau, Enga 2         http://www.bytewise.at
-------------------------------------------------------
Wir bieten die Installation von Debian GNU/Linux auf
Servern für kleinere Netzwerke zum Pauschalpreis an.
Mehr dazu unter http://www.bytewise.at/texte/pl-debian

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


reply via email to

[Prev in Thread] Current Thread [Next in Thread]