org.apache.camel.component.mongodb.MongoDbConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-mongodb Show documentation
Show all versions of camel-mongodb Show documentation
Camel MongoDB (Java Driver 3) component
The newest version!
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.component.mongodb;
import org.apache.camel.spi.Metadata;
public final class MongoDbConstants {
@Metadata(label = "producer", description = "The operation this endpoint will execute against MongoDB.",
javaType = "org.apache.camel.component.mongodb.MongoDbOperation or String")
public static final String OPERATION_HEADER = "CamelMongoDbOperation";
@Metadata(label = "producer findAll",
description = "Number of objects matching the query. This does not take limit/skip into consideration.",
javaType = "Integer")
public static final String RESULT_TOTAL_SIZE = "CamelMongoDbResultTotalSize";
@Metadata(label = "producer findAll",
description = "Number of objects matching the query. This does not take limit/skip into consideration.",
javaType = "Integer")
public static final String RESULT_PAGE_SIZE = "CamelMongoDbResultPageSize";
@Metadata(label = "producer", description = "The query to execute against MongoDB.", javaType = "org.bson.conversions.Bson")
public static final String CRITERIA = "CamelMongoDbCriteria";
@Metadata(label = "producer", description = "The project document.", javaType = "org.bson.conversions.Bson")
public static final String FIELDS_PROJECTION = "CamelMongoDbFieldsProjection";
@Metadata(label = "producer findAll aggregate", description = "The number of documents per batch.", javaType = "Integer")
public static final String BATCH_SIZE = "CamelMongoDbBatchSize";
@Metadata(label = "producer findAll", description = "Discards a given number of elements at the beginning of the cursor.",
javaType = "Integer")
public static final String NUM_TO_SKIP = "CamelMongoDbNumToSkip";
public static final String INSERT_RECORDS_AFFECTED = "CamelMongoDbInsertRecordsAffected";
@Metadata(label = "producer update", description = "If the update should be applied to all objects matching. See\n" +
"http://www.mongodb.org/display/DOCS/Atomic+Operations[Atomic Operations]",
javaType = "Boolean")
public static final String MULTIUPDATE = "CamelMongoDbMultiUpdate";
@Metadata(label = "producer update", description = "If the database should create the element if it does not exist",
javaType = "Boolean")
public static final String UPSERT = "CamelMongoDbUpsert";
@Metadata(label = "producer", description = "The number of modified or deleted records", javaType = "long")
public static final String RECORDS_AFFECTED = "CamelMongoDbRecordsAffected";
@Metadata(label = "producer", description = "The number of documents matched by the query.", javaType = "long")
public static final String RECORDS_MATCHED = "CamelMongoDbRecordsMatched";
@Metadata(label = "producer", description = "The sort criteria.", javaType = "Bson or Document")
public static final String SORT_BY = "CamelMongoDbSortBy";
@Metadata(description = "The name of the MongoDB database to target", javaType = "String")
public static final String DATABASE = "CamelMongoDbDatabase";
@Metadata(description = "The name of the MongoDB collection to bind to this endpoint", javaType = "String")
public static final String COLLECTION = "CamelMongoDbCollection";
@Metadata(label = "producer", description = "The list of dynamic indexes to create on the fly", javaType = "List")
public static final String COLLECTION_INDEX = "CamelMongoDbCollectionIndex";
@Metadata(label = "producer findAll", description = "Limits the number of elements returned.", javaType = "Integer")
public static final String LIMIT = "CamelMongoDbLimit";
@Metadata(label = "consumer", description = "Is from tailable", javaType = "Boolean")
public static final String FROM_TAILABLE = "CamelMongoDbTailable";
@Metadata(label = "producer", description = "The result of the write operation", javaType = "Object")
public static final String WRITERESULT = "CamelMongoWriteResult";
@Metadata(label = "producer", description = "The OID(s) of the inserted record(s)", javaType = "Object or List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy