Atavism Version 2018.1AGIS API

atavism.server.engine
Class OIDManager

java.lang.Object
  extended by atavism.server.engine.OIDManager

public class OIDManager
extends java.lang.Object

handles giving out OIDs it gets unique OIDs from the database in chunks and gives them out


Field Summary
 int defaultChunkSize
           
static long invalidOid
           
 
Constructor Summary
OIDManager()
           
OIDManager(Database db)
           
 
Method Summary
 boolean empty()
          returns if there are no more OIDs and we need to grab more
protected  void getNewChunk(int chunkSize)
          grabs a new chunk of Oids sets freeOid and lastOid appropriately
 OID getNextOid()
          returns the next free oid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

invalidOid

public static final long invalidOid
See Also:
Constant Field Values

defaultChunkSize

public int defaultChunkSize
Constructor Detail

OIDManager

public OIDManager()

OIDManager

public OIDManager(Database db)
Method Detail

getNextOid

public OID getNextOid()
returns the next free oid


empty

public boolean empty()
returns if there are no more OIDs and we need to grab more


getNewChunk

protected void getNewChunk(int chunkSize)
grabs a new chunk of Oids sets freeOid and lastOid appropriately



Copyright © 2018 Dragonsan Studios Sp. z o.o.