Class Schema

java.lang.Object
org.ivoa.dm.regtap.Schema
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="RegTAP:Schema", role=objectType) public class Schema extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Sets of tables related to resources. objectType: Schema
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • schema_index

      @VoDml(id="RegTAP:Schema.schema_index", role=attribute, type="ivoa:nonnegativeInteger", typeRole=primitiveType) protected Integer schema_index
      An arbitrary identifier for the res_schema rows belonging to a resource. : Attribute schema_index : multiplicity 1
    • schema_description

      @VoDml(id="RegTAP:Schema.schema_description", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String schema_description
      A free text description of the tableset explaining in general how all of the tables are related. : Attribute schema_description : multiplicity 0..1
    • schema_name

      @VoDml(id="RegTAP:Schema.schema_name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String schema_name
      A name for the set of tables. : Attribute schema_name : multiplicity 1
    • schema_title

      @VoDml(id="RegTAP:Schema.schema_title", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String schema_title
      A descriptive, human-interpretable name for the table set. : Attribute schema_title : multiplicity 0..1
    • schema_utype

      @VoDml(id="RegTAP:Schema.schema_utype", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String schema_utype
      An identifier for a concept in a data model that the data in this schema as a whole represent. : Attribute schema_utype : multiplicity 0..1
  • Constructor Details

    • Schema

      public Schema()
      Creates a new Schema
    • Schema

      public Schema(Integer schema_index, String schema_description, String schema_name, String schema_title, String schema_utype)
      full parameter constructor.
      Parameters:
      schema_index - An arbitrary identifier for the res_schema rows belonging to a resource.
      schema_description - A free text description of the tableset explaining in general how all of the tables are related.
      schema_name - A name for the set of tables.
      schema_title - A descriptive, human-interpretable name for the table set.
      schema_utype - An identifier for a concept in a data model that the data in this schema as a whole represent.
    • Schema

      public Schema(Schema 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(Schema 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.
    • getSchema_index

      public Integer getSchema_index()
      Returns schema_index Attribute.
      Returns:
      schema_index Attribute
    • setSchema_index

      public void setSchema_index(Integer pSchema_index)
      Set schema_index Attribute.
      Parameters:
      pSchema_index - value to set
    • withSchema_index

      public Schema withSchema_index(Integer pSchema_index)
      fluent setter for schema_index Attribute.
      Parameters:
      pSchema_index - value to set
      Returns:
      Schema
    • getSchema_description

      public String getSchema_description()
      Returns schema_description Attribute.
      Returns:
      schema_description Attribute
    • setSchema_description

      public void setSchema_description(String pSchema_description)
      Set schema_description Attribute.
      Parameters:
      pSchema_description - value to set
    • withSchema_description

      public Schema withSchema_description(String pSchema_description)
      fluent setter for schema_description Attribute.
      Parameters:
      pSchema_description - value to set
      Returns:
      Schema
    • getSchema_name

      public String getSchema_name()
      Returns schema_name Attribute.
      Returns:
      schema_name Attribute
    • setSchema_name

      public void setSchema_name(String pSchema_name)
      Set schema_name Attribute.
      Parameters:
      pSchema_name - value to set
    • withSchema_name

      public Schema withSchema_name(String pSchema_name)
      fluent setter for schema_name Attribute.
      Parameters:
      pSchema_name - value to set
      Returns:
      Schema
    • getSchema_title

      public String getSchema_title()
      Returns schema_title Attribute.
      Returns:
      schema_title Attribute
    • setSchema_title

      public void setSchema_title(String pSchema_title)
      Set schema_title Attribute.
      Parameters:
      pSchema_title - value to set
    • withSchema_title

      public Schema withSchema_title(String pSchema_title)
      fluent setter for schema_title Attribute.
      Parameters:
      pSchema_title - value to set
      Returns:
      Schema
    • getSchema_utype

      public String getSchema_utype()
      Returns schema_utype Attribute.
      Returns:
      schema_utype Attribute
    • setSchema_utype

      public void setSchema_utype(String pSchema_utype)
      Set schema_utype Attribute.
      Parameters:
      pSchema_utype - value to set
    • withSchema_utype

      public Schema withSchema_utype(String pSchema_utype)
      fluent setter for schema_utype Attribute.
      Parameters:
      pSchema_utype - value to set
      Returns:
      Schema
    • createSchema

      public static Schema createSchema(Consumer<Schema.SchemaBuilder> f)
      create a Schema 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>