Class Website

java.lang.Object
nl.vpro.domain.media.Website
All Implemented Interfaces:
Serializable, Supplier<String>, Identifiable<Long>, nl.vpro.domain.media.support.MutableOwnable, nl.vpro.domain.media.support.Ownable, Updatable<Website>, UpdatableIdentifiable<Long,Website>

@Entity public class Website extends Object implements UpdatableIdentifiable<Long,Website>, Serializable, Supplier<String>, nl.vpro.domain.media.support.MutableOwnable
See Also:
  • Constructor Details

    • Website

      public Website()
    • Website

      public Website(String url)
    • Website

      public Website(String url, nl.vpro.domain.media.support.OwnerType owner)
    • Website

      public Website(Website source)
  • Method Details

    • copy

      public static Website copy(Website source)
    • getId

      public Long getId()
      Specified by:
      getId in interface Identifiable<Long>
    • setId

      public void setId(Long id)
      Under normal operation this should not be used!

      While testing it sometimes comes in handy to be able to set an Id to simulate a persisted object.

      Parameters:
      id -
    • update

      public void update(Website from)
      Description copied from interface: Updatable
      Copies all fields from argument
      Specified by:
      update in interface Updatable<Website>
    • equals

      public boolean equals(Object object)
      Checks for database identity or object identity if one side of the comparison can not supply a database identity. It is advised to override this method with a more accurate test which should not rely on database identity. You can rely on this criterion when equality can not be deducted programmatic and a real and final check is in need of human interaction. In essence this check then states that two objects are supposed to be different if they can't supply the same database Id.
      Overrides:
      equals in class Object
      Parameters:
      object - the object to compare with
      Returns:
      true if both objects are equal
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • get

      public String get()
      Specified by:
      get in interface Supplier<String>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • getOwner

      public nl.vpro.domain.media.support.OwnerType getOwner()
      Specified by:
      getOwner in interface nl.vpro.domain.media.support.Ownable
    • setOwner

      public void setOwner(nl.vpro.domain.media.support.OwnerType owner)
      Specified by:
      setOwner in interface nl.vpro.domain.media.support.MutableOwnable