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.hibernate.id
Class ComboGenerator

    java.lang.Object
      org.hyperic.hibernate.id.ComboGenerator

All Implemented Interfaces:
  org.hibernate.id.Configurable, org.hibernate.id.IdentifierGenerator, org.hibernate.id.PersistentIdentifierGenerator

    public class ComboGenerator

extends java.lang.Object
implements org.hibernate.id.PersistentIdentifierGenerator, org.hibernate.id.Configurable

The ComboGenerator dispatches to either a sequence-based generator or a HQMultipleHiLoPerTableGenerator, depending on whether or not the DB supports sequences.

Field Summary

Fields inherited from interface org.hibernate.id.PersistentIdentifierGenerator
`CATALOG, PK, SCHEMA, SQL, TABLE, TABLES`

Fields inherited from interface org.hibernate.id.IdentifierGenerator
`ENTITY_NAME`

Constructor Summary
`ComboGenerator()`

Method Summary
`void` | `configure(org.hibernate.type.Type type, java.util.Properties params, org.hibernate.dialect.Dialect d)`
`java.io.Serializable` | `generate(org.hibernate.engine.SessionImplementor session, java.lang.Object object)`
`java.lang.Object` | `generatorKey()`
`java.lang.String[]` | `sqlCreateStrings(org.hibernate.dialect.Dialect dialect)`
`java.lang.String[]` | `sqlDropStrings(org.hibernate.dialect.Dialect dialect)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ComboGenerator

    public ComboGenerator()

Method Detail

### configure

    public void configure(org.hibernate.type.Type type,
                          java.util.Properties params,
                          org.hibernate.dialect.Dialect d)
                   throws org.hibernate.MappingException

  Specified by:
    `configure` in interface `org.hibernate.id.Configurable`
  Throws:
    `org.hibernate.MappingException`

### generatorKey

    public java.lang.Object generatorKey()

  Specified by:
    `generatorKey` in interface `org.hibernate.id.PersistentIdentifierGenerator`

### sqlCreateStrings

    public java.lang.String[] sqlCreateStrings(org.hibernate.dialect.Dialect dialect)
                                        throws org.hibernate.HibernateException

  Specified by:
    `sqlCreateStrings` in interface `org.hibernate.id.PersistentIdentifierGenerator`
  Throws:
    `org.hibernate.HibernateException`

### sqlDropStrings

    public java.lang.String[] sqlDropStrings(org.hibernate.dialect.Dialect dialect)
                                      throws org.hibernate.HibernateException

  Specified by:
    `sqlDropStrings` in interface `org.hibernate.id.PersistentIdentifierGenerator`
  Throws:
    `org.hibernate.HibernateException`

### generate

    public java.io.Serializable generate(org.hibernate.engine.SessionImplementor session,
                                         java.lang.Object object)
                                  throws org.hibernate.HibernateException

  Specified by:
    `generate` in interface `org.hibernate.id.IdentifierGenerator`
  Throws:
    `org.hibernate.HibernateException`

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.