Qore jni Module  1.2.0
org.qore.lang.dataprovider.AbstractDataProviderBulkOperation Class Reference

Java wrapper for the DataProvider::AbstractDataProviderBulkOperation in Qore. More...

Inheritance diagram for org.qore.lang.dataprovider.AbstractDataProviderBulkOperation:
org.qore.lang.AbstractIterator org.qore.jni.QoreObjectWrapper

Public Member Methods

 AbstractDataProviderBulkOperation (QoreObject obj) throws Throwable
 creates the object as a wrapper for the Qore object
 
void commit () throws Throwable
 Commits data written to the data provider. More...
 
void rollback () throws Throwable
 Rolls back data written to the data provider. More...
 
void queueData (Map< String, Object > record) throws Throwable
 Queues data in the buffer.
 
void queueData (Map< String, Object > records[]) throws Throwable
 Queues data in the buffer.
 
void flush () throws Throwable
 Flushes any remaining data to the data provider. More...
 
void discard () throws Throwable
 Discards any buffered data. More...
 
- Public Member Methods inherited from org.qore.lang.AbstractIterator
 AbstractIterator (QoreObject obj) throws Throwable
 creates the object as a wrapper for the Qore object
 
boolean next () throws Throwable
 Moves the current position to the next element; returns False if there are no more elements. More...
 
Object getValue () throws Throwable
 returns the current value More...
 
boolean valid () throws Throwable
 returns true if the iterator is currently pointing at a valid element, false if not 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
 

Detailed Description

Java wrapper for the DataProvider::AbstractDataProviderBulkOperation in Qore.

Note
Loads and initializes the Qore library and the jni module in static initialization if necessary

Member Function Documentation

◆ commit()

void org.qore.lang.dataprovider.AbstractDataProviderBulkOperation.commit ( ) throws Throwable
inline

Commits data written to the data provider.

Has no effect if the data provider does not support transaction management

◆ discard()

void org.qore.lang.dataprovider.AbstractDataProviderBulkOperation.discard ( ) throws Throwable
inline

Discards any buffered data.

This method should be called before rolling back the transaction (if the data provider supports transaction management) or destroying the object if an error occurs

◆ flush()

void org.qore.lang.dataprovider.AbstractDataProviderBulkOperation.flush ( ) throws Throwable
inline

Flushes any remaining data to the data provider.

This method should always be called before committing the transaction (if the data provider supports transaction management) or destroying the object

◆ rollback()

void org.qore.lang.dataprovider.AbstractDataProviderBulkOperation.rollback ( ) throws Throwable
inline

Rolls back data written to the data provider.

Has no effect if the data provider does not support transaction management


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