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
Modifier and TypeClassDescriptionstatic class
A builder class for SupportingDocument, mainly for use in the functional builder pattern. -
Field Summary
-
Constructor Summary
ConstructorDescriptionCreates a new SupportingDocumentSupportingDocument
(String title, String location) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SupportingDocument
create a SupportingDocument in functional builder style.void
getId()
Returns location AttributegetTitle()
Returns title Attributevoid
jpaClone
(jakarta.persistence.EntityManager em) void
persistRefs
(jakarta.persistence.EntityManager _em) void
setLocation
(String pLocation) Defines location Attributevoid
Defines title Attributevoid
updateUsing
(SupportingDocument other) Update this object with the content of the given object.withLocation
(String pLocation)
-
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:
getId
in 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
Defines title Attribute- Parameters:
pTitle
- value to set
-
withTitle
-
getLocation
Returns location Attribute- Returns:
- location Attribute
-
setLocation
Defines location Attribute- Parameters:
pLocation
- value to set
-
withLocation
-
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:
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
-