Package org.ivoa.dm.registry.cone
Class Query
java.lang.Object
org.ivoa.dm.registry.cone.Query
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="ConeSearch:Query",
       role=objectType)
public class Query
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A query to be sent to the service.
 objectType:  Query
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Query, mainly for use in the functional builder pattern. - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected Stringthe catalog to query.protected Doublethe declination of the search cone's center in decimal degrees.protected Stringany extra (non-standard) parameters that must be provided (apart from what is part of base URL given by the accessURL element).protected Doublethe right ascension of the search cone's center in decimal degrees.protected Doublethe radius of the search cone in decimal degrees.protected Integerthe verbosity level to use where 1 means the bare minimum set of columns and 3 means the full set of available columns. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic Querycreate a Query in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns catalog Attribute.getDec()Returns dec Attribute.Returns extras Attribute.getId()getRa()Returns ra Attribute.getSr()Returns sr Attribute.getVerb()Returns verb Attribute.voidsetCatalog(String pCatalog) Set catalog Attribute.voidSet dec Attribute.voidSet extras Attribute.voidSet ra Attribute.voidSet sr Attribute.voidSet verb Attribute.voidupdateUsing(Query other) Update this object with the content of the given object.withCatalog(String pCatalog) fluent setter for catalog Attribute.fluent setter for dec Attribute.withExtras(String pExtras) fluent setter for extras Attribute.fluent setter for ra Attribute.fluent setter for sr Attribute.fluent setter for verb Attribute. 
- 
Field Details
- 
_id
inserted database key - 
ra
@VoDml(id="ConeSearch:Query.ra", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double rathe right ascension of the search cone's center in decimal degrees. : Attribute ra : multiplicity 1 - 
dec
@VoDml(id="ConeSearch:Query.dec", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double decthe declination of the search cone's center in decimal degrees. : Attribute dec : multiplicity 1 - 
sr
@VoDml(id="ConeSearch:Query.sr", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double srthe radius of the search cone in decimal degrees. : Attribute sr : multiplicity 1 - 
verb
@VoDml(id="ConeSearch:Query.verb", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer verbthe verbosity level to use where 1 means the bare minimum set of columns and 3 means the full set of available columns. : Attribute verb : multiplicity 0..1 - 
catalog
@VoDml(id="ConeSearch:Query.catalog", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String catalogthe catalog to query. When the service can access more than one catalog, this input parameter, if available, is used to indicate which service to access. : Attribute catalog : multiplicity 0..1 - 
extras
@VoDml(id="ConeSearch:Query.extras", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String extrasany extra (non-standard) parameters that must be provided (apart from what is part of base URL given by the accessURL element). this value should be in the form of name=value pairs delimited with ampersands. : Attribute extras : multiplicity 0..1 
 - 
 - 
Constructor Details
- 
Query
public Query()Creates a new Query - 
Query
full parameter constructor.- Parameters:
 ra- the right ascension of the search cone's center in decimal degrees.dec- the declination of the search cone's center in decimal degrees.sr- the radius of the search cone in decimal degrees.verb- the verbosity level to use where 1 means the bare minimum set of columns and 3 means the full set of available columns.catalog- the catalog to query. When the service can access more than one catalog, this input parameter, if available, is used to indicate which service to access.extras- any extra (non-standard) parameters that must be provided (apart from what is part of base URL given by the accessURL element). this value should be in the form of name=value pairs delimited with ampersands.
 - 
Query
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.
 - 
getRa
Returns ra Attribute.- Returns:
 - ra Attribute
 
 - 
setRa
Set ra Attribute.- Parameters:
 pRa- value to set
 - 
withRa
fluent setter for ra Attribute.- Parameters:
 pRa- value to set- Returns:
 - Query
 
 - 
getDec
Returns dec Attribute.- Returns:
 - dec Attribute
 
 - 
setDec
Set dec Attribute.- Parameters:
 pDec- value to set
 - 
withDec
fluent setter for dec Attribute.- Parameters:
 pDec- value to set- Returns:
 - Query
 
 - 
getSr
Returns sr Attribute.- Returns:
 - sr Attribute
 
 - 
setSr
Set sr Attribute.- Parameters:
 pSr- value to set
 - 
withSr
fluent setter for sr Attribute.- Parameters:
 pSr- value to set- Returns:
 - Query
 
 - 
getVerb
Returns verb Attribute.- Returns:
 - verb Attribute
 
 - 
setVerb
Set verb Attribute.- Parameters:
 pVerb- value to set
 - 
withVerb
fluent setter for verb Attribute.- Parameters:
 pVerb- value to set- Returns:
 - Query
 
 - 
getCatalog
Returns catalog Attribute.- Returns:
 - catalog Attribute
 
 - 
setCatalog
Set catalog Attribute.- Parameters:
 pCatalog- value to set
 - 
withCatalog
fluent setter for catalog Attribute.- Parameters:
 pCatalog- value to set- Returns:
 - Query
 
 - 
getExtras
Returns extras Attribute.- Returns:
 - extras Attribute
 
 - 
setExtras
Set extras Attribute.- Parameters:
 pExtras- value to set
 - 
withExtras
fluent setter for extras Attribute.- Parameters:
 pExtras- value to set- Returns:
 - Query
 
 - 
createQuery
create a Query 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>
 
 -