public class ProcedureCallImpl extends AbstractBasicQueryContractImpl implements ProcedureCall, ResultContext
ProcedureCall| Constructor and Description |
|---|
ProcedureCallImpl(SessionImplementor session,
String procedureName)
The no-returns form.
|
ProcedureCallImpl(SessionImplementor session,
String procedureName,
Class... resultClasses)
The result Class(es) return form
|
ProcedureCallImpl(SessionImplementor session,
String procedureName,
String... resultSetMappings)
The result-set-mapping(s) return form
|
| Modifier and Type | Method and Description |
|---|---|
ProcedureCallImpl |
addSynchronizedEntityClass(Class entityClass)
Adds an entity for (a) auto-flush checking and (b) query result cache invalidation checking.
|
ProcedureCallImpl |
addSynchronizedEntityName(String entityName)
Adds an entity name for (a) auto-flush checking and (b) query result cache invalidation checking.
|
ProcedureCallImpl |
addSynchronizedQuerySpace(String querySpace)
Adds a query space.
|
protected void |
addSynchronizedQuerySpaces(EntityPersister persister) |
QueryParameters |
buildQueryParametersObject() |
ParameterRegistrationImplementor[] |
collectRefCursorParameters()
Collects any parameter registrations which indicate a REF_CURSOR parameter type/mode.
|
ProcedureCallMemento |
extractMemento(Map<String,Object> hints)
Extract the disconnected representation of this call.
|
ProcedureOutputs |
getOutputs()
Retrieves access to outputs of this procedure call.
|
ParameterRegistrationImplementor |
getParameterRegistration(int position)
Retrieve a previously registered parameter memento by the position under which it was registered.
|
ParameterRegistrationImplementor |
getParameterRegistration(String name)
Retrieve a previously registered parameter memento by the name under which it was registered.
|
ParameterStrategy |
getParameterStrategy() |
String |
getProcedureName()
Get the name of the stored procedure to be called.
|
QueryParameters |
getQueryParameters() |
NativeSQLQueryReturn[] |
getQueryReturns() |
List<ParameterRegistration> |
getRegisteredParameters()
Retrieve all registered parameters.
|
Type[] |
getReturnTypes()
Return the Hibernate types of the query results.
|
SessionImplementor |
getSession() |
String |
getSql() |
Set<String> |
getSynchronizedQuerySpaces()
Obtain the list of query spaces the query is synchronized on.
|
<T> ParameterRegistration<T> |
registerParameter(int position,
Class<T> type,
ParameterMode mode)
Basic form for registering a positional parameter.
|
<T> ParameterRegistration<T> |
registerParameter(String name,
Class<T> type,
ParameterMode mode)
Basic form for registering a named parameter.
|
ProcedureCall |
registerParameter0(int position,
Class type,
ParameterMode mode)
|
ProcedureCall |
registerParameter0(String name,
Class type,
ParameterMode mode)
|
protected Set<String> |
synchronizedQuerySpaces()
Use this form instead of
getSynchronizedQuerySpaces() when you want to make sure the
underlying Set is instantiated (aka, on add) |
getCacheMode, getCacheRegion, getFetchSize, getFlushMode, getTimeout, isCacheable, isReadOnly, session, setCacheable, setCacheMode, setCacheRegion, setFetchSize, setFlushMode, setReadOnly, setTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCacheMode, getCacheRegion, getFetchSize, getFlushMode, getTimeout, isCacheable, isReadOnly, setCacheable, setCacheMode, setCacheRegion, setFetchSize, setFlushMode, setReadOnly, setTimeoutpublic ProcedureCallImpl(SessionImplementor session, String procedureName)
session - The sessionprocedureName - The name of the procedure to callpublic ProcedureCallImpl(SessionImplementor session, String procedureName, Class... resultClasses)
session - The sessionprocedureName - The name of the procedure to callresultClasses - The classes making up the resultpublic ProcedureCallImpl(SessionImplementor session, String procedureName, String... resultSetMappings)
session - The sessionprocedureName - The name of the procedure to callresultSetMappings - The names of the result set mappings making up the resultpublic SessionImplementor getSession()
getSession in interface ResultContextpublic ParameterStrategy getParameterStrategy()
public String getProcedureName()
ProcedureCallgetProcedureName in interface ProcedureCallpublic String getSql()
getSql in interface ResultContextpublic NativeSQLQueryReturn[] getQueryReturns()
getQueryReturns in interface ResultContextpublic <T> ParameterRegistration<T> registerParameter(int position, Class<T> type, ParameterMode mode)
ProcedureCallregisterParameter in interface ProcedureCallT - The parameterized Java type of the parameter.position - The positiontype - The Java type of the parametermode - The parameter mode (in, out, inout)public ProcedureCall registerParameter0(int position, Class type, ParameterMode mode)
ProcedureCallregisterParameter0 in interface ProcedureCallposition - The positiontype - The Java type of the parametermode - The parameter mode (in, out, inout)this, for method chainingpublic ParameterRegistrationImplementor getParameterRegistration(int position)
ProcedureCallgetParameterRegistration in interface ProcedureCallposition - The parameter positionpublic <T> ParameterRegistration<T> registerParameter(String name, Class<T> type, ParameterMode mode)
ProcedureCallregisterParameter in interface ProcedureCallT - The parameterized Java type of the parameter.name - The parameter nametype - The Java type of the parametermode - The parameter mode (in, out, inout)public ProcedureCall registerParameter0(String name, Class type, ParameterMode mode)
ProcedureCallregisterParameter0 in interface ProcedureCallname - The parameter nametype - The Java type of the parametermode - The parameter mode (in, out, inout)public ParameterRegistrationImplementor getParameterRegistration(String name)
ProcedureCallgetParameterRegistration in interface ProcedureCallname - The parameter namepublic List<ParameterRegistration> getRegisteredParameters()
ProcedureCallgetRegisteredParameters in interface ProcedureCallpublic ProcedureOutputs getOutputs()
ProcedureCallgetOutputs in interface ProcedureCallpublic Type[] getReturnTypes() throws HibernateException
BasicQueryContractgetReturnTypes in interface BasicQueryContractHibernateExceptionprotected Set<String> synchronizedQuerySpaces()
getSynchronizedQuerySpaces() when you want to make sure the
underlying Set is instantiated (aka, on add)public Set<String> getSynchronizedQuerySpaces()
SynchronizeableQuerygetSynchronizedQuerySpaces in interface ResultContextgetSynchronizedQuerySpaces in interface SynchronizeableQuerypublic ProcedureCallImpl addSynchronizedQuerySpace(String querySpace)
SynchronizeableQueryaddSynchronizedQuerySpace in interface ProcedureCalladdSynchronizedQuerySpace in interface SynchronizeableQueryquerySpace - The query space to be auto-flushed for this query.this, for method chainingpublic ProcedureCallImpl addSynchronizedEntityName(String entityName)
SynchronizeableQuerySynchronizeableQuery.addSynchronizedQuerySpace(java.lang.String) for all tables associated with the given entity.addSynchronizedEntityName in interface ProcedureCalladdSynchronizedEntityName in interface SynchronizeableQueryentityName - The name of the entity upon whose defined query spaces we should additionally synchronize.this, for method chainingprotected void addSynchronizedQuerySpaces(EntityPersister persister)
public ProcedureCallImpl addSynchronizedEntityClass(Class entityClass)
SynchronizeableQuerySynchronizeableQuery.addSynchronizedQuerySpace(java.lang.String) for all tables associated with the given entity.addSynchronizedEntityClass in interface ProcedureCalladdSynchronizedEntityClass in interface SynchronizeableQueryentityClass - The class of the entity upon whose defined query spaces we should additionally synchronize.this, for method chainingpublic QueryParameters getQueryParameters()
getQueryParameters in interface ResultContextpublic QueryParameters buildQueryParametersObject()
buildQueryParametersObject in class AbstractBasicQueryContractImplpublic ParameterRegistrationImplementor[] collectRefCursorParameters()
public ProcedureCallMemento extractMemento(Map<String,Object> hints)
ProcedureCallextractMemento in interface ProcedureCallhints - The hints to incorporate into the mementoCopyright © 2016 JBoss by Red Hat. All rights reserved.