AW: SequenceManagerHighLowImpl

2007-02-01 Thread Längerich , Bernd
Bernd Ingrid Laengerich wrote: OK, I played around a little bit and overwrote the afterStore method (empty implementation, however it never gets called!? What am I missing? I placed a breakpoint in my code, but it never reaches it. OK, searching around a little bit, I found in

Re: AW: SequenceManagerHighLowImpl

2007-02-01 Thread Armin Waibel
Längerich wrote: Bernd Ingrid Laengerich wrote: OK, I played around a little bit and overwrote the afterStore method (empty implementation, however it never gets called!? What am I missing? I placed a breakpoint in my code, but it never reaches it. OK, searching around a little bit, I found

Re: SequenceManagerHighLowImpl

2007-01-31 Thread Armin Waibel
Hi Bernd, Längerich wrote: Hi, I have some problems with OJB (PB-API) and the sequence manager. I derived a new sequence manager from the shipped HighLowImpl, that checks for every grab size with SequenceManagerHelper.getMaxForExtent() for the max id of the field. This works fine with data

AW: SequenceManagerHighLowImpl

2007-01-31 Thread Längerich , Bernd
Hi Armin, thanks again for your response. Armin wrote: Längerich wrote: Is it sufficient/possible to overwrite the afterStore() method of the sequence manager? Yep it's possible. Assume you want to lookup the HLSequence-object for the current used (fixed) field and invalidate the

SequenceManagerHighLowImpl

2007-01-30 Thread Längerich , Bernd
Hi, I have some problems with OJB (PB-API) and the sequence manager. I derived a new sequence manager from the shipped HighLowImpl, that checks for every grab size with SequenceManagerHelper.getMaxForExtent() for the max id of the field. This works fine with data added externally, but I have a

Re: Problem SequenceManagerHighLowImpl and forcing unique, persistent, sequence values.

2006-02-15 Thread Armin Waibel
Hi John, sorry for the hassle. Between 1.0.3 and 1.0.4 we have to change Identity handling but I forget completely to update docs. More details here http://mail-archives.apache.org/mod_mbox/db-ojb-user/200602.mbox/[EMAIL PROTECTED] or

Problem SequenceManagerHighLowImpl and forcing unique, persistent, sequence values.

2006-02-13 Thread JKramer
I am trying to use the following approach to get a unique sequence value without actually persisting an object into the table associated with the sequence. (I really only want the unique sequence of values. I.e. if the DB provided an Oracle style sequence, I'd probably just do a SQL nextval()

Informix + SequenceManagerHighLowImpl

2005-10-26 Thread Thomas Franke
Hello there, we use in one case Informix and the org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl as the sequence manager. First it seemed good but then we must realize that we can't create a new record, if we didn't create a record in the rdbms before using OJB. So if we want to

Re: Informix + SequenceManagerHighLowImpl

2005-10-26 Thread Armin Waibel
? At the moment I have no ideas because I don't know how this sequence manager works. Any suggestions are welcome! :) Have a look in method SequenceManagerHighLowImpl#lookupStoreSequence(PersistenceBroker broker, FieldDescriptor field, String seqName) this method is called to store/lookup

Re: Informix + SequenceManagerHighLowImpl

2005-10-26 Thread Thomas Franke
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Armin, Have a look in method SequenceManagerHighLowImpl#lookupStoreSequence(PersistenceBroker broker, FieldDescriptor field, String seqName) this method is called to store/lookup a HighLowSequence instance. OJB first lookup

Re: SequenceManagerHighLowImpl question

2004-08-26 Thread Armin Waibel
= 'deprecatedColumn' regards, Armin Frank Renaers wrote: Hi, We are using the SequenceManagerHighLowImpl implementation. (OJB1.0.0). We are using the spy driver to check the generated sql. The log contains the following sql statement : UPDATE OJB_HL_SEQ SET MAX_KEY='513',GRAB_SIZE='1',VERSION

Optimistic locking error with SequenceManagerHighLowImpl

2004-01-30 Thread Guillaume Nodet
When using two instances of ojb on different data sets, but using the same table for SequenceManagerHighLowImpl, i ran into an optimistic lock error. I took a look at the code, and i see there were 5 retries to test for achieving the select / store process. My question is: as the HighLowSequence

Re: Optimistic locking error with SequenceManagerHighLowImpl

2004-01-30 Thread Armin Waibel
Hi Guillaume, Guillaume Nodet wrote: When using two instances of ojb on different data sets, but using the same table for SequenceManagerHighLowImpl, i ran into an optimistic lock error. I took a look at the code, and i see there were 5 retries to test for achieving the select / store process

RE: Optimistic locking error with SequenceManagerHighLowImpl

2004-01-30 Thread Guillaume Nodet
? -Message d'origine- De : Armin Waibel [mailto:[EMAIL PROTECTED] Envoye : vendredi 30 janvier 2004 10:56 A : OJB Users List Objet : Re: Optimistic locking error with SequenceManagerHighLowImpl Hi Guillaume, Guillaume Nodet wrote: When using two instances of ojb on different data sets

Re: Optimistic locking error with SequenceManagerHighLowImpl

2004-01-30 Thread Armin Waibel
: Armin Waibel [mailto:[EMAIL PROTECTED] Envoye : vendredi 30 janvier 2004 10:56 A : OJB Users List Objet : Re: Optimistic locking error with SequenceManagerHighLowImpl Hi Guillaume, Guillaume Nodet wrote: When using two instances of ojb on different data sets, but using the same table

R: R: SequenceManagerHighLowImpl: trouble on rc3 - SOLVED?

2003-06-03 Thread Farnea Massimiliano
a, Just to check: are you saying that it is possible to use the latest JDBC driver (that comes with Oracle 9.x) with Oracle 8.1.7? Do you have a link to more information about possible issues doing this? Thanks, I'm using the classes12-g.zip (i'm still on JDK1.3) JDBC Driver for Oracle 9.2

R: SequenceManagerHighLowImpl: trouble on rc3

2003-05-29 Thread Farnea Massimiliano
Hi, strange! Could you post a test case or add a test to one of the existing test cases to reproduce your problem? Yes it's strange, I noticed a couple of thing ... that could be wrong: First of all, the problem seems the storing of the HighLowSequence object. The maxKey attribute is a 'long'

Re: SequenceManagerHighLowImpl: trouble on rc3

2003-05-28 Thread Armin Waibel
: SequenceManagerHighLowImpl: trouble on rc3 Hi, Do you use the repository_internal.xml shipped with rc3? Do you update OJB_HL_SEQ table? more info see release notes shipped with rc3. Yes, I did. I updated the OJB.properties file too for matching the new broker packaging

[CVS sequence package] SequenceManagerHighLowImpl changed

2003-04-01 Thread Armin Waibel
Hi all, currently I checked in a new version of SequenceManagerHighLowImpl. Now the implementation use otimistic locking to avoid id generation problems when OJB was used in different JVM with same database. To enable this behaviour the OJB_HL_SEQ table was enhanced. The table needs