Purpose: Mechanism used for EJBQL.
Responsibilities: Executes the appropriate call.
Initialize the state of the queryparamquery - owner of mechanism super(query);
super(query);
INTERNAL Initialize the state of the queryparamquery - owner of mechanismparamcall - Database call this(query); this.ejbqlCall = call; call.setQuery(query);
this(query); this.ejbqlCall = call; call.setQuery(query);
Internal: In the case of EJBQL, an expression needs to be generated, and the query populated. getEJBQLCall().setQuery(getQuery()); getEJBQLCall().populateQuery(newSession);
getEJBQLCall().setQuery(getQuery()); getEJBQLCall().populateQuery(newSession);
EJBQLCallQueryMechanism copyOfMyself = (EJBQLCallQueryMechanism)super.clone(); copyOfMyself.ejbqlCall = (EJBQLCall)ejbqlCall.clone(); return copyOfMyself;
return ejbqlCall;
return true;
All the query mechanism related things are initialized here. This method is called on the *clone* of the query with every execution.
ejbqlCall = newEJBQLCall;