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 classA builder class for Subject, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Subjectcreate a Subject in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()Returns res_subject Attribute.voidsetRes_subject(String pRes_subject) Set res_subject Attribute.voidupdateUsing(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:
getIdin 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:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-