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
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • res_subject

      @VoDml(id="RegTAP:Subject.res_subject", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String res_subject
      Topics, object types, or other descriptive keywords about the resource. : Attribute res_subject : multiplicity 1
  • Constructor Details

    • Subject

      public Subject()
      Creates a new Subject
    • Subject

      public Subject(String res_subject)
      full parameter constructor.
      Parameters:
      res_subject - Topics, object types, or other descriptive keywords about the resource.
    • Subject

      public Subject(Subject other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • updateUsing

      public void updateUsing(Subject other)
      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

      public String getRes_subject()
      Returns res_subject Attribute.
      Returns:
      res_subject Attribute
    • setRes_subject

      public void setRes_subject(String pRes_subject)
      Set res_subject Attribute.
      Parameters:
      pRes_subject - value to set
    • withRes_subject

      public Subject withRes_subject(String pRes_subject)
      fluent setter for res_subject Attribute.
      Parameters:
      pRes_subject - value to set
      Returns:
      Subject
    • createSubject

      public static Subject createSubject(Consumer<Subject.SubjectBuilder> f)
      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 interface org.ivoa.vodml.jpa.JPAManipulations
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>