----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 02, 2000 5:11 PM
Subject: Re: Problem using IDBroker
> >
> > Hello, I am trying to get IDBroker to generate ID's for my database. My
> > code goes like this:
> >
> > DatabaseMap dbMap =
> > DBBroker.getInstance().getDatabaseMap("dabasename");
> > dbMap.setIdTable("tablename");
> > IDBroker idb = dbMap.getIDBroker();
> > int idInt = idb.getNextId("tablename").intValue();
> > This then generates the error:
> >
> > java.util.NoSuchElementException: database.idbroker.cleverquantity
> > doesn't map to an existing object
> > [snip]
This is an unrelated error. I updated the idbroker recently to fix some bugs in
the code that automatically adjusted the quantity of the id_table. I also added
some code so that you could switch of automatic adjustments of the quantity field
and called the property "database.idbroker.cleverquantity". I was probably an
idiot for not allowing for the property to be absent from the
TurbineResources.properties file. I'll fix it at some stage. I'm having an eye
operation tomorrow so you'll need to be patient for a day or two :-)
> > What would I be doing wrong? I'm stumped....
> >
>
> Add:
>
> database.idbroker.cleverquantity=[false or true]
If it is true the quantity field of your id_table will be adjusted if the load
requires an adjustment. If it is false no adjustments will be made to the
quantity field of your id_table.
> to the TurbineResources.properties file.
>
> This was mentioned on the mailing list in the last couple of weeks I think.
> The turbine list is archived on www.mail-archive.com.
>
> -Greg-
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]