L2JPREMIUM  5M
com.premium.game.idfactory.IdFactory Class Referenceabstract
Inheritance diagram for com.premium.game.idfactory.IdFactory:
Collaboration diagram for com.premium.game.idfactory.IdFactory:

Public Member Functions

abstract int getCurrentId ()
 
abstract int getNextId ()
 
boolean isInitialized ()
 
abstract void releaseId (int id)
 
abstract int size ()
 

Static Public Member Functions

static IdFactory getInstance ()
 

Static Public Attributes

static final int FIRST_OID = 0x10000000
 
static final int LAST_OID = 0x7FFFFFFF
 
static final int FREE_OBJECT_ID_SIZE = LAST_OID - FIRST_OID
 

Protected Member Functions

void cleanUpDB ()
 
int[] extractUsedObjectIDTable () throws SQLException
 
void setAllCharacterOffline ()
 

Protected Attributes

boolean _initialized
 

Static Protected Attributes

static final Logger _log = Logger.getLogger(IdFactory.class.getName())
 
static final String[] ID_UPDATES
 
static final String[] ID_CHECKS
 
static IdFactory _instance = null
 

Member Data Documentation

◆ ID_CHECKS

final String [] com.premium.game.idfactory.IdFactory.ID_CHECKS
staticprotected
Initial value:
=
{
"SELECT owner_id FROM items WHERE object_id >= ? AND object_id < ?",
"SELECT object_id FROM items WHERE object_id >= ? AND object_id < ?",
"SELECT charId FROM character_quests WHERE charId >= ? AND charId < ?",
"SELECT charId FROM character_friends WHERE charId >= ? AND charId < ?",
"SELECT charId FROM character_friends WHERE friendId >= ? AND friendId < ?",
"SELECT charId FROM character_hennas WHERE charId >= ? AND charId < ?",
"SELECT charId FROM character_recipebook WHERE charId >= ? AND charId < ?",
"SELECT charId FROM character_shortcuts WHERE charId >= ? AND charId < ?",
"SELECT charId FROM character_macroses WHERE charId >= ? AND charId < ?",
"SELECT charId FROM character_skills WHERE charId >= ? AND charId < ?",
"SELECT charId FROM character_skills_save WHERE charId >= ? AND charId < ?",
"SELECT charId FROM character_subclasses WHERE charId >= ? AND charId < ?",
"SELECT charId FROM characters WHERE charId >= ? AND charId < ?",
"SELECT clanid FROM characters WHERE clanid >= ? AND clanid < ?",
"SELECT clan_id FROM clan_data WHERE clan_id >= ? AND clan_id < ?",
"SELECT clan_id FROM siege_clans WHERE clan_id >= ? AND clan_id < ?",
"SELECT ally_id FROM clan_data WHERE ally_id >= ? AND ally_id < ?",
"SELECT leader_id FROM clan_data WHERE leader_id >= ? AND leader_id < ?",
"SELECT item_obj_id FROM pets WHERE item_obj_id >= ? AND item_obj_id < ?",
"SELECT friendId FROM character_friends WHERE friendId >= ? AND friendId < ?",
"SELECT charId FROM seven_signs WHERE charId >= ? AND charId < ?",
"SELECT object_id FROM items_on_ground WHERE object_id >= ? AND object_id < ?"
}

The documentation for this class was generated from the following file: