Package org.ivoa.dm.proposal.prop
Class Person
java.lang.Object
org.ivoa.dm.proposal.prop.Person
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement
,org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposal:Person",
role=objectType)
public class Person
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
person connected with the proposal.
objectType: Person
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for Person, mainly for use in the functional builder pattern. -
Field Summary
Modifier and TypeFieldDescriptionprotected Long
inserted database keyprotected String
an email that can be used to communicate with the person.protected String
The given names for the person.protected Organization
ReferenceObject homeInstitute : .protected org.ivoa.dm.ivoa.StringIdentifier
orcid id see https://orcid.org. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Person
create a Person in functional builder style.void
getEMail()
Returns eMail Attribute.Returns fullName Attribute.Returns homeInstitute ReferencegetId()
org.ivoa.dm.ivoa.StringIdentifier
Returns orcidId 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
Set eMail Attribute.void
setFullName
(String pFullName) Set fullName Attribute.void
setHomeInstitute
(Organization pHomeInstitute) Defines homeInstitute Referencevoid
setOrcidId
(org.ivoa.dm.ivoa.StringIdentifier pOrcidId) Set orcidId Attribute.void
void
updateUsing
(Person other) Update this object with the content of the given object.fluent setter for eMail Attribute.withFullName
(String pFullName) fluent setter for fullName Attribute.withOrcidId
(org.ivoa.dm.ivoa.StringIdentifier pOrcidId) fluent setter for orcidId Attribute.
-
Field Details
-
_id
inserted database key -
fullName
@VoDml(id="proposal:Person.fullName", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String fullNameThe given names for the person. : Attribute fullName : multiplicity 1 -
eMail
@VoDml(id="proposal:Person.eMail", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String eMailan email that can be used to communicate with the person. : Attribute eMail : multiplicity 1 -
orcidId
@VoDml(id="proposal:Person.orcidId", role=attribute, type="ivoa:stringIdentifier", typeRole=primitiveType) protected org.ivoa.dm.ivoa.StringIdentifier orcidIdorcid id see https://orcid.org. : Attribute orcidId : multiplicity 0..1 -
homeInstitute
@VoDml(id="proposal:Person.homeInstitute", role=reference, type="proposal:Organization", typeRole=objectType) protected Organization homeInstituteReferenceObject homeInstitute : . ( Multiplicity : 1 )
-
-
Constructor Details
-
Person
public Person()Creates a new Person -
Person
public Person(String fullName, String eMail, Organization homeInstitute, org.ivoa.dm.ivoa.StringIdentifier orcidId) full parameter constructor.- Parameters:
fullName
- The given names for the person.eMail
- an email that can be used to communicate with the person.homeInstitute
- .orcidId
- orcid id see https://orcid.org.
-
Person
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
-
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.
-
getFullName
Returns fullName Attribute.- Returns:
- fullName Attribute
-
setFullName
Set fullName Attribute.- Parameters:
pFullName
- value to set
-
withFullName
fluent setter for fullName Attribute.- Parameters:
pFullName
- value to set- Returns:
- Person
-
getEMail
Returns eMail Attribute.- Returns:
- eMail Attribute
-
setEMail
Set eMail Attribute.- Parameters:
pEMail
- value to set
-
withEMail
fluent setter for eMail Attribute.- Parameters:
pEMail
- value to set- Returns:
- Person
-
getHomeInstitute
Returns homeInstitute Reference- Returns:
- homeInstitute Reference
-
setHomeInstitute
Defines homeInstitute Reference- Parameters:
pHomeInstitute
- reference to set
-
getOrcidId
public org.ivoa.dm.ivoa.StringIdentifier getOrcidId()Returns orcidId Attribute.- Returns:
- orcidId Attribute
-
setOrcidId
public void setOrcidId(org.ivoa.dm.ivoa.StringIdentifier pOrcidId) Set orcidId Attribute.- Parameters:
pOrcidId
- value to set
-
withOrcidId
fluent setter for orcidId Attribute.- Parameters:
pOrcidId
- value to set- Returns:
- Person
-
createPerson
create a Person 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
-