Qore jni Module 2.4.0
Loading...
Searching...
No Matches
org.qore.lang.tablemapper.AbstractSqlStatementOutboundMapper Class Reference

Java wrapper for the TableMapper::AbstractSqlStatementOutboundMapper class in Qore. More...

Inheritance diagram for org.qore.lang.tablemapper.AbstractSqlStatementOutboundMapper:
org.qore.lang.tablemapper.RawSqlStatementOutboundMapper org.qore.lang.tablemapper.SqlStatementOutboundMapper

Public Member Methods

 AbstractSqlStatementOutboundMapper (QoreObject obj)
 creates the object as a wrapper for the Qore object
 
void commit () throws Throwable
 commits the transaction and frees the Qore::SQL::AbstractDatasource transaction thread resource
 
void rollback () throws Throwable
 rolls the transaction back and frees the Qore::SQL::AbstractDatasource transaction thread resource
 
HashMap< String, Object > getData () throws Throwable
 Retrieve mapped data as a hash of lists.
 
HashMap< String, Object >[] getDataRows () throws Throwable
 Retrieve mapped data as a list of hashes.
 

Detailed Description

Java wrapper for the TableMapper::AbstractSqlStatementOutboundMapper class in Qore.

Note
Loads and initializes the Qore library and the jni module in static initialization if necessary
Deprecated:
Use dynamic imports instead: import qoremod.TableMapper.AbstractSqlStatementOutboundMapper;

Member Function Documentation

◆ getData()

HashMap< String, Object > org.qore.lang.tablemapper.AbstractSqlStatementOutboundMapper.getData ( ) throws Throwable
inline

Retrieve mapped data as a hash of lists.

Returns
*hash with data or null in case there are no more data available.

The size of the batch is driven by the select_block option passed in the constructor.

The hash is in Qore::SQL::AbstractDatasource::select() form - meaning it is a hash with column names as keys. Values are lists of column values. This data structure is used for Qore::context statement or BulksSqlUtil operations.

◆ getDataRows()

HashMap< String, Object >[] org.qore.lang.tablemapper.AbstractSqlStatementOutboundMapper.getDataRows ( ) throws Throwable
inline

Retrieve mapped data as a list of hashes.

Returns
list with data or null in case there are no more data available.

Size of the batch is driven by the select_block option passed in the constructor.

List is in Qore::SQL::AbstractDatasource::selectRows() form - meaning it is a list with hashes, where every hash has column names as keys with single values as hash values.


The documentation for this class was generated from the following file: