Class DataCollection
java.lang.Object
org.ivoa.dm.registry.voresource.Resource
org.ivoa.dm.registry.vodataservice.DataCollection
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="VODataService:DataCollection",
       role=objectType)
public class DataCollection
extends Resource
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A logical grouping of data which, in general, is composed of one
                          or more accessible datasets.  A collection can contain any
                          combination of images, spectra, catalogues, or other data.   
                         
                          (A dataset is a collection of digitally-encoded data that 
                          is normally accessible as a single unit, e.g., a file.)
                         
                           This type is deprecated.  Resource record authors should
                           use vs:CatalogResource instead.  This type will be removed
                           from the schema when no resource record using it remains in
                           the registry. 
 objectType:  DataCollection
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for DataCollection, mainly for use in the functional builder pattern.Nested classes/interfaces inherited from class org.ivoa.dm.registry.voresource.Resource
Resource.ResourceBuilder - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessURLThe URL that can be used to download the data contained in this data collection.protected CoverageExtent of the content of the resource over space, time, and frequency.protected List<ResourceName>the observatory or facility used to collect the data contained or managed by this resource.The physical or digital manifestation of the information supported by a resource.protected List<ResourceName>the Instrument used to collect the data contain or managed by a resource.Information about rights held in and over the resource.protected TableSetA description of the tables that are part of this collection.Fields inherited from class org.ivoa.dm.registry.voresource.Resource
_id, altIdentifier, content, created, curation, identifier, shortName, status, title, updated, validationLevel, version - 
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DataCollectionDataCollection(List<ResourceName> facility, List<ResourceName> instrument, List<Rights> rights, List<Format> format, Coverage coverage, TableSet tableset, AccessURL accessURL, List<Validation> validationLevel, String title, ShortName shortName, IdentifierURI identifier, List<String> altIdentifier, Curation curation, Content content, UTCTimestamp created, UTCTimestamp updated, Resource_status status, String version) full parameter constructor.DataCollection(DataCollection other) Copy Constructor.DataCollection(Resource superinstance, List<ResourceName> facility, List<ResourceName> instrument, List<Rights> rights, List<Format> format, Coverage coverage, TableSet tableset, AccessURL accessURL) Constructor from supertype instance. - 
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static DataCollectioncreate a DataCollection in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns accessURL Attribute.Returns coverage Attribute.Returns facility Attribute.Returns format Attribute.Returns instrument Attribute.Returns rights Attribute.Returns tableset Attribute.voidsetAccessURL(AccessURL pAccessURL) Set accessURL Attribute.voidsetCoverage(Coverage pCoverage) Set coverage Attribute.voidsetFacility(List<ResourceName> pFacility) Set facility Attribute.voidSet format Attribute.voidsetInstrument(List<ResourceName> pInstrument) Set instrument Attribute.voidSet rights Attribute.voidsetTableset(TableSet pTableset) Set tableset Attribute.voidupdateUsing(DataCollection other) Update this object with the content of the given object.withAccessURL(AccessURL pAccessURL) fluent setter for accessURL Attribute.withCoverage(Coverage pCoverage) fluent setter for coverage Attribute.withFacility(List<ResourceName> pFacility) fluent setter for facility Attribute.withFormat(List<Format> pFormat) fluent setter for format Attribute.withInstrument(List<ResourceName> pInstrument) fluent setter for instrument Attribute.withRights(List<Rights> pRights) fluent setter for rights Attribute.withTableset(TableSet pTableset) fluent setter for tableset Attribute.Methods inherited from class org.ivoa.dm.registry.voresource.Resource
createResource, getAltIdentifier, getContent, getCreated, getCuration, getId, getIdentifier, getShortName, getStatus, getTitle, getUpdated, getValidationLevel, getVersion, setAltIdentifier, setContent, setCreated, setCuration, setIdentifier, setShortName, setStatus, setTitle, setUpdated, setValidationLevel, setVersion, updateUsing, withAltIdentifier, withContent, withCreated, withCuration, withIdentifier, withShortName, withStatus, withTitle, withUpdated, withValidationLevel, withVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getId 
- 
Field Details
- 
facility
@VoDml(id="VODataService:DataCollection.facility", role=attribute, type="VOResource:ResourceName", typeRole=dataType) protected List<ResourceName> facilitythe observatory or facility used to collect the data contained or managed by this resource. : Attribute facility : multiplicity 0..* - 
instrument
@VoDml(id="VODataService:DataCollection.instrument", role=attribute, type="VOResource:ResourceName", typeRole=dataType) protected List<ResourceName> instrumentthe Instrument used to collect the data contain or managed by a resource. : Attribute instrument : multiplicity 0..* - 
rights
@VoDml(id="VODataService:DataCollection.rights", role=attribute, type="VOResource:Rights", typeRole=dataType) protected List<Rights> rightsInformation about rights held in and over the resource. This should be repeated for all Rights values that apply. : Attribute rights : multiplicity 0..* - 
format
@VoDml(id="VODataService:DataCollection.format", role=attribute, type="VODataService:Format", typeRole=dataType) protected List<Format> formatThe physical or digital manifestation of the information supported by a resource. This should use RFC 2046 media (“MIME”) types for network-retrievable, digital data. Non-RFC 2046 values could be used for media that cannot be retrieved over the network. : Attribute format : multiplicity 0..* - 
coverage
@VoDml(id="VODataService:DataCollection.coverage", role=composition, type="VODataService:Coverage", typeRole=objectType) protected Coverage coverageExtent of the content of the resource over space, time, and frequency. composition coverage : ( Multiplicity : 0..1 ) - 
tableset
@VoDml(id="VODataService:DataCollection.tableset", role=composition, type="VODataService:TableSet", typeRole=objectType) protected TableSet tablesetA description of the tables that are part of this collection. Each schema name must be unique within a tableset. composition tableset : ( Multiplicity : 0..1 ) - 
accessURL
@VoDml(id="VODataService:DataCollection.accessURL", role=composition, type="VOResource:AccessURL", typeRole=objectType) protected AccessURL accessURLThe URL that can be used to download the data contained in this data collection. composition accessURL : ( Multiplicity : 0..1 ) 
 - 
 - 
