Class Role

java.lang.Object
org.ivoa.dm.regtap.Role
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="RegTAP:Role", role=objectType) public class Role extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Entities (persons or organizations) operating on re- sources: creators, contacts, publishers, contributors. objectType: Role
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • role_name

      @VoDml(id="RegTAP:Role.role_name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String role_name
      The ivoa:real-world name or title of a person or organization. : Attribute role_name : multiplicity 1
    • role_ivoid

      @VoDml(id="RegTAP:Role.role_ivoid", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String role_ivoid
      An IVOA identifier of a person or organization. : Attribute role_ivoid : multiplicity 1
    • street_address

      @VoDml(id="RegTAP:Role.street_address", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String street_address
      A mailing address for a person or organization. : Attribute street_address : multiplicity 0..1
    • email

      @VoDml(id="RegTAP:Role.email", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String email
      An email address the entity can be reached at. : Attribute email : multiplicity 0..1
    • telephone

      @VoDml(id="RegTAP:Role.telephone", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String telephone
      A telephone number the entity can be reached at. : Attribute telephone : multiplicity 0..1
    • base_role

      @VoDml(id="RegTAP:Role.base_role", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String base_role
      The role played by this entity; this is one of contact, publisher, contributor, or creator. : Attribute base_role : multiplicity 1
  • Constructor Details

    • Role

      public Role()
      Creates a new Role
    • Role

      public Role(String role_name, String role_ivoid, String street_address, String email, String telephone, String logo, String base_role)
      full parameter constructor.
      Parameters:
      role_name - The ivoa:real-world name or title of a person or organization.
      role_ivoid - An IVOA identifier of a person or organization.
      street_address - A mailing address for a person or organization.
      email - An email address the entity can be reached at.
      telephone - A telephone number the entity can be reached at.
      logo - URL pointing to a graphical logo, which may be used to help identify the entity.
      base_role - The role played by this entity; this is one of contact, publisher, contributor, or creator.
    • Role

      public Role(Role other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • updateUsing

      public void updateUsing(Role other)
      Update this object with the content of the given object. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • getRole_name

      public String getRole_name()
      Returns role_name Attribute.
      Returns:
      role_name Attribute
    • setRole_name

      public void setRole_name(String pRole_name)
      Set role_name Attribute.
      Parameters:
      pRole_name - value to set
    • withRole_name

      public Role withRole_name(String pRole_name)
      fluent setter for role_name Attribute.
      Parameters:
      pRole_name - value to set
      Returns:
      Role
    • getRole_ivoid

      public String getRole_ivoid()
      Returns role_ivoid Attribute.
      Returns:
      role_ivoid Attribute
    • setRole_ivoid

      public void setRole_ivoid(String pRole_ivoid)
      Set role_ivoid Attribute.
      Parameters:
      pRole_ivoid - value to set
    • withRole_ivoid

      public Role withRole_ivoid(String pRole_ivoid)
      fluent setter for role_ivoid Attribute.
      Parameters:
      pRole_ivoid - value to set
      Returns:
      Role
    • getStreet_address

      public String getStreet_address()
      Returns street_address Attribute.
      Returns:
      street_address Attribute
    • setStreet_address

      public void setStreet_address(String pStreet_address)
      Set street_address Attribute.
      Parameters:
      pStreet_address - value to set
    • withStreet_address

      public Role withStreet_address(String pStreet_address)
      fluent setter for street_address Attribute.
      Parameters:
      pStreet_address - value to set
      Returns:
      Role
    • getEmail

      public String getEmail()
      Returns email Attribute.
      Returns:
      email Attribute
    • setEmail

      public void setEmail(String pEmail)
      Set email Attribute.
      Parameters:
      pEmail - value to set
    • withEmail

      public Role withEmail(String pEmail)
      fluent setter for email Attribute.
      Parameters:
      pEmail - value to set
      Returns:
      Role
    • getTelephone

      public String getTelephone()
      Returns telephone Attribute.
      Returns:
      telephone Attribute
    • setTelephone

      public void setTelephone(String pTelephone)
      Set telephone Attribute.
      Parameters:
      pTelephone - value to set
    • withTelephone

      public Role withTelephone(String pTelephone)
      fluent setter for telephone Attribute.
      Parameters:
      pTelephone - value to set
      Returns:
      Role
    • getLogo

      public String getLogo()
      Returns logo Attribute.
      Returns:
      logo Attribute
    • setLogo

      public void setLogo(String pLogo)
      Set logo Attribute.
      Parameters:
      pLogo - value to set
    • withLogo

      public Role withLogo(String pLogo)
      fluent setter for logo Attribute.
      Parameters:
      pLogo - value to set
      Returns:
      Role
    • getBase_role

      public String getBase_role()
      Returns base_role Attribute.
      Returns:
      base_role Attribute
    • setBase_role

      public void setBase_role(String pBase_role)
      Set base_role Attribute.
      Parameters:
      pBase_role - value to set
    • withBase_role

      public Role withBase_role(String pBase_role)
      fluent setter for base_role Attribute.
      Parameters:
      pBase_role - value to set
      Returns:
      Role
    • createRole

      public static Role createRole(Consumer<Role.RoleBuilder> f)
      create a Role in functional builder style.
      Parameters:
      f - the functional builder.
      Returns:
      an object initialized from the builder.
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>