Package org.ivoa.dm.tool
Class Vulnerability
java.lang.Object
org.ivoa.dm.tool.Vulnerability
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="tool:Vulnerability",
role=objectType)
public class Vulnerability
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
a known security vulnerability.
objectType: Vulnerability
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Vulnerability, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new VulnerabilityVulnerability(String cve) full parameter constructor.Vulnerability(Vulnerability other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic Vulnerabilitycreate a Vulnerability in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetCve()Returns cve Attribute.getId()voidSet cve Attribute.voidupdateUsing(Vulnerability other) Update this object with the content of the given object.fluent setter for cve Attribute.
-
Field Details
-
_id
inserted database key -
cve
@VoDml(id="tool:Vulnerability.cve", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String cvethe identifier for the vulnerability. : Attribute cve type ivoa:string : multiplicity 1
-
-
Constructor Details
-
Vulnerability
public Vulnerability()Creates a new Vulnerability -
Vulnerability
full parameter constructor.- Parameters:
cve- the identifier for the vulnerability.
-
Vulnerability
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.
-
getCve
Returns cve Attribute.- Returns:
- cve Attribute
-
setCve
Set cve Attribute.- Parameters:
pCve- value to set
-
withCve
fluent setter for cve Attribute.- Parameters:
pCve- value to set- Returns:
- Vulnerability
-
createVulnerability
create a Vulnerability 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>
-