blob: f7df9de78f97defa6e3a6b2fb7cc38804cb750b8 [file] [log] [blame]
{
"connector": {
"class": "org.apache.camel.kafkaconnector.jpa.CamelJpaSinkConnector",
"artifactId": "camel-jpa-kafka-connector",
"groupId": "org.apache.camel.kafkaconnector",
"id": "camel-jpa-sink",
"type": "sink",
"version": "0.7.3",
"description": "Store and retrieve Java objects from databases using Java Persistence API (JPA)."
},
"properties": {
"camel.sink.path.entityType": {
"name": "camel.sink.path.entityType",
"description": "Entity class name",
"priority": "HIGH",
"required": "true"
},
"camel.sink.endpoint.joinTransaction": {
"name": "camel.sink.endpoint.joinTransaction",
"description": "The camel-jpa component will join transaction by default. You can use this option to turn this off, for example if you use LOCAL_RESOURCE and join transaction doesn't work with your JPA provider. This option can also be set globally on the JpaComponent, instead of having to set it on all endpoints.",
"defaultValue": "true",
"priority": "MEDIUM",
"required": "false"
},
"camel.sink.endpoint.maximumResults": {
"name": "camel.sink.endpoint.maximumResults",
"description": "Set the maximum number of results to retrieve on the Query.",
"defaultValue": "-1",
"priority": "MEDIUM",
"required": "false"
},
"camel.sink.endpoint.namedQuery": {
"name": "camel.sink.endpoint.namedQuery",
"description": "To use a named query.",
"priority": "MEDIUM",
"required": "false"
},
"camel.sink.endpoint.nativeQuery": {
"name": "camel.sink.endpoint.nativeQuery",
"description": "To use a custom native query. You may want to use the option resultClass also when using native queries.",
"priority": "MEDIUM",
"required": "false"
},
"camel.sink.endpoint.persistenceUnit": {
"name": "camel.sink.endpoint.persistenceUnit",
"description": "The JPA persistence unit used by default.",
"defaultValue": "\"camel\"",
"priority": "HIGH",
"required": "true"
},
"camel.sink.endpoint.query": {
"name": "camel.sink.endpoint.query",
"description": "To use a custom query.",
"priority": "MEDIUM",
"required": "false"
},
"camel.sink.endpoint.resultClass": {
"name": "camel.sink.endpoint.resultClass",
"description": "Defines the type of the returned payload (we will call entityManager.createNativeQuery(nativeQuery, resultClass) instead of entityManager.createNativeQuery(nativeQuery)). Without this option, we will return an object array. Only has an affect when using in conjunction with native query when consuming data.",
"priority": "MEDIUM",
"required": "false"
},
"camel.sink.endpoint.findEntity": {
"name": "camel.sink.endpoint.findEntity",
"description": "If enabled then the producer will find a single entity by using the message body as key and entityType as the class type. This can be used instead of a query to find a single entity.",
"defaultValue": "false",
"priority": "MEDIUM",
"required": "false"
},
"camel.sink.endpoint.flushOnSend": {
"name": "camel.sink.endpoint.flushOnSend",
"description": "Flushes the EntityManager after the entity bean has been persisted.",
"defaultValue": "true",
"priority": "MEDIUM",
"required": "false"
},
"camel.sink.endpoint.lazyStartProducer": {
"name": "camel.sink.endpoint.lazyStartProducer",
"description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing.",
"defaultValue": "false",
"priority": "MEDIUM",
"required": "false"
},
"camel.sink.endpoint.remove": {
"name": "camel.sink.endpoint.remove",
"description": "Indicates to use entityManager.remove(entity).",
"defaultValue": "false",
"priority": "MEDIUM",
"required": "false"
},
"camel.sink.endpoint.useExecuteUpdate": {
"name": "camel.sink.endpoint.useExecuteUpdate",
"description": "To configure whether to use executeUpdate() when producer executes a query. When you use INSERT, UPDATE or DELETE statement as a named query, you need to specify this option to 'true'.",
"priority": "MEDIUM",
"required": "false"
},
"camel.sink.endpoint.usePersist": {
"name": "camel.sink.endpoint.usePersist",
"description": "Indicates to use entityManager.persist(entity) instead of entityManager.merge(entity). Note: entityManager.persist(entity) doesn't work for detached entities (where the EntityManager has to execute an UPDATE instead of an INSERT query)!",
"defaultValue": "false",
"priority": "MEDIUM",
"required": "false"
},
"camel.sink.endpoint.usePassedInEntityManager": {
"name": "camel.sink.endpoint.usePassedInEntityManager",
"description": "If set to true, then Camel will use the EntityManager from the header JpaConstants.ENTITY_MANAGER instead of the configured entity manager on the component\/endpoint. This allows end users to control which entity manager will be in use.",
"defaultValue": "false",
"priority": "MEDIUM",
"required": "false"
},
"camel.sink.endpoint.entityManagerProperties": {
"name": "camel.sink.endpoint.entityManagerProperties",
"description": "Additional properties for the entity manager to use.",
"priority": "MEDIUM",
"required": "false"
},
"camel.sink.endpoint.sharedEntityManager": {
"name": "camel.sink.endpoint.sharedEntityManager",
"description": "Whether to use Spring's SharedEntityManager for the consumer\/producer. Note in most cases joinTransaction should be set to false as this is not an EXTENDED EntityManager.",
"defaultValue": "false",
"priority": "MEDIUM",
"required": "false"
},
"camel.sink.endpoint.synchronous": {
"name": "camel.sink.endpoint.synchronous",
"description": "Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).",
"defaultValue": "false",
"priority": "MEDIUM",
"required": "false"
},
"camel.component.jpa.entityManagerFactory": {
"name": "camel.component.jpa.entityManagerFactory",
"description": "To use the EntityManagerFactory. This is strongly recommended to configure.",
"priority": "MEDIUM",
"required": "false"
},
"camel.component.jpa.joinTransaction": {
"name": "camel.component.jpa.joinTransaction",
"description": "The camel-jpa component will join transaction by default. You can use this option to turn this off, for example if you use LOCAL_RESOURCE and join transaction doesn't work with your JPA provider. This option can also be set globally on the JpaComponent, instead of having to set it on all endpoints.",
"defaultValue": "true",
"priority": "MEDIUM",
"required": "false"
},
"camel.component.jpa.sharedEntityManager": {
"name": "camel.component.jpa.sharedEntityManager",
"description": "Whether to use Spring's SharedEntityManager for the consumer\/producer. Note in most cases joinTransaction should be set to false as this is not an EXTENDED EntityManager.",
"defaultValue": "false",
"priority": "MEDIUM",
"required": "false"
},
"camel.component.jpa.transactionManager": {
"name": "camel.component.jpa.transactionManager",
"description": "To use the PlatformTransactionManager for managing transactions.",
"priority": "MEDIUM",
"required": "false"
},
"camel.component.jpa.lazyStartProducer": {
"name": "camel.component.jpa.lazyStartProducer",
"description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing.",
"defaultValue": "false",
"priority": "MEDIUM",
"required": "false"
},
"camel.component.jpa.autowiredEnabled": {
"name": "camel.component.jpa.autowiredEnabled",
"description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc.",
"defaultValue": "true",
"priority": "MEDIUM",
"required": "false"
}
}
}