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 AttributeReturns fullName AttributeReturns homeInstitute ReferencegetId()
org.ivoa.dm.ivoa.StringIdentifier
Returns orcidId AttributegetXmlId()
getter for XMLIDboolean
void
jpaClone
(jakarta.persistence.EntityManager em) void
persistRefs
(jakarta.persistence.EntityManager _em) void
Defines eMail Attributevoid
setFullName
(String pFullName) Defines fullName Attributevoid
setHomeInstitute
(Organization pHomeInstitute) Defines homeInstitute Referencevoid
setOrcidId
(org.ivoa.dm.ivoa.StringIdentifier pOrcidId) Defines orcidId Attributevoid
void
updateUsing
(Person other) Update this object with the content of the given object.withFullName
(String pFullName) withOrcidId
(org.ivoa.dm.ivoa.StringIdentifier pOrcidId)
-
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
Defines fullName Attribute- Parameters:
pFullName
- value to set
-
withFullName
-
getEMail
Returns eMail Attribute- Returns:
- eMail Attribute
-
setEMail
Defines eMail Attribute- Parameters:
pEMail
- value to set
-
withEMail
-
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) Defines orcidId Attribute- Parameters:
pOrcidId
- value to set
-
withOrcidId
-
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
-
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
-