Constructor Details
- 
DataCollection
public DataCollection()Creates a new DataCollection - 
DataCollection
public DataCollection(List<ResourceName> facility, List<ResourceName> instrument, List<Rights> rights, List<Format> format, Coverage coverage, TableSet tableset, AccessURL accessURL, List<Validation> validationLevel, String title, ShortName shortName, IdentifierURI identifier, List<String> altIdentifier, Curation curation, Content content, UTCTimestamp created, UTCTimestamp updated, Resource_status status, String version) full parameter constructor.- Parameters:
 facility- the observatory or facility used to collect the data contained or managed by this resource.instrument- the Instrument used to collect the data contain or managed by a resource.rights- Information about rights held in and over the resource. This should be repeated for all Rights values that apply.format- The physical or digital manifestation of the information supported by a resource. This should use RFC 2046 media (“MIME”) types for network-retrievable, digital data. Non-RFC 2046 values could be used for media that cannot be retrieved over the network.coverage- Extent of the content of the resource over space, time, and frequency.tableset- A description of the tables that are part of this collection. Each schema name must be unique within a tableset.accessURL- The URL that can be used to download the data contained in this data collection.validationLevel- A numeric grade describing the quality of the resource description, when applicable, to be used to indicate the confidence an end-user can put in the resource as part of a VO application or research study. See VOResource:Validation for an explanation of the allowed levels. Note that when this resource is a Service, this grade applies to the core set of metadata. Capability and interface metadata, as well as the compliance of the service with the interface standard, is rated by validationLevel tag in the capability element (see the VOResource:Service complex type).title- the full name given to the resource .shortName- A short name or abbreviation given to the resource. This name will be used where brief annotations for the resource name are required. Applications may use to refer to this resource in a compact display. One word or a few letters is recommended. No more than sixteen characters are allowed.identifier- Unambiguous reference to the resource conforming to the IVOA standard for identifiers .altIdentifier- A reference to this resource in a non-IVOA identifier scheme, e.g., DOI or bibcode. Always use the an URI scheme here, e.g., doi:10.1016/j.epsl.2011.11.037. For bibcodes, use a form like bibcode:2008ivoa.spec.0222P.curation- Information regarding the general curation of the resource .content- Information regarding the general content of the resource .created- The UTC date and time this resource metadata description was created. This timestamp must not be in the future. This time is not required to be accurate; it should be at least accurate to the day. Any non-significant time fields should be set to zero.updated- The UTC date this resource metadata description was last updated. This timestamp must not be in the future. This time is not required to be accurate; it should be at least accurate to the day. Any non-significant time fields should be set to zero.status- a tag indicating whether this resource is believed to be still actively maintained.version- The VOResource XML schema version against which this instance was written. Implementors should set this to the value of the version attribute of their schema's root (xs:schema) element. Clients may assume version 1.0 if this attribute is missing.
 - 
