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
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Organization, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected String.protected org.ivoa.dm.ivoa.Ivoidthe registry identifier for the organization.protected StringThe name of the organization.protected WikiDataIdthe wikidata id for the Organization. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new OrganizationOrganization(String name, String address, org.ivoa.dm.ivoa.Ivoid 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 Organizationcreate a Organization in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns address Attribute.getId()org.ivoa.dm.ivoa.IvoidgetIvoid()Returns ivoid Attribute.getName()Returns name Attribute.Returns wikiId Attribute.getXmlId()getter for XMLIDbooleanvoidsetAddress(String pAddress) Set address Attribute.voidsetIvoid(org.ivoa.dm.ivoa.Ivoid pIvoid) Set ivoid Attribute.voidSet name Attribute.voidsetWikiId(WikiDataId pWikiId) Set wikiId Attribute.voidvoidupdates any cloned references that are contained within the hierarchy.voidupdateUsing(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.Ivoid 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:ivoid", typeRole=primitiveType) protected org.ivoa.dm.ivoa.Ivoid 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:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
- the id
-
getXmlId
getter for XMLID- Specified by:
getXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
setXmlId
- Specified by:
setXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
hasNaturalKey
public boolean hasNaturalKey()- Specified by:
hasNaturalKeyin 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.Ivoid getIvoid()Returns ivoid Attribute.- Returns:
- ivoid Attribute
-
setIvoid
public void setIvoid(org.ivoa.dm.ivoa.Ivoid 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:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-