com.lutris.appserver.server.sql.informix
Class InformixObjectIdAllocator
java.lang.Object
com.lutris.appserver.server.sql.standard.StandardObjectIdAllocator
com.lutris.appserver.server.sql.informix.InformixObjectIdAllocator
- All Implemented Interfaces:
- ObjectIdAllocator
public class InformixObjectIdAllocator
- extends StandardObjectIdAllocator
Informix Object ids can only be created via this manager.
Ensures that all object ids are unique across all
objects in this logical database. Also ensures good performance
for allocating object ids.
The configuration data is specified in the section:
DatabaseManager.DB.dbName.ObjectId
Configuration fields are:
-
CacheSize
-
The number of object id's to cache between database queries. Optional,
if not specified, then it defaults to 1024.
-
MinValue
-
The starting number of Object ID allocation. This will only be used
if the Object ID table is empty and thus is useful in development
and testing. Optional, if not specified it defaults to
100000000000000000. Note that the largest number that can be
associated with an OID in LBS is "database: DECIMAL(19,0)"
- Since:
- LBS1.8
- Version:
- $Revision: 1.1 $
- Author:
- Kyle Clark
Constructor Summary |
protected |
InformixObjectIdAllocator(com.lutris.appserver.server.sql.LogicalDatabase logicalDatabase,
com.lutris.util.Config objIdConfig)
Initialize the object id manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InformixObjectIdAllocator
protected InformixObjectIdAllocator(com.lutris.appserver.server.sql.LogicalDatabase logicalDatabase,
com.lutris.util.Config objIdConfig)
throws com.lutris.util.ConfigException
- Initialize the object id manager.
- Parameters:
logicalDatabase
- LogicalDatabaseobjIdConfig
- Logical database Config object.
- Throws:
com.lutris.util.ConfigException
- if bad configuration information is
given in the config file.