org.openxava.hibernate.impl
Class DefaultValueIdentifierGenerator

java.lang.Object
  extended by org.openxava.hibernate.impl.DefaultValueIdentifierGenerator
All Implemented Interfaces:
org.hibernate.id.Configurable, org.hibernate.id.IdentifierGenerator

public class DefaultValueIdentifierGenerator
extends java.lang.Object
implements org.hibernate.id.IdentifierGenerator, org.hibernate.id.Configurable

Executes the default-value-calculator for key properties.

Author:
Javier Paniza

Field Summary
 
Fields inherited from interface org.hibernate.id.IdentifierGenerator
ENTITY_NAME
 
Constructor Summary
DefaultValueIdentifierGenerator()
           
 
Method Summary
 void configure(org.hibernate.type.Type type, java.util.Properties params, org.hibernate.dialect.Dialect dialect)
           
 java.io.Serializable generate(org.hibernate.engine.SessionImplementor implementor, java.lang.Object object)
           
 java.lang.String getProperty()
           
static void setCurrentContainerKey(java.lang.Object containerKey)
           
static void setCurrentCounter(int counter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultValueIdentifierGenerator

public DefaultValueIdentifierGenerator()
Method Detail

generate

public java.io.Serializable generate(org.hibernate.engine.SessionImplementor implementor,
                                     java.lang.Object object)
                              throws org.hibernate.HibernateException
Specified by:
generate in interface org.hibernate.id.IdentifierGenerator
Throws:
org.hibernate.HibernateException

getProperty

public java.lang.String getProperty()

configure

public void configure(org.hibernate.type.Type type,
                      java.util.Properties params,
                      org.hibernate.dialect.Dialect dialect)
               throws org.hibernate.MappingException
Specified by:
configure in interface org.hibernate.id.Configurable
Throws:
org.hibernate.MappingException

setCurrentContainerKey

public static void setCurrentContainerKey(java.lang.Object containerKey)

setCurrentCounter

public static void setCurrentCounter(int counter)