public ClosableIterator < Tuple > callStoredProcedure ( EmbeddedCacheManager embeddedCacheManager , String storedProcedureName , ProcedureQueryParameters queryParameters , ClassLoaderService classLoaderService ) { validate ( queryParameters ) ; Cache < String , String > cache = embeddedCacheManager . getCache ( STORED_PROCEDURES_CACHE_NAME , true ) ; String className = cache . getOrDefault ( storedProcedureName , storedProcedureName ) ; Callable < ? > callable = instantiate ( storedProcedureName , className , classLoaderService ) ; setParams ( storedProcedureName , queryParameters , callable ) ; Object res = execute ( storedProcedureName , embeddedCacheManager , callable ) ; return extractResultSet ( storedProcedureName , res ) ; }
Returns the result of a stored procedure executed on the backend .