Class EntityDelegator<T extends Identifiable>

  • Type Parameters:
    T - the type of entity being delegated

    public class EntityDelegator<T extends Identifiable>
    extends Object
    Bean to expose for remote access via AJAX, when all that is needed is the ID and a way to know what the class is.
    Author:
    Paul
    • Constructor Detail

      • EntityDelegator

        public EntityDelegator()
      • EntityDelegator

        public EntityDelegator​(T entity)
    • Method Detail

      • getClassDelegatingFor

        public String getClassDelegatingFor()
      • getId

        public Long getId()
      • setClassDelegatingFor

        public void setClassDelegatingFor​(String classDelegatingFor)
      • setId

        public void setId​(Long id)
      • holds

        public boolean holds​(Class<?> type)
        Check if the entity delegator holds the given type.