Class FKColumn

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

@Entity @VoDml(id="tapschema:FKColumn", role=objectType) public class FKColumn extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
the foreign key columns.

objectType: FKColumn

  • Field Details

    • _id

      protected Long _id
      inserted database key
    • from_column

      @VoDml(id="tapschema:FKColumn.from_column", role=reference, type="tapschema:column", typeRole=objectType) protected Column from_column
      ReferenceObject from_column : . ( Multiplicity : 1 )
    • target_column

      @VoDml(id="tapschema:FKColumn.target_column", role=reference, type="tapschema:column", typeRole=objectType) protected Column target_column
      ReferenceObject target_column : . ( Multiplicity : 1 )
  • Constructor Details

    • FKColumn

      public FKColumn()
      Creates a new FKColumn
    • FKColumn

      public FKColumn(Column from_column, Column target_column)
      full parameter constructor.
      Parameters:
      from_column - .
      target_column - .
    • FKColumn

      public FKColumn(FKColumn 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
    • updateClonedReferences

      public void updateClonedReferences()
      updates any cloned references that are contained within the hierarchy.
    • updateUsing

      public void updateUsing(FKColumn 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.
    • getFrom_column

      public Column getFrom_column()
      Returns from_column Reference
      Returns:
      from_column Reference
    • setFrom_column

      public void setFrom_column(Column pFrom_column)
      Defines from_column Reference
      Parameters:
      pFrom_column - reference to set
    • getTarget_column

      public Column getTarget_column()
      Returns target_column Reference
      Returns:
      target_column Reference
    • setTarget_column

      public void setTarget_column(Column pTarget_column)
      Defines target_column Reference
      Parameters:
      pTarget_column - reference to set
    • createFKColumn

      public static FKColumn createFKColumn(Consumer<FKColumn.FKColumnBuilder> f)
      create a FKColumn 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>