DataCollection
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
 other- the object to be copied.
 - 
DataCollection
public DataCollection(Resource superinstance, List<ResourceName> facility, List<ResourceName> instrument, List<Rights> rights, List<Format> format, Coverage coverage, TableSet tableset, AccessURL accessURL) Constructor from supertype instance.- Parameters:
 superinstance- The supertype.facility- the observatory or facility used to collect the data contained or managed by this resource.instrument- the Instrument used to collect the data contain or managed by a resource.rights- Information about rights held in and over the resource. This should be repeated for all Rights values that apply.format- The physical or digital manifestation of the information supported by a resource. This should use RFC 2046 media (“MIME”) types for network-retrievable, digital data. Non-RFC 2046 values could be used for media that cannot be retrieved over the network.coverage- Extent of the content of the resource over space, time, and frequency.tableset- A description of the tables that are part of this collection. Each schema name must be unique within a tableset.accessURL- The URL that can be used to download the data contained in this data collection.
 
 - 
 - 
Method Details
- 
copyMe
make a clone of the object taking into account current polymorhic type. - 
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.
 - 
getFacility
Returns facility Attribute.- Returns:
 - facility Attribute
 
 - 
setFacility
Set facility Attribute.- Parameters:
 pFacility- value to set
 - 
withFacility
fluent setter for facility Attribute.- Parameters:
 pFacility- value to set- Returns:
 - DataCollection
 
 - 
getInstrument
Returns instrument Attribute.- Returns:
 - instrument Attribute
 
 - 
setInstrument
Set instrument Attribute.- Parameters:
 pInstrument- value to set
 - 
withInstrument
fluent setter for instrument Attribute.- Parameters:
 pInstrument- value to set- Returns:
 - DataCollection
 
 - 
getRights
Returns rights Attribute.- Returns:
 - rights Attribute
 
 - 
setRights
Set rights Attribute.- Parameters:
 pRights- value to set
 - 
withRights
fluent setter for rights Attribute.- Parameters:
 pRights- value to set- Returns:
 - DataCollection
 
 - 
getFormat
Returns format Attribute.- Returns:
 - format Attribute
 
 - 
setFormat
Set format Attribute.- Parameters:
 pFormat- value to set
 - 
withFormat
fluent setter for format Attribute.- Parameters:
 pFormat- value to set- Returns:
 - DataCollection
 
 - 
getCoverage
Returns coverage Attribute.- Returns:
 - coverage Attribute
 
 - 
setCoverage
Set coverage Attribute.- Parameters:
 pCoverage- value to set
 - 
withCoverage
fluent setter for coverage Attribute.- Parameters:
 pCoverage- value to set- Returns:
 - DataCollection
 
 - 
getTableset
Returns tableset Attribute.- Returns:
 - tableset Attribute
 
 - 
setTableset
Set tableset Attribute.- Parameters:
 pTableset- value to set
 - 
withTableset
fluent setter for tableset Attribute.- Parameters:
 pTableset- value to set- Returns:
 - DataCollection
 
 - 
getAccessURL
Returns accessURL Attribute.- Returns:
 - accessURL Attribute
 
 - 
setAccessURL
Set accessURL Attribute.- Parameters:
 pAccessURL- value to set
 - 
withAccessURL
fluent setter for accessURL Attribute.- Parameters:
 pAccessURL- value to set- Returns:
 - DataCollection
 
 - 
createDataCollection
create a DataCollection in functional builder style.- Parameters:
 f- the functional builder.- Returns:
 - an object initialized from the builder.
 
 - 
forceLoad
public void forceLoad() - 
delete
public void delete(jakarta.persistence.EntityManager em)  
 -