Package org.ivoa.dm.proposal.management
Class OfferedCycles
java.lang.Object
org.ivoa.dm.proposal.management.OfferedCycles
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposalManagement:OfferedCycles",
role=objectType)
public class OfferedCycles
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
.
objectType: OfferedCycles
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for OfferedCycles, mainly for use in the functional builder pattern. -
Field Summary
Modifier and TypeFieldDescriptionprotected Long
inserted database keyprotected List<ProposalCycle>
. -
Constructor Summary
ConstructorDescriptionCreates a new OfferedCyclesOfferedCycles
(List<ProposalCycle> cycles) full parameter constructor.OfferedCycles
(OfferedCycles other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a org.ivoa.dm.proposal.management.ProposalCycle to the composition.static OfferedCycles
create a OfferedCycles in functional builder style.void
Returns cycles composition as an immutable list.getId()
void
jpaClone
(jakarta.persistence.EntityManager em) void
persistRefs
(jakarta.persistence.EntityManager _em) void
Remove a org.ivoa.dm.proposal.management.ProposalCycle from the composition.void
update a org.ivoa.dm.proposal.management.ProposalCycle in the composition.void
setCycles
(List<ProposalCycle> pCycles) Defines whole cycles composition.void
updates any cloned references that are contained within the hierarchy.void
updateUsing
(OfferedCycles other) Update this object with the content of the given object.
-
Field Details
-
_id
inserted database key -
cycles
@VoDml(id="proposalManagement:OfferedCycles.cycles", role=composition, type="proposalManagement:ProposalCycle", typeRole=objectType) protected List<ProposalCycle> cycles. composition cycles : ( Multiplicity : 1..* )
-
-
Constructor Details
-
OfferedCycles
public OfferedCycles()Creates a new OfferedCycles -
OfferedCycles
full parameter constructor.- Parameters:
cycles
- .
-
OfferedCycles
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.
-
getCycles
Returns cycles composition as an immutable list.- Returns:
- cycles composition
-
setCycles
Defines whole cycles composition.- Parameters:
pCycles
- composition to set
-
addToCycles
Add a org.ivoa.dm.proposal.management.ProposalCycle to the composition.- Parameters:
p
- org.ivoa.dm.proposal.management.ProposalCycle to add
-
removeFromCycles
Remove a org.ivoa.dm.proposal.management.ProposalCycle from the composition.- Parameters:
p
- org.ivoa.dm.proposal.management.ProposalCycle to remove
-
replaceInCycles
update a org.ivoa.dm.proposal.management.ProposalCycle in the composition.- Parameters:
_p
- org.ivoa.dm.proposal.management.ProposalCycle to update the match is done via the database key
-
createOfferedCycles
create a OfferedCycles 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
-
jpaClone
public void jpaClone(jakarta.persistence.EntityManager em) - Specified by:
jpaClone
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
persistRefs
public void persistRefs(jakarta.persistence.EntityManager _em) - Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-