org.eclipse.jnosql.mapping.graph.AbstractMapperQuery Maven / Gradle / Ivy
/*
* Copyright (c) 2023 Contributors to the Eclipse Foundation
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php.
*
* You may elect to redistribute this code under either of these licenses.
*
* Contributors:
*
* Otavio Santana
*/
package org.eclipse.jnosql.mapping.graph;
import org.eclipse.jnosql.mapping.core.Converters;
import org.apache.tinkerpop.gremlin.process.traversal.P;
import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal;
import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.eclipse.jnosql.mapping.metadata.EntityMetadata;
import org.eclipse.jnosql.mapping.metadata.FieldMetadata;
import org.eclipse.jnosql.mapping.core.util.ConverterUtil;
import java.util.List;
import java.util.Optional;
import java.util.stream.StreamSupport;
import static java.util.Objects.nonNull;
import static java.util.Objects.requireNonNull;
import static java.util.stream.Collectors.toList;
import static org.apache.tinkerpop.gremlin.structure.T.id;
class AbstractMapperQuery {
protected boolean negate;
protected boolean and;
protected String name;
protected transient final EntityMetadata mapping;
protected transient final Converters converters;
protected transient final GraphTraversal traversal;
protected transient final GraphConverter converter;
protected transient GraphTraversal
© 2015 - 2025 Weber Informatics LLC | Privacy Policy