org.locomotive.loco.store.id
Class LocoId

java.lang.Object
  |
  +--org.locomotive.loco.store.id.LocoId
Direct Known Subclasses:
LocoIdJdbc

public abstract class LocoId
extends java.lang.Object


Field Summary
protected static LocoId instance
           
static int LOCO_BSTAMP
           
static int LOCO_SESSIONS
           
static int LOCO_USERS
           
 
Constructor Summary
LocoId()
           
 
Method Summary
static LocoId getInstance()
           
 java.math.BigInteger getNextId(int type, java.sql.Connection con)
           
protected abstract  java.math.BigInteger getNextIdFromDatabase(int type, int increment, java.sql.Connection con)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCO_SESSIONS

public static final int LOCO_SESSIONS

LOCO_USERS

public static final int LOCO_USERS

LOCO_BSTAMP

public static final int LOCO_BSTAMP

instance

protected static LocoId instance
Constructor Detail

LocoId

public LocoId()
Method Detail

getInstance

public static final LocoId getInstance()
                                throws IdException

getNextId

public final java.math.BigInteger getNextId(int type,
                                            java.sql.Connection con)
                                     throws IdException

getNextIdFromDatabase

protected abstract java.math.BigInteger getNextIdFromDatabase(int type,
                                                              int increment,
                                                              java.sql.Connection con)
                                                       throws IdException