Hi,
On Thursday 12 June 2003 18:35, Mahler Thomas wrote:
> Hi Shivaken,
>
> There is no way to do this with QueryByCriteria queries.
> You could use QueryBySQL to use use your own handcoded SQL.
I want to use options with INSERT.
PersistenceBroker.store(Object obj) dosen't accept any queries.
So, using QueryBySQL must not be a solution.
> an additional option would be to implement your own SqlGenerator
> Implementation that use your special SQL code.
> But this will be more work.
I do want implement them.
But writing other sqlGenerator implementation is not enough.
Because these keywords must be specified at each time.
DELAYED will decrease reliability and IGNORE tells no errors even if it
needed. They are not be needed always.
I think
--------------------------------------------------------------------------------------
broker.setInsertOption("DELAYED");
-- broker executes sqlGenerator.setInsertOption("DELAYED")
broker.store(obj);
// If only for one time.
broker.removeInsertOptions();
-- broker executes sqlGenerator.removeInsertOptions();
--------------------------------------------------------------------------------------
can be useful. This dosen't depend on DB's implementation.
But it is need to change interface of PersistenceBroker and sqlGenerator.
regards.
-- shivaken
antshell: Ant command line front end
http://www.antshell.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]