![]() |
Qore jni Module 2.4.0
|
Public Member Methods | |
| Mapper (QoreObject obj) | |
| Object | getRuntime (String key) throws Throwable |
| String | getFieldName (String fname) throws Throwable |
| HashMap< String, Object > | validKeys () throws Throwable |
| HashMap< String, Object > | validTypes () throws Throwable |
| HashMap< String, Object > | optionKeys () throws Throwable |
| HashMap< String, Object > | getInputRecord () throws Throwable |
| HashMap< String, Object > | getOutputRecord () throws Throwable |
| MapperOutputRecordIterator | getOutputIterator () throws Throwable |
| void | commit () throws Throwable |
| void | rollback () throws Throwable |
| void | flushOutput () throws Throwable |
| void | discardOutput () throws Throwable |
| void | runAutonomous () throws Throwable |
| HashMap< String, Object >[] | mapAll (Map< String, Object >[] recs) throws Throwable |
| HashMap< String, Object >[] | mapAll (Map< String, Object > recs) throws Throwable |
| HashMap< String, Object > | mapData (Map< String, Object > rec) throws Throwable |
| Object | mapAuto (Object recs) throws Throwable |
| Hash | mapBulk (Map< String, Object > rec, Map< String, Object > crec) throws Throwable |
| Public Member Methods inherited from org.qore.jni.QoreObjectWrapper | |
| QoreObjectWrapper (QoreObject obj) | |
| creates the wrapper object with the Qore object | |
| void | release () |
| releases the Qore object; do not call any further methods on the object after this call | |
| QoreObject | getQoreObject () |
| returns the Qore object | |
| String | className () |
| returns the class name for the Qore object | |
| boolean | instanceOf (String class_name) |
| returns true if the object is an instance of the given class | |
Additional Inherited Members | |
| Private Attributes inherited from org.qore.jni.QoreObjectWrapper | |
| QoreObject | obj |
| the wrapper Qore object | |
Java wrapper for the
|
inline |
creates the object as a wrapper for the Qore object
| obj | the Qore object |
|
inline |
Commits data written to the output data provider if the output data provider supports transaction management Has no effect if the output data provider does not support transaction management
| MAPPER-OUTPUT-PROVIDER-ERROR | no output provider available in this mapper |
Reimplemented in org.qore.lang.tablemapper.AbstractSqlStatementOutboundMapper, and org.qore.lang.tablemapper.InboundTableMapper.
|
inline |
Discards any buffered data This method should always be called if an error occurs in a bulk output operation
| MAPPER-OUTPUT-BULK-ERROR | no output bulk operation is in progress |
|
inline |
Flushes any remaining data to the data provider This method should always be called for successful bulk output operations with an output provider
| MAPPER-OUTPUT-BULK-ERROR | no output bulk operation is in progress |
|
inline |
| fname | the field |
|
inline |
"input" option
|
inline |
| MAPPER-INPUT-PROVIDER-ERROR | if no input_provider option was provided in the constructor or the input provider uses the request/response API |
|
inline |
"output" option
|
inline |
get current
| key | the runtime option key |
|
inline |
maps all input records and returns the mapped data as a list of output records this method applies the
| recs | a Map<String, Object> of lists of input records |
| MISSING-INPUT | a field marked mandatory is missing |
| STRING-TOO-LONG | a field value exceeds the maximum value and the 'trunc' key is not set |
| INVALID-NUMBER | the field is marked as numeric but the input value contains non-numeric data |
|
inline |
maps all input records and returns the mapped data as a list of output records this method applies the
| recs | the list of input records |
| MISSING-INPUT | a field marked mandatory is missing |
| STRING-TOO-LONG | a field value exceeds the maximum value and the 'trunc' key is not set |
| INVALID-NUMBER | the field is marked as numeric but the input value contains non-numeric data |
|
inline |
maps all input record(s) automatically and returns the mapped data this method applies the
| recs | input records (one record or more), can be represented by list or Map<String, Object> |
| MISSING-INPUT | a field marked mandatory is missing |
| STRING-TOO-LONG | a field value exceeds the maximum value and the 'trunc' key is not set |
| INVALID-NUMBER | the field is marked as numeric but the input value contains non-numeric data |
| MAPPER-INPUT-TYPE-ERROR | records input type is not acceptable |
|
inline |
maps a set of records in Map<String, Object> of lists format; returns mapped data in a Hash of lists format
| rec | the input record or record set in case a Map<String, Object> of lists is passed |
| crec | an optional Map<String, Object> of data to be added to each input row before mapping |
N rows of a column C and 'crec = {"C": "mystring"}' then the output will be as if there was 'N' rows with C = "mystring" on the input. | MISSING-INPUT | a field marked mandatory is missing |
| STRING-TOO-LONG | a field value exceeds the maximum value and the 'trunc' key is not set |
| INVALID-NUMBER | the field is marked as numeric but the input value contains non-numeric data |
|
inline |
processes the input record and returns a Map<String, Object> of the mapped values where the keys in the Map<String, Object> returned are the target field names; the order of the fields in the Map<String, Object> returned is the same order as the keys in the map hash.
| rec | the record to translate |
| MISSING-INPUT | a field marked mandatory is missing |
| STRING-TOO-LONG | a field value exceeds the maximum value and the 'trunc' key is not set |
| INVALID-NUMBER | the field is marked as numeric but the input value contains non-numeric data |
|
inline |
|
inline |
Rolls back data written to the output data provider Has no effect if the output data provider does not support transaction management
| MAPPER-OUTPUT-PROVIDER-ERROR | no output provider available in this mapper |
Reimplemented in org.qore.lang.tablemapper.AbstractSqlStatementOutboundMapper, and org.qore.lang.tablemapper.InboundTableMapper.
|
inline |
Runs the input and output mappers with data providers on each end autonomously
| MAPPER-INPUT-PROVIDER-ERROR | no input provider available in this mapper |
| MAPPER-OUTPUT-PROVIDER-ERROR | no output provider available in this mapper |
|
inline |
|
inline |