Package org.ivoa.dm.proposal.prop
Class SupportingDocument
java.lang.Object
org.ivoa.dm.proposal.prop.SupportingDocument
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposal:SupportingDocument",
role=objectType)
public class SupportingDocument
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
a document.
objectType: SupportingDocument
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for SupportingDocument, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SupportingDocumentSupportingDocument(String title, String location) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SupportingDocumentcreate a SupportingDocument in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()Returns location Attribute.getTitle()Returns title Attribute.voidsetLocation(String pLocation) Set location Attribute.voidSet title Attribute.voidupdateUsing(SupportingDocument other) Update this object with the content of the given object.withLocation(String pLocation) fluent setter for location Attribute.fluent setter for title Attribute.
-
Field Details
-
_id
inserted database key -
title
@VoDml(id="proposal:SupportingDocument.title", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String titledocument title. : Attribute title : multiplicity 1 -
location
@VoDml(id="proposal:SupportingDocument.location", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String locationlocation of document. : Attribute location : multiplicity 1
-
-
Constructor Details
-
SupportingDocument
public SupportingDocument()Creates a new SupportingDocument -
SupportingDocument
full parameter constructor.- Parameters:
title- document title.location- location of document.
-
SupportingDocument
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.
-
getTitle
Returns title Attribute.- Returns:
- title Attribute
-
setTitle
Set title Attribute.- Parameters:
pTitle- value to set
-
withTitle
fluent setter for title Attribute.- Parameters:
pTitle- value to set- Returns:
- SupportingDocument
-
getLocation
Returns location Attribute.- Returns:
- location Attribute
-
setLocation
Set location Attribute.- Parameters:
pLocation- value to set
-
withLocation
fluent setter for location Attribute.- Parameters:
pLocation- value to set- Returns:
- SupportingDocument
-
createSupportingDocument
public static SupportingDocument createSupportingDocument(Consumer<SupportingDocument.SupportingDocumentBuilder> f) create a SupportingDocument 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>
-