Class ResultSetMappingQuery
- All Implemented Interfaces:
- Query
- 
Constructor SummaryConstructorsConstructorDescriptionResultSetMappingQuery(QueryHolder query, ConnectionWrapper connection, SparqlResultMapper mapper, UnitOfWork uow) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidExecute an update or delete statement.intThe position of the first result the query object was set to retrieve.getHints()Gets the hints and associated values that are in effect for this query instance.intThe maximum number of results the query object was set to retrieve.Parameter<?>getParameter(int position) Gets the parameter object corresponding to the declared positional parameter with the given position.Parameter<?>getParameter(String name) Gets the parameter object corresponding to the declared parameter of the given name.Gets the parameter objects corresponding to the declared parameters of the query.getParameterValue(int position) Returns the input value bound to the positional parameter.<T> TgetParameterValue(Parameter<T> parameter) Returns the input value bound to the parameter.getParameterValue(String name) Returns the input value bound to the named parameter.booleanhasParameter(int position) booleanhasParameter(String name) booleanReturns a boolean indicating whether a value has been bound to the parameter.Sets a query hint.setParameter(int position, Object value) Binds an argument value to a positional parameter.setParameter(int position, String value, String language) Binds a String argument value to a positional parameter.setParameter(Parameter<String> parameter, String value, String language) Binds the value of a String Parameter.<T> QuerysetParameter(Parameter<T> parameter, T value) Binds the value of a Parameter object.setParameter(String name, Object value) Binds an argument value to a named parameter.setParameter(String name, String value, String language) Binds a String argument value to a named parameter.setUntypedParameter(int position, Object value) Binds an argument value to a positional parameter.<T> QuerysetUntypedParameter(Parameter<T> parameter, T value) Binds the value of a Parameter object.setUntypedParameter(String name, Object value) Binds an argument value to a named parameter.Methods inherited from class cz.cvut.kbss.jopa.model.QueryImplgetResultList, getResultStream, getSingleResult, setFirstResult, setMaxResultsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cz.cvut.kbss.jopa.model.query.QueryexecuteUpdate, getFirstResult, getHints, getMaxResults, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound, setHint, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setUntypedParameter, setUntypedParameter, setUntypedParameter
- 
Constructor Details- 
ResultSetMappingQuerypublic ResultSetMappingQuery(QueryHolder query, ConnectionWrapper connection, SparqlResultMapper mapper, UnitOfWork uow) 
 
- 
- 
Method Details- 
executeUpdatepublic void executeUpdate()Description copied from interface:QueryExecute an update or delete statement.- Specified by:
- executeUpdatein interface- Query
 
- 
hasParameter
- 
hasParameterpublic boolean hasParameter(int position) 
- 
getParameterDescription copied from interface:QueryGets the parameter object corresponding to the declared positional parameter with the given position. This method is not required to be supported for native queries.- Specified by:
- getParameterin interface- Query
- Parameters:
- position- position
- Returns:
- parameter object
 
- 
getParameterDescription copied from interface:QueryGets the parameter object corresponding to the declared parameter of the given name. This method is not required to be supported for native queries.- Specified by:
- getParameterin interface- Query
- Parameters:
- name- Parameter name
- Returns:
- parameter object
 
- 
getParametersDescription copied from interface:QueryGets the parameter objects corresponding to the declared parameters of the query. Returns empty set if the query has no parameters. This method is not required to be supported for native queries.- Specified by:
- getParametersin interface- Query
- Returns:
- set of parameter objects
 
- 
isBoundDescription copied from interface:QueryReturns a boolean indicating whether a value has been bound to the parameter.
- 
getParameterValueDescription copied from interface:QueryReturns the input value bound to the named parameter.- Specified by:
- getParameterValuein interface- Query
- Parameters:
- name- parameter name
- Returns:
- parameter value
 
- 
getParameterValueDescription copied from interface:QueryReturns the input value bound to the positional parameter.- Specified by:
- getParameterValuein interface- Query
- Parameters:
- position- position
- Returns:
- parameter value
 
- 
getParameterValueDescription copied from interface:QueryReturns the input value bound to the parameter.- Specified by:
- getParameterValuein interface- Query
- Parameters:
- parameter- parameter object
- Returns:
- parameter value
 
