Package no.nsd.qddt.domain.study
Class Study
- java.lang.Object
-
- no.nsd.qddt.domain.AbstractEntity
-
- no.nsd.qddt.domain.AbstractEntityAudit
-
- no.nsd.qddt.domain.study.Study
-
- All Implemented Interfaces:
IAuthor
,IArchived
,IEntityAuditXmlRef
@Entity public class Study extends AbstractEntityAudit implements IAuthor, IArchived
- A Study will have of one or more TopicGroups.
- A TopicGroup will have one or more Concepts.
- A Concept consist of one or more QuestionItems.
- Every QuestionItem will have a Question.
- Every QuestionItem will have a ResponseDomain.
- A Concept consist of one or more QuestionItems.
- A TopicGroup will have one or more Concepts.
A publication structure for a specific study. Structures identification information, full bibliographic and discovery information, administrative information, all of the reusable delineations used for response domains and variable representations, and TopicGroups covering different points in the lifecycle of the study (DataCollection, LogicalProduct, PhysicalDataProduct, PhysicalInstance, Archive, and DDIProfile).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class no.nsd.qddt.domain.AbstractEntityAudit
AbstractEntityAudit.ChangeKind
-
-
Field Summary
-
Fields inherited from class no.nsd.qddt.domain.AbstractEntityAudit
hasRun
-
Fields inherited from class no.nsd.qddt.domain.AbstractEntity
LOG
-
-
Constructor Summary
Constructors Constructor Description Study()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAuthor(Author user)
Add aAuthor
to aSet
of authors.TopicGroup
addTopicGroup(TopicGroup topicGroup)
protected void
beforeInsert()
protected void
beforeUpdate()
boolean
equals(java.lang.Object o)
void
fillDoc(PdfReport pdfReport, java.lang.String counter)
java.util.Set<Author>
getAuthors()
Get all authors attached to this entity as aSet
java.lang.String
getDescription()
java.util.Set<Instrument>
getInstruments()
SurveyProgram
getSurveyProgram()
java.util.Set<TopicGroup>
getTopicGroups()
AbstractXmlBuilder
getXmlBuilder()
int
hashCode()
boolean
isArchived()
void
remove()
void
setArchived(boolean archived)
void
setAuthors(java.util.Set<Author> authors)
Set theSet
ofAuthor
for the entity.void
setDescription(java.lang.String description)
void
setSurveyProgram(SurveyProgram surveyProgram)
void
setTopicGroups(java.util.Set<TopicGroup> topicGroups)
java.lang.String
toString()
-
Methods inherited from class no.nsd.qddt.domain.AbstractEntityAudit
getAgency, getBasedOnObject, getBasedOnRevision, getChangeComment, getChangeKind, getClassKind, getComments, getName, getVersion, getXmlLang, isBasedOn, isNewCopy, makeNewCopy, makePdf, setAgency, setBasedOnObject, setBasedOnRevision, setChangeComment, setChangeKind, setClassKind, setComments, setName, setVersion, setXmlLang
-
Methods inherited from class no.nsd.qddt.domain.AbstractEntity
getId, getModified, getModifiedBy, setField, setId, setModified, setModifiedBy
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface no.nsd.qddt.domain.IEntityAuditXmlRef
getId
-
-
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
addAuthor
public void addAuthor(Author user)
Description copied from interface:IAuthor
Add aAuthor
to aSet
of authors.
-
getAuthors
public java.util.Set<Author> getAuthors()
Description copied from interface:IAuthor
Get all authors attached to this entity as aSet
- Specified by:
getAuthors
in interfaceIAuthor
-
setAuthors
public void setAuthors(java.util.Set<Author> authors)
Description copied from interface:IAuthor
Set theSet
ofAuthor
for the entity.- Specified by:
setAuthors
in interfaceIAuthor
- Parameters:
authors
- populated set of authors.
-
getSurveyProgram
public SurveyProgram getSurveyProgram()
-
setSurveyProgram
public void setSurveyProgram(SurveyProgram surveyProgram)
-
getInstruments
public java.util.Set<Instrument> getInstruments()
-
getTopicGroups
public java.util.Set<TopicGroup> getTopicGroups()
-
setTopicGroups
public void setTopicGroups(java.util.Set<TopicGroup> topicGroups)
-
addTopicGroup
public TopicGroup addTopicGroup(TopicGroup topicGroup)
-
isArchived
public boolean isArchived()
- Specified by:
isArchived
in interfaceIArchived
-
setArchived
public void setArchived(boolean archived)
- Specified by:
setArchived
in interfaceIArchived
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classAbstractEntityAudit
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractEntityAudit
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractEntityAudit
-
getXmlBuilder
public AbstractXmlBuilder getXmlBuilder()
- Specified by:
getXmlBuilder
in interfaceIEntityAuditXmlRef
- Specified by:
getXmlBuilder
in classAbstractEntity
-
fillDoc
public void fillDoc(PdfReport pdfReport, java.lang.String counter)
- Specified by:
fillDoc
in classAbstractEntityAudit
-
remove
public void remove()
-
beforeUpdate
protected void beforeUpdate()
- Specified by:
beforeUpdate
in classAbstractEntityAudit
-
beforeInsert
protected void beforeInsert()
- Specified by:
beforeInsert
in classAbstractEntityAudit
-
-