Interface IdentitySerializationInfo<T>

All Known Implementing Classes:
AbstractIdentitySerializationInfo, PropertyIdentitySerializationInfo

public interface IdentitySerializationInfo<T>
Contains identity informations for serialization process.
Version:
$Id: $
Author:
Nicolas Morel
  • Method Details

    • isAlwaysAsId

      boolean isAlwaysAsId()

      isAlwaysAsId

      Returns:
      true if we should always serialize the bean as an identifier even if it has not been seralized yet
    • isProperty

      boolean isProperty()

      isProperty

      Returns:
      true if the identifier is also a property of the bean
    • getPropertyName

      java.lang.String getPropertyName()

      getPropertyName

      Returns:
      name of the identifier property
    • getObjectId

      ObjectIdSerializer<?> getObjectId​(T bean, JsonSerializationContext ctx)

      getObjectId

      Parameters:
      bean - a T object.
      ctx - a JsonSerializationContext object.
      Returns:
      a ObjectIdSerializer object.