org.hibernate.mapping
Class Component.StandardGenerationContextLocator

java.lang.Object
  extended by org.hibernate.mapping.Component.StandardGenerationContextLocator
All Implemented Interfaces:
CompositeNestedGeneratedValueGenerator.GenerationContextLocator
Enclosing class:
Component

public static class Component.StandardGenerationContextLocator
extends java.lang.Object
implements CompositeNestedGeneratedValueGenerator.GenerationContextLocator


Constructor Summary
Component.StandardGenerationContextLocator(java.lang.String entityName)
           
 
Method Summary
 java.io.Serializable locateGenerationContext(SessionImplementor session, java.lang.Object incomingObject)
          Given the incoming object, determine the context for injecting back its generated id sub-values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Component.StandardGenerationContextLocator

public Component.StandardGenerationContextLocator(java.lang.String entityName)
Method Detail

locateGenerationContext

public java.io.Serializable locateGenerationContext(SessionImplementor session,
                                                    java.lang.Object incomingObject)
Description copied from interface: CompositeNestedGeneratedValueGenerator.GenerationContextLocator
Given the incoming object, determine the context for injecting back its generated id sub-values.

Specified by:
locateGenerationContext in interface CompositeNestedGeneratedValueGenerator.GenerationContextLocator
Parameters:
session - The current session
incomingObject - The entity for which we are generating id
Returns:
The injection context


Copyright © 2012. All Rights Reserved.