Package org.ivoa.dm.regtap
Class Subject
java.lang.Object
org.ivoa.dm.regtap.Subject
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="RegTAP:Subject",
role=objectType)
public class Subject
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Topics, object types, or other descriptive keywords about the resource.
objectType: Subject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder class for Subject, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Subject
create a Subject in functional builder style.void
delete
(jakarta.persistence.EntityManager em) void
getId()
Returns res_subject Attribute.void
setRes_subject
(String pRes_subject) Set res_subject Attribute.void
updateUsing
(Subject other) Update this object with the content of the given object.withRes_subject
(String pRes_subject) fluent setter for res_subject Attribute.
-
Field Details
-
_id
inserted database key -
res_subject
@VoDml(id="RegTAP:Subject.res_subject", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String res_subjectTopics, object types, or other descriptive keywords about the resource. : Attribute res_subject : multiplicity 1
-
-
Constructor Details
-
Subject
public Subject()Creates a new Subject -
Subject
full parameter constructor.- Parameters:
res_subject
- Topics, object types, or other descriptive keywords about the resource.
-
Subject
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.
-
getRes_subject
Returns res_subject Attribute.- Returns:
- res_subject Attribute
-
setRes_subject
Set res_subject Attribute.- Parameters:
pRes_subject
- value to set
-
withRes_subject
fluent setter for res_subject Attribute.- Parameters:
pRes_subject
- value to set- Returns:
- Subject
-
createSubject
create a Subject 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>
-