Hi,
I'm using PersistenceBroker and need use OQL only for selecting objects, then I will use OQLQueryImpl, only to make the Query object for me, but I have two issues in doubt:
1) Executing query with broker ... OQLQueryImpl oql = new OQLQueryImpl(broker.getPBKey()); oql.create(sbOQL.toString()); Collection results = broker.getCollectionByQuery(oql.getQuery()); ...
2) Executing query with OQLQueryImpl ... OQLQueryImpl oql = new OQLQueryImpl(broker.getPBKey()); oql.create(sbOQL.toString()); ManageableCollection results = oql.execute(); ...
Then the doubts are:
What is better approach issue 1, issue 2 or exists a better way?
Since I will use the PB for me the best is issue 1, but for future compatibility don't be better to have a class QueryByOQL like QueryBySQL or QueryByCriteria?
Is correct instancing OQLQueryImpl programmatically?
TIA
Cl�vis
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
