public interface StoredProcedureQuery extends Query
| Modifier and Type | Method and Description | 
|---|---|
| boolean | execute()Return true if the first result corresponds to a result set,
 and false if it is an update count or if there are no results
 other than through INOUT and OUT parameters, if any. | 
| Object | getOutputParameterValue(int position)Retrieve a value passed back from the procedure through an
 INOUT or OUT parameter. | 
| Object | getOutputParameterValue(String parameterName)Retrieve a value passed back from the procedure through an
 INOUT or OUT parameter. | 
| int | getUpdateCount()Return the update count or -1 if there is no pending result
 or if the next result is not an update count. | 
| boolean | hasMoreResults()Return true if the next result corresponds to a result set,
 and false if it is an update count or if there are no results
 other than through INOUT and OUT parameters, if any. | 
| StoredProcedureQuery | registerStoredProcedureParameter(int position,
                                Class type,
                                ParameterMode mode)Register a positional parameter. | 
| StoredProcedureQuery | registerStoredProcedureParameter(String parameterName,
                                Class type,
                                ParameterMode mode)Register a named parameter. | 
| StoredProcedureQuery | setFlushMode(FlushModeType flushMode)Set the flush mode type to be used for the query execution. | 
| StoredProcedureQuery | setHint(String hintName,
       Object value)Set a query property or hint. | 
| StoredProcedureQuery | setParameter(int position,
            Calendar value,
            TemporalType temporalType)Bind an instance of java.util.Calendar to a positional
 parameter. | 
| StoredProcedureQuery | setParameter(int position,
            Date value,
            TemporalType temporalType)Bind an instance of java.util.Date to a positional parameter. | 
| StoredProcedureQuery | setParameter(int position,
            Object value)Bind an argument to a positional parameter. | 
| StoredProcedureQuery | setParameter(Parameter<Calendar> param,
            Calendar value,
            TemporalType temporalType)Bind an instance of java.util.Calendar to a Parameter object. | 
| StoredProcedureQuery | setParameter(Parameter<Date> param,
            Date value,
            TemporalType temporalType)Bind an instance of java.util.Date to a Parameter object. | 
| <T> StoredProcedureQuery | setParameter(Parameter<T> param,
            T value)Bind the value of a Parameter object. | 
| StoredProcedureQuery | setParameter(String name,
            Calendar value,
            TemporalType temporalType)Bind an instance of java.util.Calendar to a named parameter. | 
| StoredProcedureQuery | setParameter(String name,
            Date value,
            TemporalType temporalType)Bind an instance of java.util.Date to a named parameter. | 
| StoredProcedureQuery | setParameter(String name,
            Object value)Bind an argument to a named parameter. | 
executeUpdate, getFirstResult, getFlushMode, getHints, getLockMode, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, getResultList, getSingleResult, isBound, setFirstResult, setLockMode, setMaxResults, unwrapStoredProcedureQuery setHint(String hintName, Object value)
setHint in interface QueryhintName - name of the property or hintvalue - value for the property or hintIllegalArgumentException - if the second argument is not
 valid for the implementation<T> StoredProcedureQuery setParameter(Parameter<T> param, T value)
setParameter in interface Queryparam - parameter objectvalue - parameter valueIllegalArgumentException - if the parameter does not
 correspond to a parameter of the queryStoredProcedureQuery setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType)
setParameter in interface Queryparam - parameter objectvalue - parameter valuetemporalType - temporal typeIllegalArgumentException - if the parameter does not
 correspond to a parameter of the queryStoredProcedureQuery setParameter(Parameter<Date> param, Date value, TemporalType temporalType)
setParameter in interface Queryparam - parameter objectvalue - parameter valuetemporalType - temporal typeIllegalArgumentException - if the parameter does not
 correspond to a parameter of the queryStoredProcedureQuery setParameter(String name, Object value)
setParameter in interface Queryname - parameter namevalue - parameter valueIllegalArgumentException - if the parameter name does
 not correspond to a parameter of the query or if the
 argument is of incorrect typeStoredProcedureQuery setParameter(String name, Calendar value, TemporalType temporalType)
setParameter in interface Queryname - parameter namevalue - parameter valuetemporalType - temporal typeIllegalArgumentException - if the parameter name does
 not correspond to a parameter of the query or if the
 value argument is of incorrect typeStoredProcedureQuery setParameter(String name, Date value, TemporalType temporalType)
setParameter in interface Queryname - parameter namevalue - parameter valuetemporalType - temporal typeIllegalArgumentException - if the parameter name does
 not correspond to a parameter of the query or if the
 value argument is of incorrect typeStoredProcedureQuery setParameter(int position, Object value)
setParameter in interface Queryposition - positionvalue - parameter valueIllegalArgumentException - if position does not
 correspond to a positional parameter of the query
 or if the argument is of incorrect typeStoredProcedureQuery setParameter(int position, Calendar value, TemporalType temporalType)
setParameter in interface Queryposition - positionvalue - parameter valuetemporalType - temporal typeIllegalArgumentException - if position does not
 correspond to a positional parameter of the query or
 if the value argument is of incorrect typeStoredProcedureQuery setParameter(int position, Date value, TemporalType temporalType)
setParameter in interface Queryposition - positionvalue - parameter valuetemporalType - temporal typeIllegalArgumentException - if position does not
 correspond to a positional parameter of the query or
 if the value argument is of incorrect typeStoredProcedureQuery setFlushMode(FlushModeType flushMode)
setFlushMode in interface QueryflushMode - flush modeStoredProcedureQuery registerStoredProcedureParameter(int position, Class type, ParameterMode mode)
position - parameter positiontype - type of the parametermode - parameter modeStoredProcedureQuery registerStoredProcedureParameter(String parameterName, Class type, ParameterMode mode)
parameterName - name of the parameter as registered or
 
 specified in metadatatype - type of the parametermode - parameter modeObject getOutputParameterValue(int position)
position - parameter positionIllegalArgumentException - if the position does
 not correspond to a parameter of the query or is
 not an INOUT or OUT parameterObject getOutputParameterValue(String parameterName)
parameterName - name of the parameter as registered or
 specified in metadataIllegalArgumentException - if the parameter name does
 not correspond to a parameter of the query or is
 not an INOUT or OUT parameterboolean execute()
QueryTimeoutException - if the query execution exceeds
 the query timeout value set and only the statement is
 rolled backPersistenceException - if the query execution exceeds
 the query timeout value set and the transaction
 is rolled backboolean hasMoreResults()
QueryTimeoutException - if the query execution exceeds
 the query timeout value set and only the statement is
 rolled backPersistenceException - if the query execution exceeds
 the query timeout value set and the transaction
 is rolled backint getUpdateCount()
QueryTimeoutException - if the query execution exceeds
 the query timeout value set and only the statement is
 rolled backPersistenceException - if the query execution exceeds
 the query timeout value set and the transaction
 is rolled backCopyright © 2018 JBoss by Red Hat. All rights reserved.