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()
make a clone of the object taking into account current polymorhic type.static Organization
create a Organization in functional builder style.void
Returns address Attribute.getId()
org.ivoa.dm.ivoa.Ivorn
getIvoid()
Returns ivoid Attribute.getName()
Returns name Attribute.Returns wikiId Attribute.getXmlId()
getter for XMLIDboolean
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.void
setAddress
(String pAddress) Set address Attribute.void
setIvoid
(org.ivoa.dm.ivoa.Ivorn pIvoid) Set ivoid Attribute.void
Set name Attribute.void
setWikiId
(WikiDataId pWikiId) Set wikiId Attribute.void
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) fluent setter for address Attribute.withIvoid
(org.ivoa.dm.ivoa.Ivorn pIvoid) fluent setter for ivoid Attribute.fluent setter for name Attribute.withWikiId
(WikiDataId pWikiId) fluent setter for wikiId Attribute.
-
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
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
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
Set name Attribute.- Parameters:
pName
- value to set
-
withName
fluent setter for name Attribute.- Parameters:
pName
- value to set- Returns:
- Organization
-
getAddress
Returns address Attribute.- Returns:
- address Attribute
-
setAddress
Set address Attribute.- Parameters:
pAddress
- value to set
-
withAddress
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
fluent setter for ivoid Attribute.- Parameters:
pIvoid
- value to set- Returns:
- Organization
-
getWikiId
Returns wikiId Attribute.- Returns:
- wikiId Attribute
-
setWikiId
Set wikiId Attribute.- Parameters:
pWikiId
- value to set
-
withWikiId
fluent setter for wikiId Attribute.- Parameters:
pWikiId
- value to set- Returns:
- Organization
-
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
-
persistRefs
Deprecated.generally better to use the model level reference persistence as only this can deal with "contained" references properly.- Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-