com.fasterxml.jackson.databind.ser.impl
Class PropertyBasedObjectIdGenerator

java.lang.Object
  extended by com.fasterxml.jackson.annotation.ObjectIdGenerator<T>
      extended by com.fasterxml.jackson.annotation.ObjectIdGenerators.PropertyGenerator
          extended by com.fasterxml.jackson.databind.ser.impl.PropertyBasedObjectIdGenerator

public class PropertyBasedObjectIdGenerator
extends com.fasterxml.jackson.annotation.ObjectIdGenerators.PropertyGenerator


Nested Class Summary
 
Nested classes/interfaces inherited from class com.fasterxml.jackson.annotation.ObjectIdGenerator
com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey
 
Field Summary
protected  BeanPropertyWriter _property
           
 
Constructor Summary
protected PropertyBasedObjectIdGenerator(Class<?> scope, BeanPropertyWriter prop)
           
  PropertyBasedObjectIdGenerator(ObjectIdInfo oid, BeanPropertyWriter prop)
           
 
Method Summary
 com.fasterxml.jackson.annotation.ObjectIdGenerator<Object> forScope(Class<?> scope)
           
 Object generateId(Object forPojo)
           
 com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey key(Object key)
           
 com.fasterxml.jackson.annotation.ObjectIdGenerator<Object> newForSerialization(Object context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_property

protected final BeanPropertyWriter _property
Constructor Detail

PropertyBasedObjectIdGenerator

public PropertyBasedObjectIdGenerator(ObjectIdInfo oid,
                                      BeanPropertyWriter prop)

PropertyBasedObjectIdGenerator

protected PropertyBasedObjectIdGenerator(Class<?> scope,
                                         BeanPropertyWriter prop)
Method Detail

generateId

public Object generateId(Object forPojo)

forScope

public com.fasterxml.jackson.annotation.ObjectIdGenerator<Object> forScope(Class<?> scope)
Specified by:
forScope in class com.fasterxml.jackson.annotation.ObjectIdGenerator<Object>

newForSerialization

public com.fasterxml.jackson.annotation.ObjectIdGenerator<Object> newForSerialization(Object context)
Specified by:
newForSerialization in class com.fasterxml.jackson.annotation.ObjectIdGenerator<Object>

key

public com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey key(Object key)
Specified by:
key in class com.fasterxml.jackson.annotation.ObjectIdGenerator<Object>


Copyright © 2012 fasterxml.com. All Rights Reserved.