Class AltIdentifier

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

@Entity @VoDml(id="RegTAP:AltIdentifier", role=objectType) public class AltIdentifier extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
An alternate identifier associated with this record. objectType: AltIdentifier
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • alt_identifier

      @VoDml(id="RegTAP:AltIdentifier.alt_identifier", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String alt_identifier
      An identifier for the resource or an entity related to the resource in URI form. : Attribute alt_identifier : multiplicity 1
  • Constructor Details

    • AltIdentifier

      public AltIdentifier()
      Creates a new AltIdentifier
    • AltIdentifier

      public AltIdentifier(String alt_identifier)
      full parameter constructor.
      Parameters:
      alt_identifier - An identifier for the resource or an entity related to the resource in URI form.
    • AltIdentifier

      public AltIdentifier(AltIdentifier 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(AltIdentifier 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.
    • getAlt_identifier

      public String getAlt_identifier()
      Returns alt_identifier Attribute.
      Returns:
      alt_identifier Attribute
    • setAlt_identifier

      public void setAlt_identifier(String pAlt_identifier)
      Set alt_identifier Attribute.
      Parameters:
      pAlt_identifier - value to set
    • withAlt_identifier

      public AltIdentifier withAlt_identifier(String pAlt_identifier)
      fluent setter for alt_identifier Attribute.
      Parameters:
      pAlt_identifier - value to set
      Returns:
      AltIdentifier
    • createAltIdentifier

      public static AltIdentifier createAltIdentifier(Consumer<AltIdentifier.AltIdentifierBuilder> f)
      create a AltIdentifier 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>