Qore jni Module
1.1.3
|
Java wrapper for the Mapper.Mapper class in Qore. More...
Public Member Methods | |
Mapper (QoreObject obj) | |
creates the object as a wrapper for the Qore object | |
Object | getRuntime (String key) throws Throwable |
get current runtime option value for a key More... | |
String | getFieldName (String fname) throws Throwable |
returns a descriptive name of the given field if possible, otherwise returns the field name itself | |
HashMap< String, Object > | validKeys () throws Throwable |
returns a list of valid field keys for this class (can be overridden in subclasses) More... | |
HashMap< String, Object > | validTypes () throws Throwable |
returns a list of valid field types for this class (can be overridden in subclasses) More... | |
HashMap< String, Object > | optionKeys () throws Throwable |
returns a list of valid constructor options for this class (can be overridden in subclasses) More... | |
HashMap< String, Object > | getInputRecord () throws Throwable |
returns the value of the "input" option More... | |
HashMap< String, Object > | getOutputRecord () throws Throwable |
returns the value of the "output" option More... | |
MapperOutputRecordIterator | getOutputIterator () throws Throwable |
returns an output record iterator that produces mapped data from the input data provider More... | |
void | commit () throws Throwable |
Commits data written to the output data provider if the output data provider supports transaction management. More... | |
void | rollback () throws Throwable |
Rolls back data written to the output data provider. More... | |
void | flushOutput () throws Throwable |
Flushes any remaining data to the data provider. More... | |
void | discardOutput () throws Throwable |
Discards any buffered data. More... | |
void | runAutonomous () throws Throwable |
Runs the input and output mappers with data providers on each end autonomously. More... | |
HashMap< String, Object > [] | mapAll (Map< String, Object >[] recs) throws Throwable |
maps all input records and returns the mapped data as a list of output records More... | |
HashMap< String, Object > [] | mapAll (Map< String, Object > recs) throws Throwable |
maps all input records and returns the mapped data as a list of output records More... | |
HashMap< String, Object > | mapData (Map< String, Object > rec) throws Throwable |
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. More... | |
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 Mapper.Mapper class in Qore.
|
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 |
|
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 |
returns the value of the "input"
option
|
inline |
returns an output record iterator that produces mapped data from the input data provider
MAPPER-INPUT-PROVIDER-ERROR | if no input_provider option was provided in the constructor or the input provider uses the request/response API |
|
inline |
returns the value of the "output"
option
|
inline |
get current runtime option value for a key
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 mapData() method to all input records and returns the resulting list
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 records and returns the mapped data as a list of output records
this method applies the mapData() method to all input records and returns the resulting list
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 |
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 |
returns a list of valid constructor options for this class (can be overridden in subclasses)
|
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 |
|
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 |
returns a list of valid field keys for this class (can be overridden in subclasses)
|
inline |
returns a list of valid field types for this class (can be overridden in subclasses)