Can someone outline for me what the difference is between these two classes
(other than that SchemaGroup is a class and SchemaFactory is an interface)?

To my eyes they are responsible for the same job.

It also seems like a SchemaGenerator should, in all cases, be a
SchemaFactory.

Suppose I'm writing a database/OpenJPA-related tool.  If I were looking for
general-purpose connect-to-a-database-and-barf-out-a-SchemaGroup
functionality, would I be better off asking someone to supply an instance of
a SchemaGenerator, or an arbitrary SchemaFactory, if I were simply going to
do the bare minimum in terms of calling methods?

Thanks for any pointers.  I know this is a vague question, but I'm looking
for vague answers.  :-)  What I mean is, I'm mainly interested in reasons
that these two classes look so similar--perhaps the mighty Abe White forgot
what he had already written?  Or had other ideas in mind?

Best,
Laird

Reply via email to