I’m new to the OFBIZ framework and have a few
questions. I’ve read the information on the ofbiz.org site, but I’m
still not getting it with regards to the GenericDelegator and how it fulfills
the database connectivity. I guess I would like to see if there is an
explanation that tells me: a) when is a
delegator created? b) which “things”
(bsh, classes, widgets, etc) actually create a delegator? c) how do the
GenericDAO and GenericDAOHelper classes fit into the picture..and when do they
get used? Thanks for your help. -Mike ----------------------------------------- Michael Irving Keynetx, Inc. - Building Solutions
for Success Fax: (425) 871-2838 email: [hidden email] * * * Visit Our Web Site: http://www.keynetx.net * * * -------------------------------------------------------------------------------- NOTICE: If received in error, please
destroy and notify sender. Sender does not waive confidentiality or privilege,
and use is prohibited. _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Mike,
a) the delegator is created when OFBiz starts up. You define a series of delegators with different names in framework/entity/config/entityengine.xml. b) these "things" don't create a delegator. They get a delegator by name. The simplest way to get one is like this: public static final String DELEGATOR_NAME = "test"; this.delegator = GenericDelegator.getGenericDelegator(DELEGATOR_NAME); The various OFBiz containers have ways of obtaining delegators in more sophisticated ways. In most WEB-INF/web.xml files, there are lines like this: <context-param> <param-name>entityDelegatorName</param-name> <param-value>default</param-value> <description>The Name of the Entity Delegator to use, defined in entityengine.xml</description> </context-param> To define the delegator. c) GenericDAO and GenericDAOHelper are used primarily by the delegator. Usually you will only end up working with GenericDelegator, GenericEntity, and GenericValue objects in the entity engine. Si Michael Irving wrote: > I’m new to the OFBIZ framework and have a few questions. I’ve read the > information on the ofbiz.org site, but I’m still not getting it with > regards to the GenericDelegator and how it fulfills the database > connectivity. I guess I would like to see if there is an explanation > that tells me: > > a) when is a delegator created? > > b) which “things” (bsh, classes, widgets, etc) actually create a > delegator? > > c) how do the GenericDAO and GenericDAOHelper classes fit into the > picture..and when do they get used? > > Thanks for your help. > > -Mike > > ----------------------------------------- > > Michael Irving > > Keynetx, Inc. - Building Solutions for Success > > Mobile: (267)474.3564 > > Fax: (425) 871-2838 > > email: [hidden email] <mailto:[hidden email]> > > * * * Visit Our Web Site: http://www.keynetx.net > <http://www.keynetx.net/> * * * > > -------------------------------------------------------------------------------- > > NOTICE: If received in error, please destroy and notify sender. Sender > does not waive confidentiality or privilege, and use is prohibited. > >------------------------------------------------------------------------ > > >_______________________________________________ >Dev mailing list >[hidden email] >http://lists.ofbiz.org/mailman/listinfo/dev > _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
Free forum by Nabble | Edit this page |