Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.webapps
Class BeanSequence  view BeanSequence download BeanSequence.java

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.TreeMap
          extended bycom.RuntimeCollective.webapps.BeanSequence
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable, java.util.SortedMap

public class BeanSequence
extends java.util.TreeMap

A wrapper for a synchronised SortedMap of SequenceBeans which includes extra methods for maintaining sequence numbers to avoid conflicts.

A bean sequence is a set of beans, ordered by their 'sequence' properties. If a bean is added to a bean sequence, then subsequent beans will have their sequences incremented to avoid conflicts; and if a bean is removed then subsequent beans will have their sequences decremented to avoid gaps. Changes to the bean sequence will be saved to the database (using the beans save() and delete() methods) to ensure that the sequence properties remain synchronized.

Sequences are of the form (int)(char) where (int) is an optional positive integer and (char) is a optional single character. (For example 0,1,2,3,3a,3b,... )

Notes