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 class
A builder class for FKColumn, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FKColumn
create a FKColumn in functional builder style.void
delete
(jakarta.persistence.EntityManager em) void
Returns from_column ReferencegetId()
Returns target_column Referencevoid
setFrom_column
(Column pFrom_column) Defines from_column Referencevoid
setTarget_column
(Column pTarget_column) Defines target_column Referencevoid
updates any cloned references that are contained within the hierarchy.void
updateUsing
(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 : . ( Multiplicity : 1 ) -
target_column
@VoDml(id="tapschema:FKColumn.target_column", role=reference, type="tapschema:column", typeRole=objectType) protected Column target_columnReferenceObject target_column : . ( Multiplicity : 1 )
-
-
Constructor Details
-
FKColumn
public FKColumn()Creates a new FKColumn -
FKColumn
full parameter constructor.- Parameters:
from_column
- .target_column
- .
-
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:
getId
in 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:
forceLoad
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
delete
in interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-