org.objectweb.jorm.facility.naming.generator
Interface LongGenMgr

All Known Implementing Classes:
LongGenIncrMgr

public interface LongGenMgr

Provides a means to allocates long identifiers generators.

Author:
P. Dechamboux

Method Summary
 LongGen getLongGen(java.lang.String lgname)
          Retrieves a long generator with the given name.
 LongGen getLongGen(java.lang.String lgname, java.lang.Object conn)
           
 PMapper getPMapper()
          Retrieves the mapper associated with this LongGenMgr.
 void init(PMapper pm, byte clact)
          Initializes a long generator manager by mapping relevant classes to the given mapper, and setting up relevant initial persistent information.
 

Method Detail

getPMapper

public PMapper getPMapper()
Retrieves the mapper associated with this LongGenMgr.


init

public void init(PMapper pm,
                 byte clact)
          throws PException
Initializes a long generator manager by mapping relevant classes to the given mapper, and setting up relevant initial persistent information.

Throws:
PException

getLongGen

public LongGen getLongGen(java.lang.String lgname)
                   throws PException
Retrieves a long generator with the given name. If it does not exist, creates it.

Throws:
PException

getLongGen

public LongGen getLongGen(java.lang.String lgname,
                          java.lang.Object conn)
                   throws PException
Throws:
PException