org.objectweb.speedo.sequence.api
Interface SequenceManager

All Known Implementing Classes:
SpeedoSequenceManager

public interface SequenceManager

Class to manage sequences defined for a pmf.

Author:
Y.Bersihand

Method Summary
 void addSequence(java.lang.Object sequence)
          Add the sequence if not already registered in the list of sequences defined for this pmf.
 java.lang.Object getLongGenMgr()
          Get the long generator manager.
 org.objectweb.jorm.api.PMapper getMapper()
           
 ProxyManagerFactory getPMF()
           
 javax.jdo.datastore.Sequence getSequence(java.lang.String name)
          Return the sequence associated to the name parameter.
 void removeSequence(java.lang.String sequenceName)
          Try to remove the sequence identified by the sequenceName from the list of sequences defined for this pmf.
 void setLongGenMgr(java.lang.Object longGenMgr)
          Set the long generator manager.
 void setMapper(org.objectweb.jorm.api.PMapper mapper)
           
 void setPMF(ProxyManagerFactory pmf)
           
 

Method Detail

getLongGenMgr

public java.lang.Object getLongGenMgr()
Get the long generator manager.


setLongGenMgr

public void setLongGenMgr(java.lang.Object longGenMgr)
Set the long generator manager.


addSequence

public void addSequence(java.lang.Object sequence)
Add the sequence if not already registered in the list of sequences defined for this pmf.

Parameters:
sequence -

removeSequence

public void removeSequence(java.lang.String sequenceName)
Try to remove the sequence identified by the sequenceName from the list of sequences defined for this pmf. If the sequence does not exist, nothing is done.

Parameters:
sequenceName - the fully qualified name of the sequence, i.e "packageName.sequenceName".

getSequence

public javax.jdo.datastore.Sequence getSequence(java.lang.String name)
Return the sequence associated to the name parameter. If no sequence is found, return null.

Parameters:
name - the fully qualified name of the sequence, i.e "packageName.sequenceName".

getMapper

public org.objectweb.jorm.api.PMapper getMapper()

setMapper

public void setMapper(org.objectweb.jorm.api.PMapper mapper)

getPMF

public ProxyManagerFactory getPMF()

setPMF

public void setPMF(ProxyManagerFactory pmf)