public class WriteandReadPOJOs extends Object
WriteandReadPOJOS illustrates how to write bulk POJOs into the database using WriteBatcher. It also demonstrates how to read POJOs from the database using QueryBatcher with and without ExportListener
| Modifier and Type | Class and Description |
|---|---|
static class |
WriteandReadPOJOs.ProductDetails
A sample class which we will be using in order to demonstrate reading and writing large number of POJOs
|
| Constructor and Description |
|---|
WriteandReadPOJOs() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteDocuments() |
static void |
main(String[] args) |
void |
readBulkPOJOS() |
void |
readPOJOsWithExportListener() |
void |
run() |
void |
writeBulkPOJOS() |
public static void main(String[] args) throws JAXBException
JAXBExceptionpublic void run()
throws JAXBException
JAXBExceptionpublic void writeBulkPOJOS()
throws JAXBException
JAXBExceptionpublic void readBulkPOJOS()
throws JAXBException
JAXBExceptionpublic void readPOJOsWithExportListener()
throws JAXBException
JAXBExceptionpublic void deleteDocuments()
Copyright © 2013-2017 MarkLogic Corporation.