com.beasys.commerce.util
Class SequencerFactory

java.lang.Object
  extended by com.beasys.commerce.util.SequencerFactory

Deprecated Use SequencerFactory

@Deprecated
public class SequencerFactory
extends Object

This class implements the Singleton design pattern for obtaining database sequencers. A single instance of a Sequencer exists for a given sequence name.


Constructor Summary
SequencerFactory()
          Deprecated  
 
Method Summary
static Sequencer createSequencer(String sequenceName)
          Deprecated Returns the singleton sequencer for the given sequence name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequencerFactory

public SequencerFactory()
Deprecated 
Method Detail

createSequencer

public static Sequencer createSequencer(String sequenceName)
Deprecated 
Returns the singleton sequencer for the given sequence name. The method uses the design pattern that reduces contention and synchronization overhead.

Parameters
sequenceName - database sequence name
Returns
singleton Sequencer


Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.