Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.util.jdbc
Class IDGenerator

java.lang.Object
  extended by org.hyperic.util.jdbc.IDGenerator

public class IDGenerator
extends java.lang.Object


Constructor Summary
IDGenerator(java.lang.String ctx, java.lang.String theSequenceName, int theSequenceInterval, java.lang.String theDSName)
          This constructor is for use inside an entity bean.
 
Method Summary
 long getNewID()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IDGenerator

public IDGenerator(java.lang.String ctx,
                   java.lang.String theSequenceName,
                   int theSequenceInterval,
                   java.lang.String theDSName)
This constructor is for use inside an entity bean.

Parameters:
ctx - The logging context to use
theSequenceName - name of the database sequence
theSequenceInterval - how many values we should grab at a time from the db
theDSName - the name of the data source used to connect to the db
Method Detail

getNewID

public long getNewID()
              throws ConfigPropertyException,
                     javax.naming.NamingException,
                     SequenceRetrievalException,
                     java.sql.SQLException
Throws:
ConfigPropertyException
javax.naming.NamingException
SequenceRetrievalException
java.sql.SQLException

Hyperic HQ Plugin API v. 4.4.0.2

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.