public class StoredProcedureSQLQueryImpl<T>
extends br.com.anteros.persistence.session.impl.SQLQueryImpl<T>
| Modifier and Type | Field and Description |
|---|---|
protected br.com.anteros.persistence.metadata.annotation.type.CallableType |
callableType |
protected br.com.anteros.persistence.session.ProcedureResult |
lastResult |
protected String |
procedureName |
allowDuplicateObjects, customHandler, DEFAULT_CACHE_SIZE, FIRST_RECORD, formatSql, identifier, lockOptions, namedParameters, parameters, parsedNamedParameters, parsedParameters, resultTransformer, session, showSql, timeOut| Constructor and Description |
|---|
StoredProcedureSQLQueryImpl(br.com.anteros.persistence.session.SQLSession session,
br.com.anteros.persistence.metadata.annotation.type.CallableType callableType) |
StoredProcedureSQLQueryImpl(br.com.anteros.persistence.session.SQLSession session,
Class<?> resultClass,
br.com.anteros.persistence.metadata.annotation.type.CallableType callableType) |
| Modifier and Type | Method and Description |
|---|---|
br.com.anteros.persistence.session.query.TypedSQLQuery<T> |
callableType(br.com.anteros.persistence.metadata.annotation.type.CallableType type) |
br.com.anteros.persistence.session.ProcedureResult |
execute() |
Object |
getOutputParameterValue(int position) |
Object |
getOutputParameterValue(String parameterName) |
List<T> |
getResultList() |
protected T |
getResultObjectByCustomHandler(br.com.anteros.persistence.handler.ResultSetHandler customHandler) |
T |
getSingleResult() |
br.com.anteros.persistence.session.query.TypedSQLQuery<T> |
namedStoredProcedureQuery(String name) |
br.com.anteros.persistence.session.query.TypedSQLQuery<T> |
procedureOrFunctionName(String procedureName) |
br.com.anteros.persistence.session.query.TypedSQLQuery<T> |
setParameters(Map parameters) |
br.com.anteros.persistence.session.query.TypedSQLQuery<T> |
setParameters(br.com.anteros.persistence.parameter.NamedParameter[] parameters) |
br.com.anteros.persistence.session.query.TypedSQLQuery<T> |
setParameters(Object[] parameters) |
addColumnResult, addColumnResult, addEntityResult, addResultClassDefinition, allowDuplicateObjects, appendLimit, clear, count, executeQuery, findNamedQuery, formatSql, getLockOptions, getNamedQuery, getObjectFromCache, getResultFromForeignKey, getResultFromSelect, getResultListAndResultSet, getResultListToLazyLoad, getResultObjectAndResultSetByCustomHandler, getResultObjectAndResultSetByEntityHandler, getResultOneToLazyLoad, getResultOneToLazyLoad, getScrollableResultSet, getSession, getSql, identifier, loadData, makeSelectElementCollection, makeSelectJoinTable, makeSelectMappedBy, makeSelectMapTable, namedQuery, nextAliasColumnName, parseSql, refresh, resultSetHandler, resultSetTransformer, set, set, setBigDecimal, setBigDecimal, setBlob, setBlob, setBlob, setBlob, setBoolean, setBoolean, setClob, setClob, setClob, setClob, setDate, setDate, setDateTime, setDateTime, setDouble, setDouble, setFirstResult, setFloat, setFloat, setInteger, setInteger, setLockMode, setLockOptions, setLong, setLong, setMaxResults, setNamedQuery, setNull, setNull, setObject, setObject, setParameters, setReadOnly, setString, setString, setTime, setTime, setTime, setTime, showSql, sql, timeOut, toString, validateParameterIndexprotected br.com.anteros.persistence.metadata.annotation.type.CallableType callableType
protected String procedureName
protected br.com.anteros.persistence.session.ProcedureResult lastResult
public StoredProcedureSQLQueryImpl(br.com.anteros.persistence.session.SQLSession session,
br.com.anteros.persistence.metadata.annotation.type.CallableType callableType)
public StoredProcedureSQLQueryImpl(br.com.anteros.persistence.session.SQLSession session,
Class<?> resultClass,
br.com.anteros.persistence.metadata.annotation.type.CallableType callableType)
public Object getOutputParameterValue(int position)
getOutputParameterValue in interface br.com.anteros.persistence.session.query.SQLQuerygetOutputParameterValue in class br.com.anteros.persistence.session.impl.SQLQueryImpl<T>public Object getOutputParameterValue(String parameterName)
getOutputParameterValue in interface br.com.anteros.persistence.session.query.SQLQuerygetOutputParameterValue in class br.com.anteros.persistence.session.impl.SQLQueryImpl<T>public br.com.anteros.persistence.session.ProcedureResult execute()
throws Exception
public br.com.anteros.persistence.session.query.TypedSQLQuery<T> namedStoredProcedureQuery(String name)
namedStoredProcedureQuery in interface br.com.anteros.persistence.session.query.SQLQuerynamedStoredProcedureQuery in interface br.com.anteros.persistence.session.query.TypedSQLQuery<T>namedStoredProcedureQuery in class br.com.anteros.persistence.session.impl.SQLQueryImpl<T>public T getSingleResult() throws Exception
getSingleResult in interface br.com.anteros.persistence.session.query.SQLQuerygetSingleResult in interface br.com.anteros.persistence.session.query.TypedSQLQuery<T>getSingleResult in class br.com.anteros.persistence.session.impl.SQLQueryImpl<T>Exceptionprotected T getResultObjectByCustomHandler(br.com.anteros.persistence.handler.ResultSetHandler customHandler) throws Exception
Exceptionpublic br.com.anteros.persistence.session.query.TypedSQLQuery<T> callableType(br.com.anteros.persistence.metadata.annotation.type.CallableType type)
public br.com.anteros.persistence.session.query.TypedSQLQuery<T> procedureOrFunctionName(String procedureName)
procedureOrFunctionName in interface br.com.anteros.persistence.session.query.SQLQueryprocedureOrFunctionName in interface br.com.anteros.persistence.session.query.TypedSQLQuery<T>procedureOrFunctionName in class br.com.anteros.persistence.session.impl.SQLQueryImpl<T>public br.com.anteros.persistence.session.query.TypedSQLQuery<T> setParameters(Object[] parameters) throws Exception
public br.com.anteros.persistence.session.query.TypedSQLQuery<T> setParameters(Map parameters) throws Exception
Copyright © 2019 Anteros Tecnologia. All rights reserved.