Interface EntityContext<T>

Type Parameters:
T -
All Known Implementing Classes:
EntityContextImpl

public interface EntityContext<T>
Interface for associating metadata with entities. We could replace with with Jena EnhGraph
Author:
raven
  • Method Details

    • get

      Map<String,Object> get(Object entity)
    • getOrCreate

      Map<String,Object> getOrCreate(T entity)
    • register

      Map<String,Object> register(T entity)
    • getState

      Map<String,Object> getState(Object entity)
      Parameters:
      entity -
      Returns:
    • isManaged

      boolean isManaged(Object entity)
    • setAttribute

      void setAttribute(T entity, String attribute, Object value)
      getsOrCreates an entity and sets an attribute
      Parameters:
      entity -
      attribute -
      value -
    • getAttribute

      <X> X getAttribute(Object entity, String attribute, X defaultValue)