Package org.ivoa.dm.regtap
Class Role
java.lang.Object
org.ivoa.dm.regtap.Role
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="RegTAP:Role",
role=objectType)
public class Role
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Entities (persons or organizations) operating on re-
sources: creators, contacts, publishers, contributors.
objectType: Role
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder class for Role, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Long
inserted database keyprotected String
The role played by this entity; this is one of contact, publisher, contributor, or creator.protected String
An email address the entity can be reached at.protected String
URL pointing to a graphical logo, which may be used to help identify the entity.protected String
An IVOA identifier of a person or organization.protected String
The ivoa:real-world name or title of a person or organization.protected String
A mailing address for a person or organization.protected String
A telephone number the entity can be reached at. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Role
create a Role in functional builder style.void
delete
(jakarta.persistence.EntityManager em) void
Returns base_role Attribute.getEmail()
Returns email Attribute.getId()
getLogo()
Returns logo Attribute.Returns role_ivoid Attribute.Returns role_name Attribute.Returns street_address Attribute.Returns telephone Attribute.void
setBase_role
(String pBase_role) Set base_role Attribute.void
Set email Attribute.void
Set logo Attribute.void
setRole_ivoid
(String pRole_ivoid) Set role_ivoid Attribute.void
setRole_name
(String pRole_name) Set role_name Attribute.void
setStreet_address
(String pStreet_address) Set street_address Attribute.void
setTelephone
(String pTelephone) Set telephone Attribute.void
updateUsing
(Role other) Update this object with the content of the given object.withBase_role
(String pBase_role) fluent setter for base_role Attribute.fluent setter for email Attribute.fluent setter for logo Attribute.withRole_ivoid
(String pRole_ivoid) fluent setter for role_ivoid Attribute.withRole_name
(String pRole_name) fluent setter for role_name Attribute.withStreet_address
(String pStreet_address) fluent setter for street_address Attribute.withTelephone
(String pTelephone) fluent setter for telephone Attribute.
-
Field Details
-
_id
inserted database key -
role_name
@VoDml(id="RegTAP:Role.role_name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String role_nameThe ivoa:real-world name or title of a person or organization. : Attribute role_name : multiplicity 1 -
role_ivoid
@VoDml(id="RegTAP:Role.role_ivoid", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String role_ivoidAn IVOA identifier of a person or organization. : Attribute role_ivoid : multiplicity 1 -
street_address
@VoDml(id="RegTAP:Role.street_address", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String street_addressA mailing address for a person or organization. : Attribute street_address : multiplicity 0..1 -
email
@VoDml(id="RegTAP:Role.email", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String emailAn email address the entity can be reached at. : Attribute email : multiplicity 0..1 -
telephone
@VoDml(id="RegTAP:Role.telephone", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String telephoneA telephone number the entity can be reached at. : Attribute telephone : multiplicity 0..1 -
logo
@VoDml(id="RegTAP:Role.logo", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String logoURL pointing to a graphical logo, which may be used to help identify the entity. : Attribute logo : multiplicity 0..1 -
base_role
@VoDml(id="RegTAP:Role.base_role", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String base_roleThe role played by this entity; this is one of contact, publisher, contributor, or creator. : Attribute base_role : multiplicity 1
-
-
Constructor Details
-
Role
public Role()Creates a new Role -
Role
public Role(String role_name, String role_ivoid, String street_address, String email, String telephone, String logo, String base_role) full parameter constructor.- Parameters:
role_name
- The ivoa:real-world name or title of a person or organization.role_ivoid
- An IVOA identifier of a person or organization.street_address
- A mailing address for a person or organization.email
- An email address the entity can be reached at.telephone
- A telephone number the entity can be reached at.logo
- URL pointing to a graphical logo, which may be used to help identify the entity.base_role
- The role played by this entity; this is one of contact, publisher, contributor, or creator.
-
Role
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
-
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.
-
getRole_name
Returns role_name Attribute.- Returns:
- role_name Attribute
-
setRole_name
Set role_name Attribute.- Parameters:
pRole_name
- value to set
-
withRole_name
fluent setter for role_name Attribute.- Parameters:
pRole_name
- value to set- Returns:
- Role
-
getRole_ivoid
Returns role_ivoid Attribute.- Returns:
- role_ivoid Attribute
-
setRole_ivoid
Set role_ivoid Attribute.- Parameters:
pRole_ivoid
- value to set
-
withRole_ivoid
fluent setter for role_ivoid Attribute.- Parameters:
pRole_ivoid
- value to set- Returns:
- Role
-
getStreet_address
Returns street_address Attribute.- Returns:
- street_address Attribute
-
setStreet_address
Set street_address Attribute.- Parameters:
pStreet_address
- value to set
-
withStreet_address
fluent setter for street_address Attribute.- Parameters:
pStreet_address
- value to set- Returns:
- Role
-
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:
- Role
-
getTelephone
Returns telephone Attribute.- Returns:
- telephone Attribute
-
setTelephone
Set telephone Attribute.- Parameters:
pTelephone
- value to set
-
withTelephone
fluent setter for telephone Attribute.- Parameters:
pTelephone
- value to set- Returns:
- Role
-
getLogo
Returns logo Attribute.- Returns:
- logo Attribute
-
setLogo
Set logo Attribute.- Parameters:
pLogo
- value to set
-
withLogo
fluent setter for logo Attribute.- Parameters:
pLogo
- value to set- Returns:
- Role
-
getBase_role
Returns base_role Attribute.- Returns:
- base_role Attribute
-
setBase_role
Set base_role Attribute.- Parameters:
pBase_role
- value to set
-
withBase_role
fluent setter for base_role Attribute.- Parameters:
pBase_role
- value to set- Returns:
- Role
-
createRole
create a Role 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
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
delete
in interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-