- 
setParameterDescription copied from interface:QueryBinds an argument value to a positional parameter.This version exploits the type of the parameter value and maps it to the corresponding XSD datatype (if it exists). - Specified by:
- setParameterin interface- Query
- Parameters:
- position- position
- value- parameter value
- Returns:
- this query instance
- See Also:
 
- 
setParameterDescription copied from interface:QueryBinds a String argument value to a positional parameter.- Specified by:
- setParameterin interface- Query
- Parameters:
- position- position
- value- parameter value
- language- language tag for the parameter value
- Returns:
- this query instance
 
- 
setParameterDescription copied from interface:QueryBinds an argument value to a named parameter.This version exploits the type of the parameter value and maps it to the corresponding XSD datatype (if it exists). - Specified by:
- setParameterin interface- Query
- Parameters:
- name- parameter name
- value- parameter value
- Returns:
- this query instance
- See Also:
 
- 
setParameterDescription copied from interface:QueryBinds a String argument value to a named parameter.- Specified by:
- setParameterin interface- Query
- Parameters:
- name- parameter name
- value- parameter value
- language- language tag for the parameter value
- Returns:
- this query instance
 
- 
setUntypedParameterDescription copied from interface:QueryBinds an argument value to a positional parameter.This version does not express the type of the value in the query. Instead, it inserts the value directly into the query string. It can be useful, e.g., for specifying values in filters. Do not use this method to set query limit and offset, use the Query.setFirstResult(int)andQuery.setMaxResults(int)methods instead.- Specified by:
- setUntypedParameterin interface- Query
- Parameters:
- position- position
- value- parameter value
- Returns:
- this query instance
 
- 
setUntypedParameterDescription copied from interface:QueryBinds an argument value to a named parameter.This version does not express the type of the value in the query. Instead, it inserts the value directly into the query string. It can be useful, e.g., for specifying values in filters. Do not use this method to set query limit and offset, use the Query.setFirstResult(int)andQuery.setMaxResults(int)methods instead.- Specified by:
- setUntypedParameterin interface- Query
- Parameters:
- name- parameter name
- value- parameter value
- Returns:
- this query instance
 
- 
getMaxResultspublic int getMaxResults()Description copied from interface:QueryThe maximum number of results the query object was set to retrieve.Returns Integer.MAX_VALUE if Query.setMaxResults(int)was not applied to the query object.- Specified by:
- getMaxResultsin interface- Query
- Returns:
- maximum number of results
 
- 
getFirstResultpublic int getFirstResult()Description copied from interface:QueryThe position of the first result the query object was set to retrieve.Returns 0 if setFirstResultwas not applied to the query object.- Specified by:
- getFirstResultin interface- Query
- Returns:
- position of the first result
 
- 
setParameterDescription copied from interface:QueryBinds the value of a Parameter object.This version exploits the type of the parameter value and maps it to the corresponding XSD datatype (if it exists). - Specified by:
- setParameterin interface- Query
- Parameters:
- parameter- parameter object
- value- parameter value
- Returns:
- this query instance
- See Also:
 
- 
setParameterDescription copied from interface:QueryBinds the value of a String Parameter.- Specified by:
- setParameterin interface- Query
- Parameters:
- parameter- parameter object
- value- parameter value
- language- language tag for the parameter value
- Returns:
- this query instance
 
- 
setUntypedParameterDescription copied from interface:QueryBinds the value of a Parameter object.This version does not express the type of the value in the query. Instead, it inserts the value directly into the query string. It can be useful, e.g., for specifying values in filters. Do not use this method to set query limit and offset, use the Query.setFirstResult(int)andQuery.setMaxResults(int)methods instead.- Specified by:
- setUntypedParameterin interface- Query
- Parameters:
- parameter- parameter object
- value- parameter value
- Returns:
- this query instance
 
- 
setHintDescription copied from interface:QuerySets a query hint.The hint elements may be used to specify query properties and hints. Vendor-specific hints that are not recognized by a provider are silently ignored. 
- 
getHintsDescription copied from interface:QueryGets the hints and associated values that are in effect for this query instance.
 
-