Package org.ivoa.dm.proposal.prop
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for Organization, mainly for use in the functional builder pattern. -
Field Summary
Modifier and TypeFieldDescriptionprotected Long
inserted database keyprotected String
.protected org.ivoa.dm.ivoa.Ivorn
the registry identifier for the organization.protected String
The name of the organization.protected WikiDataId
the wikidata id for the Organization. -
Constructor Summary
ConstructorDescriptionCreates a new OrganizationOrganization
(String name, String address, org.ivoa.dm.ivoa.Ivorn ivoid, WikiDataId wikiId) full parameter constructor.Organization
(Organization other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()
static Organization
create a Organization in functional builder style.void
Returns address AttributegetId()
org.ivoa.dm.ivoa.Ivorn
getIvoid()
Returns ivoid AttributegetName()
Returns name AttributeReturns wikiId AttributegetXmlId()
getter for XMLIDboolean
void
jpaClone
(jakarta.persistence.EntityManager em) void
persistRefs
(jakarta.persistence.EntityManager _em) void
setAddress
(String pAddress) Defines address Attributevoid
setIvoid
(org.ivoa.dm.ivoa.Ivorn pIvoid) Defines ivoid Attributevoid
Defines name Attributevoid
setWikiId
(WikiDataId pWikiId) Defines wikiId Attributevoid
void
updates any cloned references that are contained within the hierarchy.void
updateUsing
(Organization other) Update this object with the content of the given object.withAddress
(String pAddress) withIvoid
(org.ivoa.dm.ivoa.Ivorn pIvoid) withWikiId
(WikiDataId pWikiId)
-
Field Details
-
_id
inserted database key -
name
@VoDml(id="proposal:Organization.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String nameThe 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 ivoidthe 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 wikiIdthe wikidata id for the Organization. : Attribute wikiId : multiplicity 0..1
-
-
Constructor Details
-
Organization
public Organization()Creates a new Organization -
Organization
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
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other
- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Returns:
- the id
-
getXmlId
getter for XMLID- Specified by:
getXmlId
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
setXmlId
- Specified by:
setXmlId
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
hasNaturalKey
public boolean hasNaturalKey()- Specified by:
hasNaturalKey
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
copyMe
-
updateClonedReferences
public void updateClonedReferences()updates any cloned references that are contained within the hierarchy. -
updateUsing
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
Returns name Attribute- Returns:
- name Attribute
-
setName
Defines name Attribute- Parameters:
pName
- value to set
-
withName
-
getAddress
Returns address Attribute- Returns:
- address Attribute
-
setAddress
Defines address Attribute- Parameters:
pAddress
- value to set
-
withAddress
-
getIvoid
public org.ivoa.dm.ivoa.Ivorn getIvoid()Returns ivoid Attribute- Returns:
- ivoid Attribute
-
setIvoid
public void setIvoid(org.ivoa.dm.ivoa.Ivorn pIvoid) Defines ivoid Attribute- Parameters:
pIvoid
- value to set
-
withIvoid
-
getWikiId
Returns wikiId Attribute- Returns:
- wikiId Attribute
-
setWikiId
Defines wikiId Attribute- Parameters:
pWikiId
- value to set
-
withWikiId
-
createOrganization
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 interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
jpaClone
public void jpaClone(jakarta.persistence.EntityManager em) - Specified by:
jpaClone
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
persistRefs
public void persistRefs(jakarta.persistence.EntityManager _em) - Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-