@UriEndpoint(scheme="orientdb",
syntax="orientdb:sqlQuery",
title="OrientDB")
public class OrientDBEndpoint
extends org.apache.camel.impl.DefaultEndpoint
OrientDBComponent| Modifier | Constructor and Description |
|---|---|
protected |
OrientDBEndpoint(String endpointUri,
org.apache.camel.Component component) |
protected |
OrientDBEndpoint(String endpointUri,
org.apache.camel.Component component,
String remaining,
Map<String,Object> parameters) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
void |
databaseClose(com.orientechnologies.orient.core.db.document.ODatabaseDocument db) |
com.orientechnologies.orient.core.db.document.ODatabaseDocument |
databaseOpen() |
String |
getFetchPlan() |
String |
getInputAsOClass() |
int |
getMaxDepth() |
OrientDBCamelDataType |
getOutputType() |
Map<String,Object> |
getParameters() |
String |
getSQLQuery() |
boolean |
isFetchAllEmbedded() |
boolean |
isMakeNew() |
boolean |
isPreload() |
boolean |
isSingleton() |
Object |
makeOutObject(Object rawOut) |
void |
setFetchAllEmbedded(boolean fetchAllEmbedded)
Fetch all embedded(not linked) objects, ignore "maxDepth".
|
void |
setFetchPlan(String fetchPlan)
Set fetch plan (view orientdb documentation, like http://orientdb.com/docs/2.0/orientdb.wiki/Fetching-Strategies.html)
|
void |
setInputAsOClass(String inputAsOClass)
Rewrite "@class" field in root document(s)
|
void |
setMakeNew(boolean makeNew)
Clear ODocuments RID`s in PRELOAD phase BEFORE save
|
void |
setMaxDepth(int maxDepth)
Max fetch depth.
|
void |
setOutputType(OrientDBCamelDataType outputType)
Output data type of single row.
|
void |
setPreload(boolean preload)
Save ODocument from input data BEFORE query
|
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendprotected OrientDBEndpoint(String endpointUri, org.apache.camel.Component component, String remaining, Map<String,Object> parameters)
protected OrientDBEndpoint(String endpointUri, org.apache.camel.Component component)
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic boolean isSingleton()
public String getSQLQuery()
public com.orientechnologies.orient.core.db.document.ODatabaseDocument databaseOpen()
public void databaseClose(com.orientechnologies.orient.core.db.document.ODatabaseDocument db)
public String getFetchPlan()
public void setFetchPlan(String fetchPlan)
fetchPlan - fetch plan to be usedpublic String getInputAsOClass()
public void setInputAsOClass(String inputAsOClass)
inputAsOClass - value to be used for rewritingpublic boolean isPreload()
public void setPreload(boolean preload)
preload - preloading flagpublic boolean isMakeNew()
public void setMakeNew(boolean makeNew)
makeNew - should document be created as newpublic OrientDBCamelDataType getOutputType()
public void setOutputType(OrientDBCamelDataType outputType)
outputType - output typepublic int getMaxDepth()
public void setMaxDepth(int maxDepth)
maxDepth - max depth to be loadedpublic boolean isFetchAllEmbedded()
public void setFetchAllEmbedded(boolean fetchAllEmbedded)
fetchAllEmbedded - should all embedded be fetched?Copyright © 2017. All rights reserved.