All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.persistence.config.QueryType Maven / Gradle / Ivy

There is a newer version: 4.0.2
Show newest version
/*
 * Copyright (c) 1998, 2018 Oracle and/or its affiliates. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0,
 * or the Eclipse Distribution License v. 1.0 which is available at
 * http://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
 */

// Contributors:
//     Oracle - initial API and implementation from Oracle TopLink
package org.eclipse.persistence.config;

/**
 * Query type hint values.
 *
 * The class contains all the valid values for QueryHints.QUERY_TYPE query hint.
 * A fully qualified class name of a valid subclass of DatabaseQuery can also be used.
 * 

i.e. "org.acme.persistence.CustomQuery" * * JPA Query Hint Usage: * *

query.setHint(QueryHints.QUERY_TYPE, QueryType.ReadObject); *

or *

@QueryHint(name=QueryHints.QUERY_TYPE, value=QueryType.ReadObject) * *

Hint values are case-insensitive. * "" could be used instead of default value CacheUsage.DEFAULT. * * @see QueryHints#QUERY_TYPE * @see org.eclipse.persistence.queries.DatabaseQuery */ public class QueryType { public static final String Auto = "Auto"; public static final String ReadObject = "ReadObject"; public static final String ReadAll = "ReadAll"; public static final String Report = "Report"; public static final String ResultSetMapping = "ResultSetMapping"; public static final String DeleteAll = "DeleteAll"; public static final String UpdateAll = "UpdateAll"; public static final String DataRead = "DataRead"; public static final String DataModify = "DataModify"; public static final String ValueRead = "ValueRead"; public static final String DirectRead = "DirectRead"; public static final String DEFAULT = Auto; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy