We need to separate a couple of things out here.
My current understanding is that the vdb.xml file is becoming a replacement for both the
ConfigurationInfo.def file and MetaMatrix-VdbManifestModel.xmi. The old ConfigurationInfo
file did not contain any model type information - that was in the VdbManifestModel. The
proposed schema for vdb.xml does contain model type - but only allows PHYSICAL, VIRTUAL,
and FUNCTION.
Runtime uses this information in the following ways:
1. model type - available of our managed ModelMetadata, which
a. drives UI - such as show physical models in a display relating to connector
bindings.
b. (Teiid 7.0 new) allows us to determine function models so that they can be loaded
into the query metadata.
2. the model entry in the old ConfigurationInfo.def and in the new vdb.xml contains
visibility information which we use to
a. hide virtual or physical metadata from users.
b. determine whether the actual model resource is retrievable through system
procedures. This is legacy behavior. It does not seem like a very good idea to even
allow this in general. The only "models" that a client is really interested in
retrieving are XSDs and that may no longer be needed given Ted's update of web
service.
There are additional properties that we look at, but are specific to PHYSICAL models
(dynamic vdb importer settings, multisource enablement, etc.).
So to re-rephase. Designer previously used the MetaMatrix-VdbManifestModel.xmi to track
models of types more than just PHYSICAL, VIRTUAL, and FUNCTION. Does it still need/want
to do that in the vdb.xml?
----- Original Message -----
From: "John Verhaeg" <jverhaeg(a)redhat.com>
To: "Steven Hawkins" <shawkins(a)redhat.com>
Cc: "teiid-designer-dev" <teiid-designer-dev(a)lists.jboss.org>
Sent: Thursday, March 25, 2010 3:11:31 PM GMT -06:00 US/Canada Central
Subject: Re: [teiid-designer-dev] other model types
On Mar 25, 2010, at 2:46 PM, Steven Hawkins wrote:
Just to restate from your and Barry's answers - the vdb.xml xsd
should have allowable model type values also for:
TYPE (.xsd)
EXTENSION
LOGICAL
MATERIALIZATION
I'm confused. I thought you were saying the runtime doesn't care about these
distinctions because it only cares about the visibility entry. Is that not correct? I
thought I was agreeing with you that we probably don't need these extra types at all.
Also, I'm a bit confused about the visibility entry having to do with the XMI file
being retrieved. I thought that flag determined whether the model was visible via JDBC.
When and why does the runtime need to retrieve the model?
Thanks,
JPAV