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

org.jooq.QueryPartInternal Maven / Gradle / Ivy

Go to download

A Java implementation of a KillBill Payment Plugin that uses Authorize.Net as a payment gateway

There is a newer version: 2.8.196
Show newest version
/**
 * Copyright (c) 2009-2015, Data Geekery GmbH (http://www.datageekery.com)
 * All rights reserved.
 *
 * Licensed 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.
 *
 * Other licenses:
 * -----------------------------------------------------------------------------
 * Commercial licenses for this work are available. These replace the above
 * ASL 2.0 and offer limited warranties, support, maintenance, and commercial
 * database integrations.
 *
 * For more information, please visit: http://www.jooq.org/licenses
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */

package org.jooq;

import org.jooq.exception.DataAccessException;

/**
 * Base functionality declaration for all query objects
 * 

* This interface is for JOOQ INTERNAL USE only. Do not reference directly * * @author Lukas Eder */ public interface QueryPartInternal extends QueryPart { /** * This {@link QueryPart} can accept a {@link Context} object * in order to render a SQL string or to bind its variables. */ void accept(Context ctx); /** * Render this {@link QueryPart} to a SQL string contained in * context.sql(). The context will contain * additional information about how to render this QueryPart, * e.g. whether this QueryPart should be rendered as a * declaration or reference, whether this QueryPart's contained * bind variables should be inlined or replaced by '?', etc. * * @deprecated - 3.4.0 - [#2694] - Use {@link #accept(Context)} instead. */ @Deprecated void toSQL(RenderContext ctx); /** * Bind all parameters of this {@link QueryPart} to a PreparedStatement *

* This method is for JOOQ INTERNAL USE only. Do not reference directly * * @param ctx The context holding the next bind index and other information * for variable binding * @throws DataAccessException If something went wrong while binding a * variable * @deprecated - 3.4.0 - [#2694] - Use {@link #accept(Context)} instead. */ @Deprecated void bind(BindContext ctx) throws DataAccessException; /** * The {@link Clause}s that are represented by this query part. *

* {@link QueryPart}s can specify several Clauses for which an * event will be emitted {@link Context#start(Clause) before} (in forward * order) and {@link Context#end(Clause) after} (in reverse order) visiting * the the query part through {@link Context#visit(QueryPart)} *

* This method is for JOOQ INTERNAL USE only. Do not reference directly * * @return The Clauses represented by this query part or * null or an empty array if this query part does not * represent a clause. */ Clause[] clauses(Context ctx); /** * Check whether this {@link QueryPart} is able to declare fields in a * SELECT clause. *

* This method can be used by any {@link Context} to check how a certain SQL * clause should be rendered. *

* This method is for JOOQ INTERNAL USE only. Do not reference directly */ boolean declaresFields(); /** * Check whether this {@link QueryPart} is able to declare tables in a * FROM clause or JOIN clause. *

* This method can be used by any {@link Context} to check how a certain SQL * clause should be rendered. *

* This method is for JOOQ INTERNAL USE only. Do not reference directly */ boolean declaresTables(); /** * Check whether this {@link QueryPart} is able to declare windows in a * WINDOW clause. *

* This method can be used by any {@link Context} to check how a certain SQL * clause should be rendered. *

* This method is for JOOQ INTERNAL USE only. Do not reference directly */ boolean declaresWindows(); /** * Check whether this {@link QueryPart} is able to declare common table expressions in a * WITH clause. *

* This method can be used by any {@link Context} to check how a certain SQL * clause should be rendered. *

* This method is for JOOQ INTERNAL USE only. Do not reference directly */ boolean declaresCTE(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy