Class Organization

java.lang.Object
org.ivoa.dm.proposal.prop.Organization
All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement, org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Direct Known Subclasses:
Observatory

@Entity @VoDml(id="proposal:Organization", role=objectType) public class Organization extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
An institution that is a collection of people. objectType: Organization
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • name

      @VoDml(id="proposal:Organization.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String name
      The name of the organization. : Attribute name : multiplicity 1
    • address

      @VoDml(id="proposal:Organization.address", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String address
      . : Attribute address : multiplicity 1
    • ivoid

      @VoDml(id="proposal:Organization.ivoid", role=attribute, type="ivoa:ivorn", typeRole=primitiveType) protected org.ivoa.dm.ivoa.Ivorn ivoid
      the registry identifier for the organization. : Attribute ivoid : multiplicity 0..1
    • wikiId

      @VoDml(id="proposal:Organization.wikiId", role=attribute, type="proposal:WikiDataId", typeRole=primitiveType) protected WikiDataId wikiId
      the wikidata id for the Organization. : Attribute wikiId : multiplicity 0..1
  • Constructor Details

    • Organization

      public Organization()
      Creates a new Organization
    • Organization

      public Organization(String name, String address, org.ivoa.dm.ivoa.Ivorn ivoid, WikiDataId wikiId)
      full parameter constructor.
      Parameters:
      name - The name of the organization.
      address - .
      ivoid - the registry identifier for the organization.
      wikiId - the wikidata id for the Organization.
    • Organization

      public Organization(Organization 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
    • getXmlId

      public String getXmlId()
      getter for XMLID
      Specified by:
      getXmlId in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • setXmlId

      public void setXmlId(String id)
      Specified by:
      setXmlId in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • hasNaturalKey

      public boolean hasNaturalKey()
      Specified by:
      hasNaturalKey in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • copyMe

      public Organization copyMe()
      make a clone of the object taking into account current polymorhic type.
      Returns:
      the cloned object.
    • updateClonedReferences

      public void updateClonedReferences()
      updates any cloned references that are contained within the hierarchy.
    • updateUsing

      public void updateUsing(Organization 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.
    • getName

      public String getName()
      Returns name Attribute.
      Returns:
      name Attribute
    • setName

      public void setName(String pName)
      Set name Attribute.
      Parameters:
      pName - value to set
    • withName

      public Organization withName(String pName)
      fluent setter for name Attribute.
      Parameters:
      pName - value to set
      Returns:
      Organization
    • getAddress

      public String getAddress()
      Returns address Attribute.
      Returns:
      address Attribute
    • setAddress

      public void setAddress(String pAddress)
      Set address Attribute.
      Parameters:
      pAddress - value to set
    • withAddress

      public Organization withAddress(String pAddress)
      fluent setter for address Attribute.
      Parameters:
      pAddress - value to set
      Returns:
      Organization
    • getIvoid

      public org.ivoa.dm.ivoa.Ivorn getIvoid()
      Returns ivoid Attribute.
      Returns:
      ivoid Attribute
    • setIvoid

      public void setIvoid(org.ivoa.dm.ivoa.Ivorn pIvoid)
      Set ivoid Attribute.
      Parameters:
      pIvoid - value to set
    • withIvoid

      public Organization withIvoid(org.ivoa.dm.ivoa.Ivorn pIvoid)
      fluent setter for ivoid Attribute.
      Parameters:
      pIvoid - value to set
      Returns:
      Organization
    • getWikiId

      public WikiDataId getWikiId()
      Returns wikiId Attribute.
      Returns:
      wikiId Attribute
    • setWikiId

      public void setWikiId(WikiDataId pWikiId)
      Set wikiId Attribute.
      Parameters:
      pWikiId - value to set
    • withWikiId

      public Organization withWikiId(WikiDataId pWikiId)
      fluent setter for wikiId Attribute.
      Parameters:
      pWikiId - value to set
      Returns:
      Organization
    • createOrganization

      public static Organization createOrganization(Consumer<Organization.OrganizationBuilder> f)
      create a Organization 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
    • persistRefs

      @Deprecated public void persistRefs(jakarta.persistence.EntityManager _em)
      Deprecated.
      generally better to use the model level reference persistence as only this can deal with "contained" references properly.
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations