Xindice API

org.apache.xindice.core.system
Class Sequencer

java.lang.Object
  |
  +--org.apache.xindice.util.SimpleConfigurable
        |
        +--org.apache.xindice.core.objects.SimpleReflectable
              |
              +--org.apache.xindice.core.objects.SimpleXMLObject
                    |
                    +--org.apache.xindice.core.system.Sequencer
All Implemented Interfaces:
Configurable, Named, Poolable, Reflectable, XMLObject

public final class Sequencer
extends SimpleXMLObject

Sequencer is a system-level sequencer for creating auto-incrementing values. It operates in a similar fashion to how Interbase performs auto-incrementing. You use the methods to create and retrieve values from named sequences. These sequences don't have to be explicitly associated with any particular Collection, which allows them to be shared between Collections, or even Databases and Servers for that matter.


Field Summary
static java.lang.String[] PARAMS_create
           
static java.lang.String[] PARAMS_createValue
           
static java.lang.String[] PARAMS_next
           
static java.lang.String[] PARAMS_remove
           
static java.lang.String[] PARAMS_reset
           
 
Fields inherited from interface org.apache.xindice.core.objects.Reflectable
NO_PARAMS
 
Constructor Summary
Sequencer()
           
 
Method Summary
 void create(java.lang.String name)
           
 void createValue(java.lang.String name, long value)
           
 long next(java.lang.String name)
           
 void remove(java.lang.String name)
           
 void reset(java.lang.String name, long value)
           
 
Methods inherited from class org.apache.xindice.core.objects.SimpleXMLObject
getCollection, setCollection
 
Methods inherited from class org.apache.xindice.core.objects.SimpleReflectable
getName, getReflector, queryInterface, reclaim, setConfig, setPool
 
Methods inherited from class org.apache.xindice.util.SimpleConfigurable
getConfig
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.xindice.core.objects.Reflectable
getReflector, queryInterface
 
Methods inherited from interface org.apache.xindice.util.Named
getName
 
Methods inherited from interface org.apache.xindice.util.Configurable
getConfig, setConfig
 

Field Detail

PARAMS_create

public static final java.lang.String[] PARAMS_create

PARAMS_createValue

public static final java.lang.String[] PARAMS_createValue

PARAMS_remove

public static final java.lang.String[] PARAMS_remove

PARAMS_reset

public static final java.lang.String[] PARAMS_reset

PARAMS_next

public static final java.lang.String[] PARAMS_next
Constructor Detail

Sequencer

public Sequencer()
Method Detail

create

public void create(java.lang.String name)

createValue

public void createValue(java.lang.String name,
                        long value)

remove

public void remove(java.lang.String name)

reset

public void reset(java.lang.String name,
                  long value)

next

public long next(java.lang.String name)

Xindice API

Copyright (c) 1999-2001 The Apache Software Foundation