[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xindice-dev
Subject:    Re: autoincrement id
From:       Tom Bradford <bradford () dbxmlgroup ! com>
Date:       2001-12-31 7:08:20
[Download RAW message or body]

On Sunday, December 30, 2001, at 11:38 PM, Wap Brunei wrote:
> XMLResource document = (XMLResource) col.createResource("00001",
>            "XMLResource");
>
> is there any auto increment for id?

There is, but it's provided as an XMLObject called 'sequencer' that's 
registered with /db/system.  Basically, you associate a sequence with a 
common name, and call the next method to retrieve the next ID from the 
sequence.

--
Tom Bradford - http://www.tbradford.org
Chief Architect - The dbXML Group, L.L.C.
Developer - Apache Xindice (formerly dbXML)
Maintainer - jEdit-Syntax Java Editing Bean
Co-Author - O'Reilly's "Learning Xindice"


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic