Database.createQuery()

Signature

String createQuery(String jdbcURI, String cursorName, String resultConceptURI, String sql, int pageSize, Object requestObj)

Domain

ACTION, CONDITION, BUI

Description

Opens a database cursor for the given sql query.

Parameters

NameTypeDescription
jdbcURIStringThe JDBC URI of the resource to be used for getting connection.
cursorNameStringThe name of the cursor to be opened
resultTypeURIStringa user can retrieve the column values by specifying column names as key
sqlStringThe sql query string, it can be a prepared statement query or a simple statement query.
pageSizeintThe number of concepts/records to be fetched from the database for each page
requestObjObjectarray of arguments

Returns

TypeDescription
StringThe cursor name of the cursor opened

Cautions

none