Package org.ivoa.dm.tapschema
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
-
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 from_column ReferencegetId()Returns target_column ReferencevoidsetFrom_column(Column pFrom_column) Defines from_column ReferencevoidsetTarget_column(Column pTarget_column) Defines target_column Referencevoidupdates any cloned references that are contained within the hierarchy.voidupdateUsing(FKColumn other) Update this object with the content of the given object.
-
Field Details
-
_id
inserted database key -
from_column
@VoDml(id="tapschema:FKColumn.from_column", role=reference, type="tapschema:column", typeRole=objectType) protected Column from_columnReferenceObject from_column : the column from which the key is referencing. ( Multiplicity : 1 ) -
target_column
@VoDml(id="tapschema:FKColumn.target_column", role=reference, type="tapschema:column", typeRole=objectType) protected Column target_columnReferenceObject target_column : the column that the key references. ( Multiplicity : 1 )
-
-
Constructor Details
-
FKColumn
public FKColumn()Creates a new FKColumn -
FKColumn
full parameter constructor.- Parameters:
from_column- the column from which the key is referencing.target_column- the column that the key references.
-
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
-
updateClonedReferences
public void updateClonedReferences()updates any cloned references that are contained within the hierarchy. -
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.
-
getFrom_column
Returns from_column Reference- Returns:
- from_column Reference
-
setFrom_column
Defines from_column Reference- Parameters:
pFrom_column- reference to set
-
getTarget_column
Returns target_column Reference- Returns:
- target_column Reference
-
setTarget_column
Defines target_column Reference- Parameters:
pTarget_column- reference to set
-
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>
-