org.objectweb.jorm.facility.naming.generator
Class LongGenIncrMgr

java.lang.Object
  extended byorg.objectweb.jorm.facility.naming.generator.LongGenIncrMgr
All Implemented Interfaces:
LongGenMgr, PClassMapping, PClassMappingCtrl

public abstract class LongGenIncrMgr
extends java.lang.Object
implements LongGenMgr, PClassMapping, PClassMappingCtrl

Manages LongGenIncr long generators. It is extended by the LongGenIncrMapping JORM-generated class.

Author:
P. Dechamboux

Nested Class Summary
 
Nested classes inherited from class org.objectweb.jorm.api.PClassMapping
PClassMapping.ReferenceConfigurator
 
Field Summary
 java.lang.String CNLONGGENINCR
           
 
Fields inherited from interface org.objectweb.jorm.api.PClassMapping
CLEANUP_DONOTHING, CLEANUP_REMOVEALL, CLEANUP_REMOVEDATA, CREATE_STRUCTURE_IF_NEEDED
 
Constructor Summary
LongGenIncrMgr()
           
 
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)
          Retrieves a long generator with the given name.
 void init(PMapper pm, byte clact)
          Initializes a long generator manager by mapping relevant classes to the given mapper, and setting relevant initial persistent information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jorm.facility.naming.generator.LongGenMgr
getPMapper
 
Methods inherited from interface org.objectweb.jorm.api.PClassMapping
addAssociation, classDefined, configureRefFields, createPBinding, exist, getAssociationTable, getClassName, getClassPNameCoder, getDecodedPName, getGenClassMapping, getGenClassMapping, getIndexesTable, getMetaInfo, getPBinder, getPMapper, getPNameCoder, getPNameCoder, getPNameIterator, getPNameIterator, getProjectName, getPType, getSubPCMs, init, init, isConform, match, read, read, read, resolve, setPBinder, write
 
Methods inherited from interface org.objectweb.jorm.api.PClassMappingCtrl
setClassPNameCoder, setGenClassMapping, setGenClassMapping, setPNameCoder, setPNameCoder, setProjectName
 

Field Detail

CNLONGGENINCR

public final java.lang.String CNLONGGENINCR
See Also:
Constant Field Values
Constructor Detail

LongGenIncrMgr

public LongGenIncrMgr()
Method Detail

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 relevant initial persistent information.

Specified by:
init in interface LongGenMgr
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.

Specified by:
getLongGen in interface LongGenMgr
Throws:
PException

getLongGen

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

Specified by:
getLongGen in interface LongGenMgr
Throws:
PException