Package org.ivoa.dm.tool
Class ToolImage
java.lang.Object
org.ivoa.dm.tool.ToolImage
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement,org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="tool:ToolImage",
role=objectType)
public class ToolImage
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
Definition of a tool image.
objectType: ToolImage
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for ToolImage, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected BuildProcessBuild detail.protected DiscoveryDiscovery metadata for the tool image.protected ToolImageReferenceObject parentImage : Parent image reference.protected OCIRegistryReferenceObject registry : OCI registry details.protected SecurityMetadataSecurity metadata for the tool image. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ToolImageToolImage(OCIRegistry registry, ToolImage parentImage, BuildProcess build, Discovery discovery, SecurityMetadata security) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolImagecreate a ToolImage in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetBuild()Returns build Attribute.Returns discovery Attribute.getId()Returns parentImage ReferenceReturns registry ReferenceReturns security Attribute.getXmlId()getter for XMLIDbooleanvoidsetBuild(BuildProcess pBuild) Set build Attribute.voidsetDiscovery(Discovery pDiscovery) Set discovery Attribute.voidsetParentImage(ToolImage pParentImage) Defines parentImage ReferencevoidsetRegistry(OCIRegistry pRegistry) Defines registry ReferencevoidsetSecurity(SecurityMetadata pSecurity) Set security Attribute.voidvoidupdateUsing(ToolImage other) Update this object with the content of the given object.withBuild(BuildProcess pBuild) fluent setter for build Attribute.withDiscovery(Discovery pDiscovery) fluent setter for discovery Attribute.withSecurity(SecurityMetadata pSecurity) fluent setter for security Attribute.
-
Field Details
-
_id
inserted database key -
registry
@VoDml(id="tool:ToolImage.registry", role=reference, type="tool:OCIRegistry", typeRole=objectType) protected OCIRegistry registryReferenceObject registry : OCI registry details. ( Multiplicity : 1 ) -
parentImage
@VoDml(id="tool:ToolImage.parentImage", role=reference, type="tool:ToolImage", typeRole=objectType) protected ToolImage parentImageReferenceObject parentImage : Parent image reference. ( Multiplicity : 0..1 ) -
build
@VoDml(id="tool:ToolImage.build", role=composition, type="tool:BuildProcess", typeRole=objectType) protected BuildProcess buildBuild detail. composition build : ( Multiplicity : 1 ) -
discovery
@VoDml(id="tool:ToolImage.discovery", role=composition, type="tool:Discovery", typeRole=objectType) protected Discovery discoveryDiscovery metadata for the tool image. composition discovery : ( Multiplicity : 1 ) -
security
@VoDml(id="tool:ToolImage.security", role=composition, type="tool:SecurityMetadata", typeRole=objectType) protected SecurityMetadata securitySecurity metadata for the tool image. composition security : ( Multiplicity : 1 )
-
-
Constructor Details
-
ToolImage
public ToolImage()Creates a new ToolImage -
ToolImage
public ToolImage(OCIRegistry registry, ToolImage parentImage, BuildProcess build, Discovery discovery, SecurityMetadata security) full parameter constructor.- Parameters:
registry- OCI registry details.parentImage- Parent image reference.build- Build detail.discovery- Discovery metadata for the tool image.security- Security metadata for the tool image.
-
ToolImage
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
-
getXmlId
getter for XMLID- Specified by:
getXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
setXmlId
- Specified by:
setXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
hasNaturalKey
public boolean hasNaturalKey()- Specified by:
hasNaturalKeyin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
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.
-
getRegistry
Returns registry Reference- Returns:
- registry Reference
-
setRegistry
Defines registry Reference- Parameters:
pRegistry- reference to set
-
getParentImage
Returns parentImage Reference- Returns:
- parentImage Reference
-
setParentImage
Defines parentImage Reference- Parameters:
pParentImage- reference to set
-
getBuild
Returns build Attribute.- Returns:
- build Attribute
-
setBuild
Set build Attribute.- Parameters:
pBuild- value to set
-
withBuild
fluent setter for build Attribute.- Parameters:
pBuild- value to set- Returns:
- ToolImage
-
getDiscovery
Returns discovery Attribute.- Returns:
- discovery Attribute
-
setDiscovery
Set discovery Attribute.- Parameters:
pDiscovery- value to set
-
withDiscovery
fluent setter for discovery Attribute.- Parameters:
pDiscovery- value to set- Returns:
- ToolImage
-
getSecurity
Returns security Attribute.- Returns:
- security Attribute
-
setSecurity
Set security Attribute.- Parameters:
pSecurity- value to set
-
withSecurity
fluent setter for security Attribute.- Parameters:
pSecurity- value to set- Returns:
- ToolImage
-
createToolImage
create a ToolImage 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>
-