Package org.ivoa.dm.registry.ssa
Class Query
java.lang.Object
org.ivoa.dm.registry.ssa.Query
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="SSA: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 PosParamthe center position the search cone given in decimal degrees.protected StringFully specified test query formatted as an URL argument list in the syntax specified by the SSA standard.protected Doublethe size of the search radius. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Querycreate a Query in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()getPos()Returns pos Attribute.Returns queryDataCmd Attribute.getSize()Returns size Attribute.voidSet pos Attribute.voidsetQueryDataCmd(String pQueryDataCmd) Set queryDataCmd Attribute.voidSet size Attribute.voidupdateUsing(Query other) Update this object with the content of the given object.fluent setter for pos Attribute.withQueryDataCmd(String pQueryDataCmd) fluent setter for queryDataCmd Attribute.fluent setter for size Attribute.
-
Field Details
-
_id
inserted database key -
pos
@VoDml(id="SSA:Query.pos", role=composition, type="SSA:PosParam", typeRole=objectType) protected PosParam posthe center position the search cone given in decimal degrees. composition pos : ( Multiplicity : 0..1 ) -
size
@VoDml(id="SSA:Query.size", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double sizethe size of the search radius. : Attribute size : multiplicity 0..1 -
queryDataCmd
@VoDml(id="SSA:Query.queryDataCmd", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String queryDataCmdFully specified test query formatted as an URL argument list in the syntax specified by the SSA standard. The list must exclude the REQUEST argument which is assumed to be set to 'queryData'. This value must be in the form of name=value pairs delimited with ampersands. A query may then be formed by appending to the base URL the request argument, 'REQUEST=queryData', followed by the contents of this element. : Attribute queryDataCmd : multiplicity 0..1
-
-
Constructor Details
-
Query
public Query()Creates a new Query -
Query
full parameter constructor.- Parameters:
pos- the center position the search cone given in decimal degrees.size- the size of the search radius.queryDataCmd- Fully specified test query formatted as an URL argument list in the syntax specified by the SSA standard. The list must exclude the REQUEST argument which is assumed to be set to 'queryData'. This value must be in the form of name=value pairs delimited with ampersands. A query may then be formed by appending to the base URL the request argument, 'REQUEST=queryData', followed by the contents of this element.
-
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.
-
getPos
Returns pos Attribute.- Returns:
- pos Attribute
-
setPos
Set pos Attribute.- Parameters:
pPos- value to set
-
withPos
fluent setter for pos Attribute.- Parameters:
pPos- value to set- Returns:
- Query
-
getSize
Returns size Attribute.- Returns:
- size Attribute
-
setSize
Set size Attribute.- Parameters:
pSize- value to set
-
withSize
fluent setter for size Attribute.- Parameters:
pSize- value to set- Returns:
- Query
-
getQueryDataCmd
Returns queryDataCmd Attribute.- Returns:
- queryDataCmd Attribute
-
setQueryDataCmd
Set queryDataCmd Attribute.- Parameters:
pQueryDataCmd- value to set
-
withQueryDataCmd
fluent setter for queryDataCmd Attribute.- Parameters:
pQueryDataCmd- 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>
-