Class FKColumn
java.lang.Object
org.ivoa.dm.registry.vodataservice.FKColumn
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="VODataService:FKColumn",
       role=objectType)
public class FKColumn
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A pair of columns that are used to join two tables.
                         
                          To do an inner join of data from the two tables, a query should 
                          include a constraint that sets the value from the first column equal
                          to the value in the second column.
                         
                          This type assumes that it is used in the context of 
                          implied source (i.e., current) and target tables, as in
                          the ForeignKey type's fkColumn. 
 objectType:  FKColumn
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for FKColumn, mainly for use in the functional builder pattern. - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic FKColumncreate a FKColumn in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns fromColumn Attribute.getId()Returns targetColumn Attribute.voidsetFromColumn(String pFromColumn) Set fromColumn Attribute.voidsetTargetColumn(String pTargetColumn) Set targetColumn Attribute.voidupdateUsing(FKColumn other) Update this object with the content of the given object.withFromColumn(String pFromColumn) fluent setter for fromColumn Attribute.withTargetColumn(String pTargetColumn) fluent setter for targetColumn Attribute. 
- 
Field Details
- 
_id
inserted database key - 
fromColumn
@VoDml(id="VODataService:FKColumn.fromColumn", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String fromColumnThe unqualified name of the column from the current table. : Attribute fromColumn : multiplicity 1 - 
targetColumn
@VoDml(id="VODataService:FKColumn.targetColumn", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String targetColumnThe unqualified name of the column from the target table. : Attribute targetColumn : multiplicity 1 
 - 
 - 
Constructor Details
- 
FKColumn
public FKColumn()Creates a new FKColumn - 
FKColumn
full parameter constructor.- Parameters:
 fromColumn- The unqualified name of the column from the current table.targetColumn- The unqualified name of the column from the target table.
 - 
FKColumn
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.
 - 
getFromColumn
Returns fromColumn Attribute.- Returns:
 - fromColumn Attribute
 
 - 
setFromColumn
Set fromColumn Attribute.- Parameters:
 pFromColumn- value to set
 - 
withFromColumn
fluent setter for fromColumn Attribute.- Parameters:
 pFromColumn- value to set- Returns:
 - FKColumn
 
 - 
getTargetColumn
Returns targetColumn Attribute.- Returns:
 - targetColumn Attribute
 
 - 
setTargetColumn
Set targetColumn Attribute.- Parameters:
 pTargetColumn- value to set
 - 
withTargetColumn
fluent setter for targetColumn Attribute.- Parameters:
 pTargetColumn- value to set- Returns:
 - FKColumn
 
 - 
createFKColumn
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:
 forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
 - 
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
 deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
 
 -