Revision a2c5a4cb include/PoolSQL.h

View differences:

include/PoolSQL.h
45 45
     *   @param _db a pointer to the database
46 46
     *   @param _table the name of the table supporting the pool (to set the oid
47 47
     *   counter). If null the OID counter is not updated.
48
     *   @param cache True to enable the cache
49
     *   @param cache_by_name True if the objects can be retrieved by name
50 48
     */
51
    PoolSQL(SqlDB * _db, const char * _table, bool cache, bool cache_by_name);
49
    PoolSQL(SqlDB * _db, const char * _table);
52 50

  
53 51
    virtual ~PoolSQL();
54 52

  
......
353 351
     *  The pool is implemented with a Map of SQL object pointers, using the
354 352
     *  OID as key.
355 353
     */
356
    map<int,PoolObjectSQL *> pool;
357

  
358
    /**
359
     * Whether or not this pool uses the name_pool index
360
     */
361
    bool uses_name_pool;
362

  
363
    /**
364
     *  This is a name index for the pool map. The key is the name of the object
365
     *  , that may be combained with the owner id.
366
     */
367
    map<string,PoolObjectSQL *> name_pool;
354
    vector<PoolObjectSQL *> pool;
368 355

  
369 356
    /**
370 357
     *  Factory method, must return an ObjectSQL pointer to an allocated pool

Also available in: Unified diff