Class PersistentObjectIdResolver<E extends PersistentObject,​D extends GenericHibernateDao<E,​java.lang.Integer>,​S extends AbstractCrudService<E,​D>>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.logging.log4j.Logger LOG  
      protected S service  
      • Fields inherited from class com.fasterxml.jackson.annotation.SimpleObjectIdResolver

        _items
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected PersistentObjectIdResolver()
      Default Constructor that injects beans automatically.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void bindItem​(com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey id, java.lang.Object ob)  
      boolean canUseFor​(com.fasterxml.jackson.annotation.ObjectIdResolver resolverType)  
      S getService()  
      com.fasterxml.jackson.annotation.ObjectIdResolver newForDeserialization​(java.lang.Object context)  
      E resolveId​(com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey idKey)  
      abstract void setService​(S service)
      Has to be implemented by subclasses to autowire and set the correct service class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        protected final org.apache.logging.log4j.Logger LOG
    • Constructor Detail

      • PersistentObjectIdResolver

        protected PersistentObjectIdResolver()
        Default Constructor that injects beans automatically.
        Parameters:
        entityClass -
    • Method Detail

      • setService

        public abstract void setService​(S service)
        Has to be implemented by subclasses to autowire and set the correct service class.
        Parameters:
        service - the service to set
      • bindItem

        public void bindItem​(com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey id,
                             java.lang.Object ob)
        Specified by:
        bindItem in interface com.fasterxml.jackson.annotation.ObjectIdResolver
        Overrides:
        bindItem in class com.fasterxml.jackson.annotation.SimpleObjectIdResolver
      • resolveId

        public E resolveId​(com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey idKey)
        Specified by:
        resolveId in interface com.fasterxml.jackson.annotation.ObjectIdResolver
        Overrides:
        resolveId in class com.fasterxml.jackson.annotation.SimpleObjectIdResolver
      • canUseFor

        public boolean canUseFor​(com.fasterxml.jackson.annotation.ObjectIdResolver resolverType)
        Specified by:
        canUseFor in interface com.fasterxml.jackson.annotation.ObjectIdResolver
        Overrides:
        canUseFor in class com.fasterxml.jackson.annotation.SimpleObjectIdResolver
      • newForDeserialization

        public com.fasterxml.jackson.annotation.ObjectIdResolver newForDeserialization​(java.lang.Object context)
        Specified by:
        newForDeserialization in interface com.fasterxml.jackson.annotation.ObjectIdResolver
        Overrides:
        newForDeserialization in class com.fasterxml.jackson.annotation.SimpleObjectIdResolver
      • getService

        public S getService()
        Returns:
        the service