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
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Person, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected Stringan email that can be used to communicate with the person.protected StringThe given names for the person.protected OrganizationReferenceObject homeInstitute : .protected org.ivoa.dm.ivoa.StringIdentifierorcid id see https://orcid.org. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Personcreate a Person in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetEMail()Returns eMail Attribute.Returns fullName Attribute.Returns homeInstitute ReferencegetId()org.ivoa.dm.ivoa.StringIdentifierReturns orcidId Attribute.getXmlId()getter for XMLIDbooleanvoidSet eMail Attribute.voidsetFullName(String pFullName) Set fullName Attribute.voidsetHomeInstitute(Organization pHomeInstitute) Defines homeInstitute ReferencevoidsetOrcidId(org.ivoa.dm.ivoa.StringIdentifier pOrcidId) Set orcidId Attribute.voidvoidupdateUsing(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 -
homeInstitute
@VoDml(id="proposal:Person.homeInstitute", role=reference, type="proposal:Organization", typeRole=objectType) protected Organization homeInstituteReferenceObject homeInstitute : . ( 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
-
-
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:
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
-
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:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-