IDGenerator (Hyperic HQ Plugin API)
Keywords: org.hyperic.util.jdbc.IDGenerator class

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hyperic.util.jdbc
Class IDGenerator

    java.lang.Object
      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`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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